A2 SQL Commands

A2 SQL Commands

12th Grade

20 Qs

quiz-placeholder

Similar activities

It's delicious - it's from Europe!

It's delicious - it's from Europe!

6th - 12th Grade

15 Qs

Database Concepts

Database Concepts

11th - 12th Grade

15 Qs

SQL

SQL

11th - 12th Grade

15 Qs

SQL Basics

SQL Basics

9th - 12th Grade

19 Qs

Learning SQL

Learning SQL

11th - 12th Grade

15 Qs

SQL Queries

SQL Queries

12th Grade

25 Qs

Structured Query Language

Structured Query Language

12th Grade

18 Qs

Preguntas sobre SQL

Preguntas sobre SQL

9th - 12th Grade

15 Qs

A2 SQL Commands

A2 SQL Commands

Assessment

Quiz

Computers

12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?