SQL Quiz

SQL Quiz

12th Grade

65 Qs

quiz-placeholder

Similar activities

Respiratory System Word Parts

Respiratory System Word Parts

9th - 12th Grade

70 Qs

Everyday Cooking FINAL

Everyday Cooking FINAL

9th - 12th Grade

60 Qs

Kuis Teknik Mesin

Kuis Teknik Mesin

9th - 12th Grade

70 Qs

Đề cương tin học kì 2

Đề cương tin học kì 2

12th Grade

61 Qs

Randomness

Randomness

4th Grade - University

69 Qs

Animal  & Plant Science (Ag Certification Practice 2)

Animal & Plant Science (Ag Certification Practice 2)

9th - 12th Grade

60 Qs

Hiểu về hình ảnh KTS

Hiểu về hình ảnh KTS

12th Grade

70 Qs

PRAMUKA

PRAMUKA

12th Grade

68 Qs

SQL Quiz

SQL Quiz

Assessment

Quiz

Other

12th Grade

Practice Problem

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?