Search Header Logo

SQL Basics Quiz for Students

Authored by Graeme Smith

Computers

10th Grade

Used 2+ times

SQL Basics Quiz for Students
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the PRIMARY KEY in an SQL table?

To store the first column of data

To ensure no duplicate values and identify each record uniquely

To allow NULL values in the table

To link two tables together

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL command is used to create a new database?

CREATE DATABASE

INSERT DATABASE

ADD DATABASE

MAKE DATABASE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the FOREIGN KEY constraint do?

It creates a unique identifier for each record

It links data from two tables based on a common field

It allows duplicate values in the table

It updates multiple tables at once

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid SQL data type?

varchar

int

float

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to remove a table from a database?

DROP TABLE

DELETE TABLE

REMOVE TABLE

CLEAR TABLE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to filter records?

WHERE

FILTER

SELECT

ORDER BY

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the SQL command SELECT?

To delete records from a table

To update records in a table

To retrieve data from a database

To insert new records into a table

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?