Introduction to SQL Quiz - CBSE Class 10 Computer Science
Free practice quiz: Introduction to SQL (CBSE Class 10 Computer Science). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
This CBSE Class 10 Computer Science practice quiz has 20 multiple-choice questions on Introduction to SQL, and 20 of them come with an explanation. Try the 5 sample questions below (tap an option to check yourself), then play the full quiz online. No sign-up needed.
Start quiz: 20 questions, freeSample questions
What is SQL primarily used for?
Show answer
Answer: C. Database management
SQL is primarily used for accessing and managing databases.
How can you ensure the uniqueness of a column in a table?
Show answer
Answer: A. PRIMARY KEY
A PRIMARY KEY constraint uniquely identifies each record in a database table.
How can you remove all records from a table without deleting the table?
Show answer
Answer: B. TRUNCATE
The TRUNCATE command deletes all rows in a table without logging individual row deletions.
Which command will remove a table from a database?
Show answer
Answer: C. DROP TABLE
DROP TABLE command removes a table and all its rows from the database.
In SQL, what purpose does the HAVING clause serve?
Show answer
Answer: C. It filters records after aggregation
HAVING clause is used to filter records that work on summarized group results, similar to WHERE but for aggregated data.
More questions in this quiz
Answers and explanations are in the full quiz.
- Which SQL command is used to fetch data from a database?
- Which keyword in SQL is used to remove duplicate records?
- Which command is used to add a new row in a table?
- Which SQL keyword is used to retrieve data in ascending order?
- What does the SQL command UPDATE do?
- Which SQL function is used to count the number of records?
- Which SQL clause is used to group rows that have the same values?
- In SQL, how do you ensure a column cannot have a NULL value?
- If you want to combine rows from two tables, which SQL operation would you use?
- Which SQL function is used to find the maximum value in a column?
- What does the SQL keyword 'LIKE' do?
- Which keyword would you use in SQL to ensure certain conditions are met?
- How do you rename a table in SQL?
- Which of the following statements is true about a SQL JOIN operation?
- What's the difference between an INNER JOIN and a LEFT JOIN in SQL?
More quizzes
Browse all Database Concepts quizzes