4. Databases

Sql Basics — Quiz

Test your understanding of sql basics with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

Which SQL command is used to retrieve data from a database table?

Question 2

Which SQL clause is used to filter records based on a specified condition?

Question 3

Which of the following SQL statements will insert a new row into a table named 'Students' with columns 'Name' and 'Age'?

Question 4

Which SQL keyword is used to sort the result set in ascending or descending order?

Question 5

Which of the following SQL statements will update the 'Salary' of all employees in the 'Employees' table to 50000 where 'Department' is 'HR'?