
SQL: SELECT, INSERT, UPDATE, DELETE
Authored by Kieran Kyle
Computers
11th Grade
Used 2+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
História e Evolução Sistemas Operativos Servidor
Quiz
•
11th Grade
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
10 questions
DTJSQuiz
Quiz
•
11th Grade
12 questions
Calidad y Atributos del Servicio
Quiz
•
9th - 12th Grade
10 questions
Sistema Binario
Quiz
•
1st Grade - University
11 questions
Цикли з лічильником. Цикли з передумовою
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade