Search Header Logo

SQL Quiz 2

Authored by Zhannat Akylbek

Computers

University

SQL Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the columns from a table named "Persons"?

SELECT * FROM Persons;

SELECT Persons;

SELECT [all] FROM Persons;

SELECT *.Persons;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

SELECT * FROM Persons WHERE FirstName='Peter';

SELECT [all] FROM Persons WHERE FirstName='Peter';

SELECT * FROM Persons WHERE FirstName<>'Peter';

SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter';

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?

SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson';

SELECT FirstName='Peter', LastName='Jackson' FROM Persons;

SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson';

SELECT * FROM Persons WHERE LastName='Jackson';

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to apply a second condition to your statement where both statements must be true, what keyword would you use between the conditions?

AND

BOTH

TRUE

WHERE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct order of keywords for SQL SELECT statements?

SELECT, FROM, WHERE

FROM, WHERE, SELECT

WHERE, FROM, SELECT

SELECT,WHERE,FROM

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of an SQL SELECT statement is a(n) ________.

table

report

file

form

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an SQL SELECT statement querying a single table, the asterisk (*) means that:

all columns of the table are to be returned.

all records meeting the full criteria are to be returned.

all records with even partial criteria met are to be returned.

None of the given.

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?

Discover more resources for Computers