Introduction to SQL Quiz

Introduction to SQL Quiz

University

11 Qs

quiz-placeholder

Similar activities

baitap

baitap

University

10 Qs

SMALL TEST W3 - KP B

SMALL TEST W3 - KP B

University

14 Qs

Bài tập trắc nghiệm tool pgadmin 4

Bài tập trắc nghiệm tool pgadmin 4

University

10 Qs

Spreadsheets

Spreadsheets

KG - University

10 Qs

Sql Set 2

Sql Set 2

University

10 Qs

SQL - DEBUTANT

SQL - DEBUTANT

University

14 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

Small Test W3 - KP C

Small Test W3 - KP C

University

14 Qs

Introduction to SQL Quiz

Introduction to SQL Quiz

Assessment

Quiz

Other

University

Hard

Created by

LioS LioS

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to add new rows to a table?

INSERT

SELECT

UPDATE

DELETE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for inserting values into a table?

INSERT INTO table_name (columns) VALUES (values);

INSERT INTO table_name VALUES (values);

INSERT table_name (columns) VALUES (values);

INSERT table_name VALUES (values);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you retrieve all columns from a table?

SELECT * FROM table_name;

SELECT columns FROM table_name;

SELECT ALL FROM table_name;

SELECT table_name;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator is used with SELECT to retrieve unique values?

DISTINCT

UNIQUE

FILTER

WHERE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the WHERE clause in SQL?

To filter rows based on criteria

To sort the results

To group rows

To join tables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the LIKE operator do in SQL?

Matches a string pattern

Filters numeric values

Retrieves unique values

Sorts results

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for checking if a column is NULL?

SELECT columns FROM table_name WHERE column IS NULL;

SELECT columns FROM table_name WHERE column = NULL;

SELECT columns FROM table_name WHERE column IS EMPTY;

SELECT columns FROM table_name WHERE column NOT NULL;

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?