SQL - Constraints

SQL - Constraints

University

15 Qs

quiz-placeholder

Similar activities

JETBOY BBF NG MANDA REVIEW

JETBOY BBF NG MANDA REVIEW

University

10 Qs

Quiz 1 - Database

Quiz 1 - Database

University

10 Qs

Chapter 4 - Database System Quiz

Chapter 4 - Database System Quiz

University

14 Qs

CH8 of database

CH8 of database

University

11 Qs

A3 IIB - DDL: Data Definition Language II

A3 IIB - DDL: Data Definition Language II

11th Grade - University

10 Qs

DBMS_Quiz_1

DBMS_Quiz_1

University

15 Qs

Prática SQL 1 - DDL

Prática SQL 1 - DDL

University - Professional Development

18 Qs

SQL4-Join/aggregate functions/group by

SQL4-Join/aggregate functions/group by

University

19 Qs

SQL - Constraints

SQL - Constraints

Assessment

Quiz

Computers

University

Medium

Created by

Twins TR

Used 91+ times

FREE Resource

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

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?