
- SQL Tutorial
- SQL - Home
- SQL - Overview
- SQL - RDBMS Concepts
- SQL - Databases
- SQL - Syntax
- SQL - Data Types
- SQL - Operators
- SQL - Expressions
- SQL - Create Database
- SQL - Drop Database
- SQL - Select Database
- SQL - Create Table
- SQL - Drop Table
- SQL - Insert Query
- SQL - Select Query
- SQL - Where Clause
- SQL - AND & OR Clauses
- SQL - Update Query
- SQL - Delete Query
- SQL - Like Clause
- SQL - Top Clause
- SQL - Order By
- SQL - Group By
- SQL - Distinct Keyword
- SQL - Sorting Results
- Advanced SQL
- SQL - Constraints
- SQL - Using Joins
- SQL - Unions Clause
- SQL - NULL Values
- SQL - Alias Syntax
- SQL - Indexes
- SQL - Alter Command
- SQL - Truncate Table
- SQL - Using Views
- SQL - Having Clause
- SQL - Transactions
- SQL - Wildcards
- SQL - Date Functions
- SQL - Temporary Tables
- SQL - Clone Tables
- SQL - Sub Queries
- SQL - Using Sequences
- SQL - Handling Duplicates
- SQL - Injection
- SQL Useful Resources
- SQL - Database Tuning
- SQL - Questions and Answers
- SQL - Quick Guide
- SQL - Useful Functions
- SQL - Useful Resources
- SQL - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
SQL Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to SQL. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - Which of the following is not true about SQL statements?
A - SQL statements are not case sensitive.
B - SQL statements can be written on one or more lines.
Answer : D
Q 2 - Consider the following schema −
STUDENTS(student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks);
Which of the following query would correctly display the students’ first name, last name, honours subject and date of birth, born between July 1st 1996, and 30th June 1999.
Answer : D
Q 3 - Which of the following is not true about the COALESCE function?
A - It takes multiple alternate values.
B - It returns the first non-null expression in the parameter list.
C - It returns the first value in the parameter list if it is null.
Answer : C
Q 4 - Which of the following is not true about the ON clause?
A - ON clause is used to specify conditions or specify columns to join.
B - ON clause makes the query easy to understand.
Answer : C
Q 5 - Which of the following is not true about single-row subqueries?
A - Single row subqueries return one row from the inner SELECT statement.
B - Single row subqueries return one row from the outer SELECT statement.
C - Single row subqueries use single-row comparison operators.
Answer : B
Q 6 - Which of the following is not true about multiple-row subqueries?
A - Multiple row subqueries return multiple rows from the outer SELECT statement.
B - Multiple row subqueries return multiple rows from the inner SELECT statement.
C - Multiple row subqueries use multiple-row comparison operators.
Answer : B
Q 7 - Which of the following is true about the SQL transaction control statements?
A - They ensure data consistency.
B - They allow preview of data changes before making permanent changes in data.
Answer : D
Q 8 - Which of the following is not true about complex views?
A - They derive data from more than one table.
B - They contain no functions or grouping.
C - You cannot perform DML operations through a complex view.
Answer : B
Q 9 - Which of the following is not true about the Pseudocolumns that return the sequence values?
A - NEXTVAL returns the next available sequence value.
B - CURRVAL gets the current sequence value.
Answer : C
Q 10 - Which of the following is not true about database synonyms?
A - Synonyms are used for shortening lengthy object names.
B - A synonym is just an alternative name.
C - Synonyms can be created for tables, views, sequences, procedures and other database objects.