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 can you insert "Olsen" as the "LastName" in the "Persons" table?

  

  

  

When do we use a HAVING clause?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

If you want to undo a GRANT, you should use

  

  

  

  

  

What is Column?

  

  

  

  

Enum values are stored according to their index numbers

  

  

MySQL Access security is controlled through?

  

  

  

  

Can I define multiple unique constraints on a table?

  

  

A user with RELOAD priveliges can

  

  

  

  

Can DISTINCT command be used for more than one column?

  

  

Which of the following is not a valid aggregate function?

  

  

  

  

The result of a SELECT statement can contain duplicate rows.

  

  

  

Which of these is not a valid name for a column

  

  

  

  

A NULL value is treated as a blank or 0.

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

Where is metadata stored in MySQL?

  

  

  

  

What is a candidate key?

  

  

  

  

What is Table?

  

  

  

  

Which SQL statement is used to return only different values?

  

  

  

  

How to view all Triggers in MySQL?

  

  

  

  

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

  

  

  

  

  

MySql | Which of the following is available in MySQL:

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

Commands passed to the MySQL daemon are written in.

  

  

  

  

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  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is not a MySQL Operator?

  

  

  

  

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

  

  

  

  

  

What is Row?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A SELECT command without a WHERE clause returns?

  

  

  

  

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 SQL keyword is used to sort the result-set?

  

  

  

  

Which of the following is NOT supported by MySQL

  

  

  

  

How much storage space does DATETIME require?

  

  

  

  

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

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

MySQL comes with as standard with client libraries for:

  

  

  

  

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

  

  

  

  

The program called mysql is

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

What is DCL?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is NOT available in MySQL?

  

  

  

  

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

  

  

  

  

What kind of replication is supported by the MySQL server?

  

  

  

  

Which of the following is not an SQL aggregate function?

  

  

  

  

  

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

  

  

  

  

BLOB data type can have default column value.

  

  

How is structure of a table got in MySQL?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

MySQL runs on which operating systems?

  

  

  

  

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

  

  

  

  

How much character are allowed to create database name?

  

  

  

  

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

  

  

  

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

  

  

  

  

How many TRIGGERS are allowed in MySql table?

  

  

  

  

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

  

  

  

  

What is DML?

  

  

  

  

The "father" of MySQL is

  

  

  

  

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

  

  

  

  

What is DDL?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

Which function used to get the current time in mysql?

  

  

  

MySQL supports the complete SQL99 standard

  

  

Which of the following is not a character manipulation function?

  

  

  

  

MySQL is

  

  

  

  

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

  

  

  

  

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 command is used in Mysql command line tool to return to window command shell?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Can joins be nested?

  

  

Which statement is used to access an existing Database?

  

  

  

  

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

  

  

  

  

What does SQL stand for?

  

  

  

  

Transactions are used to treat sets of SQL statements atomically.

  

  

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

  

  

  

  

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.