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
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
Similar Resources on Wayground
19 questions
Database Quiz 2 Normalisation

Quiz
•
12th Grade
21 questions
Arvuti osad piltidena

Quiz
•
1st - 12th Grade
25 questions
JAVASCRIPT

Quiz
•
12th Grade
15 questions
BTEC L2 Unit 1 Online World 1-8

Quiz
•
11th - 12th Grade
18 questions
Structured Query Language

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

Quiz
•
12th Grade
20 questions
CCNA Module 1 & 2

Quiz
•
12th Grade
20 questions
evaluasi bimbingan TIK

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade