What SQL statement is used to create a new table called 'cars' with the columns 'brand' and 'model'?

SQL Questions Quiz

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
Dolores Justo
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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;
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Database Practice Test 1 Part 2 Review

Quiz
•
11th Grade
13 questions
Database Practice Test 1 Review

Quiz
•
11th Grade
20 questions
PSTS PPLDB (Quis 2)

Quiz
•
11th Grade
10 questions
BÀI 18. THỰC HÀNH XÁC ĐỊNH CẤU TRÚC BẢNG VÀ CÁC TRƯỜNG KHÓA

Quiz
•
11th Grade
10 questions
SEGITSEG

Quiz
•
11th Grade
20 questions
Uji Pemahaman SQL untuk Siswa Kelas 11

Quiz
•
11th Grade
19 questions
Вопросы по SQL

Quiz
•
11th Grade
17 questions
Quis ke-1 (Perencanaan dan Pengalamatan Jaringan)

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University