A2 SQL Commands

A2 SQL Commands

12th Grade

20 Qs

quiz-placeholder

Similar activities

python basics

python basics

11th Grade - University

15 Qs

Spreadsheet

Spreadsheet

8th Grade - University

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

Trò chơi ôn tập GKI tin 12  lần 2

Trò chơi ôn tập GKI tin 12 lần 2

12th Grade

20 Qs

Tech Trivia, Part III

Tech Trivia, Part III

7th - 12th Grade

20 Qs

SHEET QUIZ

SHEET QUIZ

9th - 12th Grade

15 Qs

A2 Computer Science  4.10 Databases

A2 Computer Science 4.10 Databases

10th - 12th Grade

16 Qs

A2 SQL Commands

A2 SQL Commands

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Andrew Dawson

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?