SQL Quiz

SQL Quiz

12th Grade

65 Qs

quiz-placeholder

Similar activities

Foods 1 Review_Final Review

Foods 1 Review_Final Review

9th - 12th Grade

60 Qs

Pre Assessment Into to Culinary Arts

Pre Assessment Into to Culinary Arts

9th - 12th Grade

60 Qs

Foods 1 EOY Most Missed Part 2

Foods 1 EOY Most Missed Part 2

9th - 12th Grade

60 Qs

Microsoft Word Advanced

Microsoft Word Advanced

6th - 12th Grade

70 Qs

Unit 1-2 SOL Review

Unit 1-2 SOL Review

6th - 12th Grade

60 Qs

Revelation

Revelation

9th - 12th Grade

62 Qs

KC Driver Ed: Unit 3 Review

KC Driver Ed: Unit 3 Review

9th - 12th Grade

60 Qs

Mid unit assessment

Mid unit assessment

6th Grade - University

70 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

12th Grade

Hard

Created by

Nurly Nurly

Used 1+ times

FREE Resource

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct option to convert phone_number attribute from varchar to integer data type

phone_number:varchar(*)

phone_number:varchar (3)

phone_number to int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List all operations of relation algebra in the query: SELECT accountld FROM Account;

Projection

Projection, union

Projection, selection

Selection

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A table that satisfies 2NF

None of the given

May violate 1NF

Always satisfies 1NF

Always satisfies 3NF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

SELECT Persons;

SELECT * Persons;

SELECT [all] FROM Persons;

SELECT * FROM Persons;

5.

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" starts with an "a"?

SELECT * FROM Persons WHERE FirstName='a';

SELECT * FROM Persons WHERE FirstName LIKE '%a';

SELECT FROM Persons WHERE FirstName LIKE 'a%;

SELECT * FROM Persons WHERE FirstName='%a%;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The___ operator combines all tuples from two relations excluding duplicates.

Difference

Divide

Union

Intersect

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL keyword is used to retrieve a maximum value?

MOST

UPPER

TOP

MAX

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?