
SQL Queries Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
DR MURTHY
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL command is used to retrieve data from a database?
INSERT
UPDATE
SELECT
DELETE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which clause is used to filter records in an SQL query based on a condition?
WHERE
GROUP BY
ORDER BY
HAVING
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL statements is used to remove rows from a table?
TRUNCATE
DELETE
DROP
REMOVE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following query do? SELECT COUNT(*) FROM Employee;
Returns the total number of columns in the Employee table
Returns the total number of rows in the Employee table
Returns the number of distinct employees
Returns the sum of all employee salaries
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL function is used to combine the values of multiple columns into one string?
CONCAT
SUM
LENGTH
GROUP_CONCAT
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SQL, the INNER JOIN keyword:
Combines rows from two or more tables where there is a match in the columns being joined
Returns all rows from the left table
Returns all rows from the right table
Combines all rows regardless of whether they match
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct for selecting all columns from a table named Products?
SELECT all FROM Products;
SELECT * FROM Products;
SELECT columns FROM Products;
SELECT everything FROM Products;
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
SQL

Quiz
•
10th - 12th Grade
12 questions
9 Database Quiz

Quiz
•
9th - 12th Grade
15 questions
SQL

Quiz
•
11th - 12th Grade
15 questions
RDBMS & SQL QUERIES

Quiz
•
12th Grade
10 questions
ICTDBS506 Creating a 'Car Pool' Database with MySQL

Quiz
•
12th Grade - University
10 questions
MySQL

Quiz
•
12th Grade
12 questions
SQL

Quiz
•
11th - 12th Grade
9 questions
H DDD - Aggregate functions (revision)

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade