Which of the following SQL commands create a table?
A2 SQL Commands

Quiz
•
Computers
•
12th Grade
•
Medium

Andrew Dawson
Used 7+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
SQL

Quiz
•
11th - 12th Grade
20 questions
sql queries - 2

Quiz
•
12th Grade
18 questions
Structured Query Language

Quiz
•
12th Grade
15 questions
REST API and MySQL Quiz SKG

Quiz
•
12th Grade
21 questions
Database Quiz 4 SQL

Quiz
•
12th Grade
15 questions
Cambridge Technicals Unit 2 LO3 [3.2 - 3.5]

Quiz
•
12th Grade
20 questions
Unit 2 - Creating Tables

Quiz
•
12th Grade
25 questions
JAVASCRIPT

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade