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
13 questions
Database Practice Test 1 Review

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

Quiz
•
11th Grade
10 questions
Network Configuration Quiz

Quiz
•
9th - 12th Grade
10 questions
Quiz CIDR A

Quiz
•
11th Grade
20 questions
KUIZ DIAGNOSTIK

Quiz
•
11th Grade - University
19 questions
1. Quiz z poleceń SQL_DDL_DML_DQL

Quiz
•
11th Grade
15 questions
SQL Questions Quiz

Quiz
•
11th Grade
10 questions
Database

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade