Database - 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

Which command is used for taking “server side help” in Mysql command line tool

  

  

  

  

Which of the following is NOT supported by MySQL

  

  

  

  

Can joins be nested?

  

  

With SQL, how can you insert a new record into the "Persons" table?

  

  

  

Which of the following is the correct SQL statement to use to remove rows from a table?

  

  

  

  

How much storage space does DATETIME require?

  

  

  

  

On executing DELETE command, if you get an error "foreign key constraint" what does it imply?

  

  

  

  

If you're writing a client using the C language API, your source code should include the following line at the top:

  

  

  

  

Which is the default order of sort in ORDER BY clause?

  

  

To use MySQL on your computer, you'll need?

  

  

  

  

Which SQL statement is used to return only different values?

  

  

  

  

Mysql command line tool is used to show “how many rows are returned and how long SQL command took to execute”

  

  

  

  

An outer join requires each record in the two joined tables to have a matching record.

  

  

  

  

Which of the following commands should be used to create a database named “student”?

  

  

  

  

Which statement is used to access an existing Database?

  

  

  

  

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

  

  

  

  

Which of these field types would be best to hold a .jpg image?

  

  

  

  

MySQL comes with as standard with client libraries for:

  

  

  

  

To remove duplicate rows from the result set of a SELECT use the following keyword:

  

  

  

  

With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Aru" and the "LastName" is "Sum"?

  

  

  

  

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"?

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Use the .............. to delete the data inside the table, and not the table itself?

  

  

  

  

What kind of replication is supported by the MySQL server?

  

  

  

  

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

  

  

  

  

If an ENUM column is declared NOT NULL, its default value is the first element of the list of allowed values.

  

  

  

  

Which of the following is not a character manipulation function?

  

  

  

  

What MySQL property is used to create a surrogate key in MySQL?

  

  

  

  

Which command is used in Mysql command line tool to return to window command shell?

  

  

  

  

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?

  

  

  

  

What is DML?

  

  

  

  

Which of the following is not a MySQL Operator?

  

  

  

  

One of the early proponents of relational database who laid down many of the principles we use to this day was:

  

  

  

  

  

MySQL supports the complete SQL99 standard

  

  

The ............. statement is used to delete a table.

  

  

  

  

Which of the following file extension is a valid MyISAM file extension?

  

  

  

  

What is an open source DBMS product that runs on UNIX, Linux and Windows

  

  

  

  

What is Row?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

The program called mysql is

  

  

  

  

  

What is a candidate key?

  

  

  

  

What type of lock will deny users any access to a table?

  

  

  

  

  

What is Column?

  

  

  

  

Which of these field types would be best to hold a film title?

  

  

  

  

The “Mysql command line tool” formats are bounded by

  

  

  

  

MySQL Access security is controlled through?

  

  

  

  

Which of these is not a valid name for a column

  

  

  

  

USE keyword is used to select a ___________

  

  

  

  

What is DDL?

  

  

  

  

What is the command for counting all the rows in a table in MySQL?

  

  

  

  

With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?

  

  

  

Which authentications are required for login into Mysql command line tool?

  

  

  

  

MySql | Which of the following is available in MySQL:

  

  

  

  

  

A NULL value is treated as a blank or 0.

  

  

  

SQL is not case sensitive. SELECT is the same as select.

  

  

Internally information is held in tables. Which of these is NOT a valid format:

  

  

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

When do we use a HAVING clause?

  

  

  

  

In a LIKE clause, you can ask for any 6 letter value by writing?

  

  

  

  

The "father" of MySQL is

  

  

  

  

If you want to undo a GRANT, you should use

  

  

  

  

  

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

  

  

With SQL, how do you select all the columns from a table named "Persons"?

  

  

  

  

Which of the following can add a row to a table?

  

  

  

  

Which of the following is NOT available in MySQL?

  

  

  

  

User() fucntion returns the current users user name and ___________

  

  

  

  

Which of the following is not a valid aggregate function?

  

  

  

  

Which of the following DBMSs do not have a native PHP extension?

  

  

  

  

  

How much character are allowed to create database name?

  

  

  

  

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"?

  

  

  

  

  

You are required to buy a license for MySQL if

  

  

  

  

  

MySQL is

  

  

  

  

Where is metadata stored in MySQL?

  

  

  

  

Transactions are used to treat sets of SQL statements atomically.

  

  

Which of these is a valid call to a function (watch the spaces carefully!)

  

  

  

  

BLOB data type can have default column value.

  

  

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

  

  

  

  

  

How can we get the number of records or rows in a table?

  

  

  

  

What's the difference between the DESCRIBE and SHOW FIELDS FROM commands?

  

  

  

The result of a SELECT statement can contain duplicate rows.

  

  

  

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

  

  

  

  

What MySQL property is used to create a surrogate key in MySQL?

  

  

  

  

A SELECT command without a WHERE clause returns?

  

  

  

  

Which command is used on Mysql command line tool to return to window command shell?

  

  

  

  

mysql_pconnect() is used to make a persistent connection to the database which means a SQL link that do not close when the execution of your script ends.

  

  

MySQL runs on which operating systems?

  

  

  

  

With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?

  

  

  

  

What does SQL stand for?

  

  

  

  

Can DISTINCT command be used for more than one column?

  

  

How to view all Triggers in MySQL?

  

  

  

  

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

  

  

  

  

How many TRIGGERS are allowed in MySql table?

  

  

  

  

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

  

  

  

  

What is Table?

  

  

  

  

A view is nothing but a ________ table or a stored query

  

  

  

  

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.