SQL Questions Quiz

SQL Questions Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

Teste de SQL: Tabelas e Inserções

Teste de SQL: Tabelas e Inserções

10th Grade - University

14 Qs

Database Practice Test 1 Review

Database Practice Test 1 Review

11th Grade

13 Qs

Uji Pemahaman SQL untuk Siswa Kelas 11

Uji Pemahaman SQL untuk Siswa Kelas 11

11th Grade

20 Qs

Gestion des Utilisateurs de la BD

Gestion des Utilisateurs de la BD

2nd Grade - University

12 Qs

Database Practice Test 1 Part 2 Review

Database Practice Test 1 Part 2 Review

11th Grade

10 Qs

SQL Questions Quiz

SQL Questions Quiz

11th Grade

15 Qs

Database

Database

11th Grade

10 Qs

RETURN 17-БӨЛІМ

RETURN 17-БӨЛІМ

11th Grade

20 Qs

SQL Questions Quiz

SQL Questions Quiz

Assessment

Quiz

Information Technology (IT)

11th Grade

Hard

Created by

Dolores Justo

Used 1+ times

FREE Resource

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;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?