A2 SQL Commands
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Andrew Dawson
Used 7+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands create a table?
CREATE TABLE TableName
CREATE TableName
BUILD TableName
INSERT TableName
Answer explanation
CREATE TABLE Students (
StudentID VARCHAR(4) NOT NULL,
StudentName VARCHAR(20) NOT NULL,
DOB DATE
PRIMARY KEY (StudentID)
)
Creates a table with 3 fields which specific validation techniques applied. The primary key is the StudentID. NOT NULL indicates that this field must be filled in when inserting a record.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands delete a table?
DELETE TABLE TableName
DELETE TableName
DROP TableName
REMOVE TableName
Answer explanation
DROP Students
Deletes the table and all the data
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands return data from a database table?
SELECT
INSERT
DELETE
DROP
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands return all the data from a database table?
SELECT * FROM Students
SELECT * FROM Pupils WHERE PupilID = “EHP01”
SELECT PupilID FROM Pupils
SELECT PupilName, DOB FROM Pupils WHERE Gender = “F”
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands return a specific column from a database table?
SELECT * FROM Students
SELECT * FROM Pupils WHERE PupilID = “EHP01”
SELECT PupilID FROM Pupils
SELECT PupilName, DOB FROM Pupils WHERE Gender = “F”
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands return all the data for a specific record?
SELECT * FROM Students
SELECT * FROM Pupils WHERE PupilID = “EHP01”
SELECT PupilID FROM Pupils
SELECT PupilName, DOB FROM Pupils WHERE Gender = “F”
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL commands return all the data specific data that meets a given criteria?
SELECT * FROM Students
SELECT * FROM Pupils WHERE PupilID = “EHP01”
SELECT PupilID FROM Pupils
SELECT PupilName, DOB FROM Pupils WHERE Gender = “F”
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
Introduction to Programming Vocabulary
Quiz
•
9th - 12th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
20 questions
Microsoft Word Ribbon Test
Quiz
•
9th - 12th Grade
17 questions
1.1.3. Input, Output and Storage
Quiz
•
12th Grade
15 questions
Basic Concept of Network
Quiz
•
12th Grade
15 questions
Cambridge Technicals L3 U2 Information Types
Quiz
•
12th Grade
15 questions
Photoshop
Quiz
•
9th - 12th Grade
21 questions
HTML5 & CSS3 Refresher
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
