
SQL Questions Quiz
Authored by Dolores Justo
Information Technology (IT)
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What SQL statement is used to create a new table called 'cars' with the columns 'brand' and 'model'?
CREATE DATABASE cars (brand VARCHAR(255), model VARCHAR(255));
CREATE TABLE cars (brand VARCHAR(255), model VARCHAR(255));
CREATE cars TABLE (brand VARCHAR(255), model VARCHAR(255));
CREATE NEW TABLE cars (brand VARCHAR(255), model VARCHAR(255));
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you select all columns from the 'customers' table?
SELECT all FROM customers;
SELECT * FROM customers;
SELECT customers FROM *;
SELECT ALL COLUMNS FROM customers;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What clause is used to filter the results of a query in PostgreSQL?
ORDER BY
GROUP BY
WHERE
HAVING
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you order the results of the 'products' table by the 'price' field from lowest to highest?
SELECT * FROM products ORDER BY price DESC;
SELECT * FROM products ORDER BY price ASC;
SELECT * FROM products SORT BY price;
SELECT * FROM products GROUP BY price;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used to compare if a value is within a specific set of values?
BETWEEN
LIKE
IN
EXISTS
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the aggregation function that returns the total number of rows in a result set?
SUM()
COUNT()
AVG()
TOTAL()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What SQL statement is used to delete a table called 'orders'?
DELETE TABLE orders;
DROP TABLE orders;
REMOVE TABLE orders;
TRUNCATE TABLE orders;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
uji coba Strategi Algoritma dan Pemrograman
Quiz
•
11th Grade - University
20 questions
KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar
Quiz
•
7th Grade - University
20 questions
Basis Data
Quiz
•
11th Grade
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
15 questions
Uji Pemahaman Microsoft Word
Quiz
•
11th Grade - University
20 questions
STS Mapel Pilihan (Database) XI TJAT
Quiz
•
11th Grade
15 questions
Kuis Informatika KELAS XI 1
Quiz
•
11th Grade
11 questions
Quiz Infor 1
Quiz
•
11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade