MySQL Test
Below is the table “messages,” please find proper query and result from the choices below. Id Name Other_Columns ------------------------- 1 A A_data_1 2 A A_data_2 3 A ...
Can you run multiple MySQL servers on a single machine?
Choose the appropriate query for the Products table where data should be displayed primarily in ascending order of the ProductGroup column. Secondary sorting should be in descending order of the Cu...
Consider the following queries: create table foo (id int primary key auto_increment, name int); create table foo2 (id int auto_increment primary key, foo_id int references foo(id) on delete cascad...
Consider the following select statement and its output: SELECT * FROM table1 ORDER BY column1; Column1 -------- 1 2 2 2 2 2 3 Given the above output, which one of the following comma...
Consider the following table definition: CREATE TABLE table1 ( column1 INT, column2 INT, column3 INT, column4 INT ) Which one of the following is the corre...
Consider the following table structure of students: rollno int name varchar(20) course varchar(20) What will be the query to display the courses in which the number of students enrolled is mor...
Consider the following tables: books ------ bookid bookname authorid subjectid popularityrating (the popularity of the book on a scale of 1 to 10) language (such as French, English, German...
Consider the following tables: Books ------ BookId BookName AuthorId SubjectId PopularityRating (the popularity of the book on a scale of 1 to 10) Language (such as French, English, German etc) S...
Consider the query: SELECT name FROM Students WHERE name LIKE '_a%'; Which names will be displayed?
Examine the data in the employees table given below: last_name department_id salary ALLEN 10 3000 MILLER 20 1500 King ...
Examine the query:- select (2/2/4) from tab1; where tab1 is a table with one row. This would give a result of:
Examine the two SQL statements given below: SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY salary DESC SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC What is tr...
How can a InnoDB database be backed up without locking the tables?
How can an user quickly rename a MySQL database for InnoDB?
How will you change "Hansen" into "Nilsen" in the LastName column in the Persons Table?
If you try to perform an arithmetic operation on a column containing NULL values, the output will be:
Is it possible to insert several rows into a table with a single INSERT statement?
Is the FROM clause necessary in every SELECT statement?
MySQL supports 5 different int types. Which one takes 3 bytes?
State whether true or false: In the 'where clause' of a select statement, the AND operator displays a row if any of the conditions listed are true. The OR operator displays a row if all of the co...
State whether true or false: Transactions and commit/rollback are supported by MySQL using the MyISAM engine
Suppose a table has the following records: +--------------+-------------+----------------+ | Item | Price | Brand | +--------------+-------------+----------------+ | Watch ...
The Flush statement cannot be used for:
The REPLACE statement is:
What are MySQL Spatial Data Types in the following list?
What does DETERMINISTIC mean in the creation of a function?
What does the term "overhead" mean in MySQL?
What is NDB?
What is the correct SQL syntax for returning all the columns from a table named "Persons" sorted REVERSE alphabetically by "FirstName"?
What is the maximum size of a row in a MyISAM table?
What is the name of the utility used to extract NDB configuration information?
What is true about the ENUM data type?
What is wrong with the following query: select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)
What is wrong with the following statement? create table foo (id int auto_increment, name int);
What privilege do you need to create a function?
What will happen if two tables in a database are named rating and RATING?
What will happen if you query the emp table as shown below: select empno, DISTINCT ename, Salary from emp;
When running the following SELECT query: SELECT ID FROM ( SELECT ID, name FROM ( SELECT * FROM employee ) ); The error message 'Every derived table must have its own...
Which command will make a backup on the whole database except the tables sessions and log?
Which datatype is used to store binary data in MySQL?
Which of the following are not Numeric column types?
Which of the following are true in case of Indexes for MYISAM Tables?
Which of the following commands will list the tables of the current database?
Which of the following formats does the date field accept by default?
Which of the following is a correct way to show the last queries executed on MySQL?
Which of the following is an alternative to groupwise maximum ranking (ex. ROW_NUMBER() in MS SQL)?
Which of the following is an alternative to Subquery Factoring (ex. the 'WITH' clause in MS SQL Server)?
Which of the following is not a MySQL statement?
Which of the following is not a Table Storage specifier in MySQL?
Which of the following is the best MySQL data type for currency values?
Which of the following is the best way to disable caching for a query?
Which of the following is the best way to insert a row, and to update an existing row, using a MySQL query?
Which of the following is the best way to modify a table to allow null values?
Which of the following is the correct way to determine duplicate values?
Which of the following relational database management systems is simple to embed in a larger program?
Which of the following results in 0 (false)?
Which of the following statements are true about SQL injection attacks?
Which of the following statements are true?
Which of the following statements grants permission to Peter with password Software?
Which of the following statements is true regarding character sets in MySQL?
Which of the following statements is true regarding multi-table querying in MySQL?
Which of the following statements is used to change the structure of a table once it has been created?
Which of the following will dump the whole MySQL database to a file?
Which of the following will raise MySQL's version of an error?
Which of the following will reset the MySQL password for a particular user?
Which of the following will restore a MySQL DB from a .dump file?
Which of the following will show when a table in a MySQL database was last updated?
Which one of the following correctly selects rows from the table myTable that have NULL in column column1?
Which one of the following must be specified in every DELETE statement?
Which query will return values containing strings "Pizza", "Burger", or "Hotdog" in the database?
You want to display the titles of books that meet the following criteria: 1. Purchased before November 11, 2002 2. Price is less than $500 or greater than $900 You want to sort the result by th...