--:--









Quiz for Basic SQL Queries

Course: Database Management System | Subject: Unit 3 | Topic: SQL and Advanced SQL



Logo

Q1: Which SQL statement is used to retrieve data from a database?

Logo

Q2: Which clause is used to filter records in SQL?

Logo

Q3: Which operator is used to search for a specified pattern in a column?

Logo

Q4: Which keyword is used to sort the result set?

Logo

Q5: How do you select all columns from a table named Students?

Logo

Q6: Which SQL keyword is used to retrieve unique records?

Logo

Q7: Which clause groups rows sharing a property?

Logo

Q8: Which clause filters groups after aggregation?

Logo

Q9: How do you select the top 5 records from a table in SQL Server?

Logo

Q10: What is the function of the COUNT() aggregate function?

Logo

Q11: Which SQL operator checks if a value is within a list?

Logo

Q12: Which operator selects values within a range?

Logo

Q13: How do you rename a column in the result set?

Logo

Q14: Which statement is used to update existing data in a table?

Logo

Q15: How do you delete all records from a table?

Logo

Q16: Which command deletes the table structure and data?

Logo

Q17: How do you add a new column to an existing table?

Logo

Q18: Which clause is used to join two tables?

Logo

Q19: What type of JOIN returns all rows from the left table and matching rows from the right table?

Logo

Q20: Which keyword is used to eliminate duplicate rows in the result?

Are you ready to start test? Set your time limit