SQL: SELECT, INSERT, UPDATE, DELETE

SQL: SELECT, INSERT, UPDATE, DELETE

11th Grade

10 Qs

quiz-placeholder

Similar activities

Database Concept

Database Concept

9th - 12th Grade

10 Qs

Database

Database

9th Grade - University

11 Qs

SQL - Basic concepts

SQL - Basic concepts

11th - 12th Grade

10 Qs

Database Concepts

Database Concepts

11th Grade

15 Qs

U2 Normalization

U2 Normalization

10th - 12th Grade

14 Qs

SQL

SQL

11th - 12th Grade

12 Qs

PRETEST BASIS DATA KELAS 11

PRETEST BASIS DATA KELAS 11

11th Grade

10 Qs

Databases

Databases

10th Grade - University

15 Qs

SQL: SELECT, INSERT, UPDATE, DELETE

SQL: SELECT, INSERT, UPDATE, DELETE

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Kieran Kyle

Used 2+ times

FREE Resource

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

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?