Search Header Logo

SQL - Constraints

Authored by ALDO STALIN J L

Computers

University

Used 115+ times

SQL - Constraints
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used for removing a table and all its data from the database:

Create command

Drop table command

Alter table command

All of the mentioned

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which constraint(s) can be used to make sure that the column is not left empty?

NOT NULL

UNIQUE

PRIMARY KEY

ALL THE ABOVE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of SQL constraint?

Primary Key
Foreign Key
Alternate Key
Unique
NOT NULL

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

______________ constraint prevents NULL values

UNIQUE

NOT NULL

NULL

FOREIGN KEY

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. ___________ constraint ensures that no two rows have the same value in the specified columns.

Primary Key

Unique

Default

Check

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. ___________ which helps to uniquely identify a record.

Primary key Constraint

Unique Constraint

Default constraint

Check constraint

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. _________ helps to set a limit value placed for a field.

DEFAULT Constraint

Primary Key Constraint

Check Constraint

TABLE CONSTRAINT

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