Database - Sql - Sql Test

Test Instructions :

1. The Test is 1hr duration.
2. The Test Paper consists of 30 questions. The maximum marks are 30.
3. All the questions are multiple choice question type with three options for each question.
4. Out of the three options given for each question, only one option is the correct answer.
5. Each question is allotted 1 mark for each correct response.
6. 0.25 will be deducted for incorrect response of each question.
Start Test

   Time Left : 00 : 30    : 00

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?

  

  

  

  

  

Commands passed to the MySQL daemon are written in.

  

  

  

  

Which SQL keyword is used to sort the result-set?

  

  

  

  

What is Column?

  

  

  

  

What SQL clause is used to restrict the rows returned by a query?

  

  

  

  

MySQL comes with as standard with client libraries for:

  

  

  

  

Sometimes the expression "select count(*)" will return fewer rows than the expression "select count(value)".

  

  

With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?

  

  

  

What does the DESC keyword do in the following query? SELECT * FROM MY_TABLE WHERE ID > 0 ORDER BY ID, NAME DESC

  

  

  

  

  

The “Mysql command line tool” formats are bounded by

  

  

  

  

Which of the following is used to delete an entire MYSQL database?

  

  

  

  

Which SQL statement is used to update data in a database?

  

  

  

  

In a LIKE clause, you can could ask for any value ending in "qpt" by writing

  

  

  

  

With SQL, how can you return the number of records in the "Persons" table?

  

  

  

  

The program called mysql is

  

  

  

  

  

Which SQL statement is used to delete data from a database?

  

  

  

  

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

  

  

  

  

The “Mysql command line tool” format the results in which of the following format:

  

  

  

  

With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?

  

  

  

How much storage space does DATETIME require?

  

  

  

  

What will happen at the end of the following sequence of SQL commands? BEGIN TRANSACTION DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK TRANSACTION

  

  

  

  

  

Which command is used for showing current date and time in Mysql command line tool?

  

  

  

  

Enum values are stored according to their index numbers

  

  

MySQL supports the complete SQL99 standard

  

  

Which of the following ways below are the correct way to get the current date?

  

  

  

  

Which of these commands will delete a table called XXX if you have appropriate authority:

  

  

  

  

Which statement is used to access an existing Database?

  

  

  

  

MySQL is

  

  

  

  

Which SQL statement is used to return only different values?

  

  

  

  

The main MySQL program that does all the data handling is called?

  

  

  

  

Note:
  • Click the 'Submit Test' button given in the bottom of this page to Submit your answers.
  • Test will be submitted automatically if the time expired.
  • Don't refresh the page.