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
SQL Basics

Quiz
•
9th - 12th Grade
20 questions
BASIS DATA KELAS XII RPL

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

Quiz
•
12th Grade
21 questions
GCSE Computer Science: Databases

Quiz
•
9th - 12th Grade
16 questions
Ficha de SQL

Quiz
•
10th - 12th Grade
20 questions
DNS SERVER

Quiz
•
12th Grade
20 questions
sql queries - 2

Quiz
•
12th Grade
15 questions
SQL

Quiz
•
11th - 12th 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
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University