
SQL: SELECT, INSERT, UPDATE, DELETE

Quiz
•
Computers
•
11th Grade
•
Medium

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
Similar Resources on Wayground
10 questions
MS Access Database

Quiz
•
KG - University
10 questions
9.1 Databases Cambridge IGCSE 0478

Quiz
•
10th Grade - University
15 questions
Access Basics

Quiz
•
9th - 12th Grade
10 questions
Database Normalization

Quiz
•
11th Grade
11 questions
SQL

Quiz
•
10th - 12th Grade
10 questions
POST TEST BASIS DATA KELAS 11

Quiz
•
11th Grade
10 questions
Database

Quiz
•
8th - 12th Grade
7 questions
Databases Quiz 3

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade