Search Header Logo

SQL: SELECT, INSERT, UPDATE, DELETE

Authored by Kieran Kyle

Computers

11th Grade

Used 2+ times

SQL: SELECT, INSERT, UPDATE, DELETE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement would you use to display all the records from a table called Students?

SHOW * FROM Students;

SELECT ALL FROM Students;

SELECT * FROM Students;

DISPLAY ALL FROM Students;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the INSERT statement in SQL?

To add new data to a table

To change existing data in a table

To delete data from a table

To retrieve data from a table

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to change a student’s grade to B in a table called Results where the studentID is 101?

UPDATE Results SET grade = "B";

UPDATE Results SET grade = "B" WHERE studentID = 101;

CHANGE grade TO "B" IN Results;

SET Results.grade = "B" FOR studentID = 101;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would delete all records from the table Books?

DELETE Books;

REMOVE FROM Books;

DELETE * FROM Books;

DELETE FROM Books;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a PRIMARY KEY in a database?

To link two tables together

To uniquely identify each record in a table

To store multiple values in a single field

To count the number of rows in a table

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a relational database, what does a FOREIGN KEY do?

Ensures all data is unique in a table

Links a table to another table using a field from the other table

Prevents data from being updated

Stores large amounts of text data

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct data type to store a price like £15.99 in a database?

INTEGER

TEXT

REAL

BOOLEAN

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?