SQL and Database Design Quiz

SQL and Database Design Quiz

University

25 Qs

quiz-placeholder

Similar activities

Quiz PBD 1

Quiz PBD 1

University

26 Qs

DATA VS INFORMATION

DATA VS INFORMATION

University

22 Qs

Test your Power Bi

Test your Power Bi

University

23 Qs

Express Your Stack: Quiz on Web Wizards

Express Your Stack: Quiz on Web Wizards

University

30 Qs

Web Development Knowledge Check

Web Development Knowledge Check

University

20 Qs

Kuis 214

Kuis 214

University - Professional Development

20 Qs

Kuis 1 Basis Data 2

Kuis 1 Basis Data 2

University

20 Qs

18AG2006 AIT - Practical Exam 10.12.2020

18AG2006 AIT - Practical Exam 10.12.2020

University

20 Qs

SQL and Database Design Quiz

SQL and Database Design Quiz

Assessment

Quiz

Other

University

Medium

Created by

33KAZ undefined

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL keyword is used to enforce a condition that a column cannot contain NULL values?

NOT NULL

PRIMARY KEY

UNIQUE

CHECK

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a partial dependency in database design?

When a non-key attribute depends on only part of a composite key

When a foreign key links two tables

When a column can store multiple values

When a primary key is not unique

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, which of the following is a character data type?

BOOLEAN

CHAR

INT

DATE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, how do you ensure that a column must always have a value?

By adding the FOREIGN KEY constraint

By adding the NOT NULL constraint

By adding the CHECK constraint

By adding the UNIQUE constraint

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the SELECT statement in SQL?

To modify existing records

To create a new table

To delete data

To retrieve data from a database

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a "bad" design for a database table?

A table without NULL values

A table with redundant data

A table with atomic values

A table with a foreign key

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQL, which of the following commands is used to remove a table from the database?

REMOVE TABLE

DELETE TABLE

ALTER TABLE

DROP TABLE

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?