Home - Database - Advanced Sql

Advanced Sql Online Exam Quiz

Important questions about Advanced Sql. Advanced Sql MCQ questions with answers. Advanced Sql exam questions and answers for students and interviews.

1. A CASE SQL statement is which of the following?

Options

A : A way to establish an IF-THEN-ELSE in SQL.

B : A way to establish a loop in SQL.

C : A way to establish a data definition in SQL.

D : All of the above.

2. Which of the following statements is true concerning routines and triggers?

Options

A : Both consist of procedural code.

B : Both have to be called to operate.

C : Both run automatically.

D : Both are stored in the database.

3. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ;

Options

A : Equi-join

B : Natural join

C : Outer join

D : Cartesian join

4. How many tables may be included with a join?

Options

A : One

B : Two

C : Three

D : All of the above.

5. Which of the following is a correlated subquery?

Options

A : Uses the result of an inner query to determine the processing of an outer query.

B : Uses the result of an outer query to determine the processing of an inner query.

C : Uses the result of an inner query to determine the processing of an inner query.

D : Uses the result of an outer query to determine the processing of an outer query.

6. The joining technique is useful when data from several relations are to be retrieved and displayed and the relationships are not necessarily nested.

Options

A : True

B : False

C :

D :

7. There should be one condition within the WHERE clause for each pair of tables being joined.

Options

A : True

B : False

C :

D :

8. A transaction is the complete set of closely related update commands that must all be done, or none of them done, for the database to remain valid.

Options

A : True

B : False

C :

D :

9. A correlated subquery is where the outer query depends on data from the inner query.

Options

A : True

B : False

C :

D :

10. The code to create triggers and routines is stored in only one location and is administered centrally.

Options

A : True

B : False

C :

D :

1. A function returns one value and has only output parameters.

Options

A : True

B : False

C :

D :

2. When AUTOCOMMIT is set on, changes will be made automatically at the end of each SQL statement.

Options

A : True

B : False

C :

D :

3. With the UNION clause, each query involved must output the same number of columns, and they must be UNION compatible.

Options

A : True

B : False

C :

D :

4. The most frequently used relational operation, which brings together data from two or more related tables into one resultant table, is called an equi-join.

Options

A : True

B : False

C :

D :

5. Triggers are stored blocks of code that have to be called in order to operate.

Options

A : True

B : False

C :

D :

6. ROLLBACK WORK asks SQL to empty the log file.

Options

A : True

B : False

C :

D :

7. The UNION clause is used to combine the output from multiple queries together into a single result table.

Options

A : True

B : False

C :

D :

8. Subqueries can be nested multiple times.

Options

A : True

B : False

C :

D :

9. Outer join is the same as equi-join, except one of the duplicate columns is eliminated in the result table.

Options

A : True

B : False

C :

D :

1. Which of the following is true concerning triggers?

Options

A : You do not create them with SQL.

B : They execute against only some applications that access a database.

C : They have an event, condition, and action.

D : They cannot cascade (cause another trigger to fire).

Database more Online Exam Quiz

Copyright © 2021
Exam-GK-MCQ-Questions.Com | Contact Us | Privacy Policy | Terms of Use | Sitemap | 0.020362138748169