Search Header Logo

SQL Quiz

Authored by Quốc Thư

Computers

9th Grade

Used 2+ times

SQL Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which word is missing from the following SQL statement? Select * table_name

With

Where

From

And

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement would add a record to the database?

INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer

INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer

INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where does the CREATE Command belong?

DML

DDL

DCL

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is a DML command that is used to display record.

DISPLAY

STRUCTURE

WHERE

SELECT

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

______________ constraint prevents NULL values

UNIQUE

NOT NULL

NULL

FOREIGN KEY

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A primary key can be NULL in the table? TRUE or FALSE

TRUE

FALSE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are required to update the phone number for only the DesignerID "SMI01" in the "Designer" table. Which of these would successfully do that?

UPDATE Designer SET PhoneNo = '01224123456'

UPDATE Designer (PhoneNo) VALUES ('01224123456')

UPDATE Designer SET PhoneNo = '01224123456' WHERE DesignerID = 'SMI01'

UPDATE PhoneNo = '01224123456' FROM Designer WHERE DesignerID = 'SMI01'

Access all questions and much more by creating a free account

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

Already have an account?