SQL Basics
Test your knowledge of SQL fundamentals including SELECT, WHERE, JOIN, and aggregate functions.
10 Questions
beginner
Quiz Questions
-
Which SQL keyword is used to retrieve data from a database?
-
GET
-
FETCH
-
SELECT
-
RETRIEVE
-
What does the WHERE clause do?
-
Sorts records
-
Filters records
-
Groups records
-
Joins tables
-
Which SQL statement is used to insert new data?
-
ADD
-
INSERT INTO
-
CREATE
-
UPDATE
-
What does SQL stand for?
-
Structured Query Language
-
Simple Query Language
-
Standard Query Language
-
Sequential Query Language
-
Which clause is used to sort the result set?
-
SORT BY
-
ORDER BY
-
GROUP BY
-
ARRANGE BY
-
What is the purpose of the GROUP BY clause?
-
To filter groups
-
To sort data
-
To group rows with same values
-
To join tables
-
Which function returns the number of rows?
-
SUM()
-
COUNT()
-
TOTAL()
-
NUM()
-
What does DISTINCT keyword do?
-
Removes duplicates
-
Counts unique values
-
Sorts uniquely
-
Filters distinct
-
Which JOIN returns all rows when there is a match in either table?
-
INNER JOIN
-
LEFT JOIN
-
RIGHT JOIN
-
FULL OUTER JOIN
-
How do you select all columns from a table named 'users'?
-
SELECT users
-
SELECT ALL FROM users
-
SELECT * FROM users
-
SELECT [all] FROM users