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

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is Column?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

  

How is structure of a table got in MySQL?

  

  

  

  

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

  

  

  

  

The USE command?

  

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

The “Mysql command line tool” formats are bounded by

  

  

  

  

Which of the following is not a character manipulation function?

  

  

  

  

You are required to buy a license for MySQL if

  

  

  

  

  

Commands passed to the MySQL daemon are written in.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

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

  

  

  

  

What does SQL stand for?

  

  

  

  

Where is metadata stored in MySQL?

  

  

  

  

Which of the following is not a valid aggregate function?

  

  

  

  

Which function used to get the current time in mysql?

  

  

  

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

  

  

  

What kind of replication is supported by the MySQL server?

  

  

  

  

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

  

  

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.

  

  

BLOB data type can have default column value.

  

  

Can I define multiple unique constraints on a table?

  

  

Which of the following is not a MySQL Operator?

  

  

  

  

How many TRIGGERS are allowed in MySql table?

  

  

  

  

The "father" of MySQL is

  

  

  

  

Which SQL statement is used to return only different values?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A user with RELOAD priveliges can

  

  

  

  

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

  

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

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

  

  

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

  

  

  

  

Which of these is not a valid name for a column

  

  

  

  

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 of the following file extension is a valid MyISAM file extension?

  

  

  

  

The program called mysql is

  

  

  

  

  

How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?

  

  

  

  

What is DDL?

  

  

  

  

MySQL Access security is controlled through?

  

  

  

  

The result of a SELECT statement can contain duplicate rows.

  

  

  

Which SQL statement is used to insert a new data in a database?

  

  

  

  

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

  

  

  

  

If you want to undo a GRANT, you should use

  

  

  

  

  

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

  

  

  

  

In a SELECT with a GROUP BY clause, a WHERE clause, and a HAVING clause, the WHERE conditions are applied before the HAVING conditions.

  

  

  

  

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

  

  

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

  

  

  

Which of the following is NOT supported by MySQL

  

  

  

  

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

  

  

  

  

What is DCL?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A NULL value is treated as a blank or 0.

  

  

  

Which one will delete the table data as well as table structure?

  

  

How do I find out all databases starting with ‘test to which I have access to?

  

  

  

  

How many distinct, different values can you hold in an enum field?

  

  

  

  

A table may be joined to itself.

  

  

  

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

  

  

  

  

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

  

  

  

  

  

In PHP in order to access MySQL database you will use:

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A SELECT command without a WHERE clause returns?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

MySQL comes with as standard with client libraries for:

  

  

  

  

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

  

  

  

  

Can I call a trigger directly called from an application?

  

  

USE keyword is used to select a ___________

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Can joins be nested?

  

  

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

  

  

  

  

How to view all Triggers in MySQL?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

MySQL runs on which operating systems?

  

  

  

  

How much character are allowed to create database name?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

MySQL is

  

  

  

  

What is DML?

  

  

  

  

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

  

  

  

  

MySql | Which of the following is available in MySQL:

  

  

  

  

  

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

  

  

  

  

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.