Professional Documents
Culture Documents
SQL Notes 3
SQL Notes 3
Grade: 12
Subject: Computer Science
Answer: C
Answer: B and C
Answer: E
Q4. ) SQL Query to delete all rows in a table without deleting the table (structure, attributes, and
indexes)
A. DELETE FROM table_name;
B. DELETE TABLE table_name;
C. DROP TABLE table_name;
D. NONE
Answer: A
Q5.) If you want to allow age of a person > 18 in the column Age of table Person, then which
constraint will be applied to AGE column.
Default
Check
NOT NULL
None
Answer: B
Q6.) In a table, a column contains duplicate value, if you want to list all different value only, then
which SQL clause is used?
A. SQL DISTINCT
B. SQL UNIQUE
C. SQL BETWEEN
D. SQL Exists
Answer: A
Q7.) Which is called as a virtual table in SQL?
A. INNER JOIN
B. JOIN
C. VIEW
D. NONE
Answer: C
Q8. )Match SQL language with SQL commands
A. 1-iii,2-i,3-ii,4-iv
B. 1-iii,2-ii,3-iv,4-i
C. 1-ii,2-iii,3-iv,4-i
D. 1-i,2-iii,3-ii,4-iv
Answer: C
Answer: C
Q10.) The HAVING clause does which of the following?
D) Acts like a WHERE clause but is used for rows rather than columns.
Answer: C