General Databases Beginner Basic SQL Query Writing Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 8865 | Total Attempts: 106,055
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. What does LEFT JOIN return?

Submit
Please wait...
About This Quiz
General Databases Beginner Basic SQL Query Writing Quiz - Quiz

Test your foundational SQL skills with this college-level quiz on database fundamentals. Covering SELECT statements, WHERE clauses, joins, and basic data manipulation, this quiz assesses your ability to write and understand essential SQL queries. Ideal for students beginning their database journey or preparing for advanced coursework.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What does a foreign key establish between tables?

Submit

3. Which SQL keyword prevents duplicate values in aggregate results?

Submit

4. Complete: SELECT name FROM students _____ department = 'Engineering'

Submit

5. What is the primary key used for?

Submit

6. Which operator is used to search for patterns in SQL?

Submit

7. Write the SQL keyword to modify existing records: _____ table_name

Submit

8. What does the AVG() function calculate?

Submit

9. Which SQL statement removes records from a table?

Submit

10. Complete: UPDATE employees _____ salary = 60000 WHERE id = 5

Submit

11. Which SQL keyword is used to retrieve data from a database table?

Submit

12. Which clause is used to group rows with aggregate functions?

Submit

13. Write the SQL keyword to add new records to a table: _____ INTO table_name

Submit

14. What is the purpose of the DISTINCT keyword?

Submit

15. Which SQL function counts the number of rows?

Submit

16. Complete the statement: SELECT * FROM employees WHERE salary > 50000 _____ age;

Submit

17. In SQL, what does INNER JOIN do?

Submit

18. Which SQL clause is used to sort query results?

Submit

19. Write the SQL keyword that selects all columns: SELECT _____ FROM table_name

Submit

20. What does the WHERE clause do in a SQL query?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does LEFT JOIN return?
What does a foreign key establish between tables?
Which SQL keyword prevents duplicate values in aggregate results?
Complete: SELECT name FROM students _____ department = 'Engineering'
What is the primary key used for?
Which operator is used to search for patterns in SQL?
Write the SQL keyword to modify existing records: _____ table_name
What does the AVG() function calculate?
Which SQL statement removes records from a table?
Complete: UPDATE employees _____ salary = 60000 WHERE id = 5
Which SQL keyword is used to retrieve data from a database table?
Which clause is used to group rows with aggregate functions?
Write the SQL keyword to add new records to a table: _____ INTO...
What is the purpose of the DISTINCT keyword?
Which SQL function counts the number of rows?
Complete the statement: SELECT * FROM employees WHERE salary > 50000...
In SQL, what does INNER JOIN do?
Which SQL clause is used to sort query results?
Write the SQL keyword that selects all columns: SELECT _____ FROM...
What does the WHERE clause do in a SQL query?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!