SQL Quiz

SQL Quiz

12th Grade

65 Qs

quiz-placeholder

Similar activities

Unit 3, Ch. 9 Earth Science Review

Unit 3, Ch. 9 Earth Science Review

9th - 12th Grade

60 Qs

BUSINESS FINANCE LONG QUIZ 4TH QUARTER

BUSINESS FINANCE LONG QUIZ 4TH QUARTER

12th Grade

61 Qs

Forms of Business Organisation

Forms of Business Organisation

11th - 12th Grade

60 Qs

Tool ID Pre-Test

Tool ID Pre-Test

9th - 12th Grade

60 Qs

Employability Skills Pretest

Employability Skills Pretest

9th - 12th Grade

65 Qs

ASE A5 Certification Practice Test

ASE A5 Certification Practice Test

10th Grade - University

65 Qs

Child Development Final Review

Child Development Final Review

9th - 12th Grade

70 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

12th Grade

Hard

Created by

Nurly Nurly

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?