SQL Basics Quiz for Students

SQL Basics Quiz for Students

10th Grade

11 Qs

quiz-placeholder

Similar activities

Database - Including Mail Merge & Macros

Database - Including Mail Merge & Macros

10th Grade

16 Qs

Database concepts part 1 & 2

Database concepts part 1 & 2

9th - 11th Grade

15 Qs

GCSE 2.2 SQL

GCSE 2.2 SQL

9th - 11th Grade

12 Qs

J277 - 2.2 - The use of SQL to search for data

J277 - 2.2 - The use of SQL to search for data

10th Grade - University

10 Qs

Databases

Databases

10th - 12th Grade

14 Qs

SQL (1)

SQL (1)

10th Grade - University

10 Qs

Database and Excel

Database and Excel

9th - 10th Grade

10 Qs

Computer Science Database

Computer Science Database

10th Grade

15 Qs

SQL Basics Quiz for Students

SQL Basics Quiz for Students

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Graeme Smith

Used 1+ times

FREE Resource

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

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?