Home / Practice / Class 12 / Computer Science / Databases and SQL
Databases and SQL
6 Class 12 Computer Science questions with answers and explanations.
Printable worksheet with answer key
All questions with answers
-
Which SQL command retrieves data?
- 1 DELETE
- 2 UPDATE
- 3 SELECT
- 4 INSERT
Show answer
Correct answer: SELECT
SELECT reads rows from a table.
Report a mistake
-
Which SQL command adds a new row?
- 1 DROP
- 2 INSERT
- 3 SELECT
- 4 ALTER
Show answer
Correct answer: INSERT
INSERT INTO adds a record.
Report a mistake
-
The clause used to filter rows in SQL is:
- 1 WHERE
- 2 GROUP
- 3 ORDER
- 4 FROM
Show answer
Correct answer: WHERE
WHERE sets a condition.
Report a mistake
-
A foreign key is used to:
- 1 Hide data
- 2 Sort rows
- 3 Delete a table
- 4 Link two tables
Show answer
Correct answer: Link two tables
It refers to the primary key of another table.
Report a mistake
-
Which clause sorts the result of a query?
- 1 JOIN
- 2 WHERE
- 3 HAVING
- 4 ORDER BY
Show answer
Correct answer: ORDER BY
ORDER BY sorts rows.
Report a mistake
-
Removing repeated data from tables is called:
- 1 Backup
- 2 Compilation
- 3 Normalisation
- 4 Formatting
Show answer
Correct answer: Normalisation
Normalisation reduces redundancy.
Report a mistake
More Computer Science topics