
SQL Test Review
Authored by Gerry Wartenberg
Computers
12th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which statement is used to extract data from a database?
Extract
Get
Open
Select
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which statement allows us to add a record to a table?
Add To
Update To
Add Into
Insert Into
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
SQL injection input of a TRUE statement will turn the query into:
SELECT * FROM SportData WHERE Team = 'Mustangs' or 1 = 1;
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
I want to select EVERY column and entry in my "actors" table. How can I do that?
SELECT * FROM actors;
SELECT age FROM actors;
SELECT * FROM actors WHERE age > 30;
SELECT name, age FROM actors WHERE age < 30;
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
I want to select all columns in my "actors" table for all actors older than 30. How can I do that?
SELECT * FROM actors;
SELECT age FROM actors;
SELECT * FROM actors WHERE age > 30;
SELECT name, age FROM actors WHERE age < 30;
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
I want to create a table in my table named "actors" with two columns: "name" and "age." What statement will do this?
CREATE TABLE actors (name TEXT, age INTEGER);
CREATE actors WITH COLUMNS (name, age);
CREATE DATABASE actors WITH COLUMNS (name TEXT, age INTEGER);
CREATE actors (name, age): TABLE, TEXT, INTEGER;
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
I want to add the actor "Brad Pitt" (aged 56) to my table "actors." Which statement will do this?
INSERT INTO actors VALUES ("Brad Pitt", 56);
INSERT "Brad Pitt" AND 56 INTO actors;
UPDATE age = 56 WHERE name = "Brad Pitt";
CREATE ENTRY ("Brad Pitt", 56) IN TABLE actors;
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
20 questions
Java 2 Quiz 9
Quiz
•
10th - 12th Grade
20 questions
VGD HAPPY QUIZ 1
Quiz
•
11th - 12th Grade
20 questions
Current Crypto News
Quiz
•
12th Grade
20 questions
Week 15 - WD1
Quiz
•
12th Grade
20 questions
Semester 1 - Microsoft Word
Quiz
•
9th - 12th Grade
20 questions
1.4 Logic Gate
Quiz
•
12th Grade
20 questions
Web 101 Assessment
Quiz
•
9th - 12th Grade
20 questions
MS Word Shortcut
Quiz
•
9th - 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