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

MySQL comes with as standard with client libraries for:

  

  

  

  

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

  

  

  

  

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 columns from a table named "Persons"?

  

  

  

  

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

  

  

  

  

With SQL, how do you select a column named "FirstName" from a table named "Persons"?

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of these is not a valid name for a column

  

  

  

  

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

  

  

  

  

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

  

  

  

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

  

  

  

  

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

  

  

  

  

What is a candidate key?

  

  

  

  

The “Mysql command line tool” formats are bounded by

  

  

  

  

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

  

  

  

  

MySQL runs on which operating systems?

  

  

  

  

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

  

  

  

  

  

MySQL supports the complete SQL99 standard

  

  

What is DCL?

  

  

  

  

When do we use a HAVING clause?

  

  

  

  

MySql | Which of the following is available in MySQL:

  

  

  

  

  

Which function used to get the current time in mysql?

  

  

  

A table may be joined to itself.

  

  

  

A NULL value is treated as a blank or 0.

  

  

  

Commands passed to the MySQL daemon are written in.

  

  

  

  

What is DDL?

  

  

  

  

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

  

  

  

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

  

  

  

  

How many TRIGGERS are allowed in MySql table?

  

  

  

  

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

  

  

  

  

Can I call a trigger directly called from an application?

  

  

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

  

  

  

  

What is Column?

  

  

  

  

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

  

  

  

  

Which command is used in 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.

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Given an employees table as follows:   emp_id emp_name 1 Brush 2 Jerrin  what value will be return by below query ? Select count(*) from employees  

  

  

  

  

Which of the following is not a valid aggregate function?

  

  

  

  

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

  

  

  

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

  

  

  

  

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

  

  

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

  

  

  

  

MySQL Access security is controlled through?

  

  

  

  

What is Table?

  

  

  

  

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

  

  

  

  

A SELECT command without a WHERE clause returns?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Where is metadata stored in MySQL?

  

  

  

  

Primary Key does allow the Null Values. where as in Unique key doesn't accept the Null values.

  

  

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

  

  

  

  

  

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

  

  

  

  

What does SQL stand for?

  

  

  

  

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

  

  

  

  

The program called mysql is

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A user with RELOAD priveliges can

  

  

  

  

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

  

  

  

  

  

The result of a SELECT statement can contain duplicate rows.

  

  

  

How to view all Triggers in MySQL?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

MySQL is

  

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

Which SQL statement is used to return only different values?

  

  

  

  

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

  

  

  

  

How is structure of a table got in MySQL?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

USE keyword is used to select a ___________

  

  

  

  

If you want to undo a GRANT, you should use

  

  

  

  

  

Transactions are used to treat sets of SQL statements atomically.

  

  

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

  

  

  

  

Which of the following is not a character manipulation function?

  

  

  

  

Can joins be nested?

  

  

What is DML?

  

  

  

  

Which of the following is not a MySQL Operator?

  

  

  

  

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

  

  

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:

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Can I define multiple unique constraints on 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.