solution - SQL : SQL Keys (Test 1)

Question : Which key uniquely identifies each row in a table?

Solution :
584320260521072940 Correct Answer : Primary Key

Description -

SQL : SQL Keys (Test 1)

Question : A foreign key is mainly used to:

Solution :
408320260521072856 Correct Answer : Create relationship between tables

Description -

SQL : SQL Keys (Test 1)

Question : Which key cannot contain NULL values?

Solution :
397020260521072814 Correct Answer : Primary Key

Description -

SQL : SQL Keys (Test 1)

Question : Which key can be made using multiple columns?

Solution :
253820260521072726 Correct Answer : Composite Key

Description -

SQL : SQL Keys (Test 1)

Question : Which statement is true for Unique Key?

Solution :
761320260521072634 Correct Answer : Ensures uniqueness

Description -

SQL : SQL Keys (Test 1)

Question : A candidate key not selected as primary key is called:

Solution :
342420260521072553 Correct Answer : Alternate Key

Description -

SQL : SQL Keys (Test 1)

Question : Which key maintains referential integrity?

Solution :
592020260521072241 Correct Answer : Foreign Key

Description -

SQL : SQL Keys (Test 1)

Question : How many primary keys can a table have?

Solution :
965620260521072150 Correct Answer : One

Description -

SQL : SQL Keys (Test 1)

Question : Which key may contain NULL values?

Solution :
907820260521072124 Correct Answer : Unique Key

Description -

SQL : SQL Keys (Test 1)

Question : Which SQL command creates a primary key?

Solution :
339420260521072020 Correct Answer : PRIMARY KEY

Description -

SQL : SQL Keys (Test 1)

Question : What is the main purpose of a primary key?

Solution :
180820260521071935 Correct Answer : Identify records uniquely

Description -

SQL : SQL Keys (Test 1)

Question : Which key references a primary key in another table?

Solution :
392020260521071900 Correct Answer : Foreign Key

Description -

SQL : SQL Keys (Test 1)

Question : Which key is formed by combining two or more columns?

Solution :
765120260521071815 Correct Answer : Composite Key

Description -

SQL : SQL Keys (Test 1)

Question : Which of the following can be an alternate key?

Solution :
254120260521071719 Correct Answer : A candidate key not chosen as primary key

Description -

SQL : SQL Keys (Test 1)

Question : Which SQL constraint prevents duplicate values?

Solution :
487720260521071639 Correct Answer : UNIQUE

Description -

SQL : SQL Keys (Test 1)

Question : Which key helps establish parent-child relationship?

Solution :
251420260521071555 Correct Answer : Foreign Key

Description -

SQL : SQL Keys (Test 1)

Question : Which key is automatically indexed in most DBMS?

Solution :
362620260521071519 Correct Answer : Primary Key

Description -

SQL : SQL Keys (Test 1)

Question : Which of the following is true about composite key?

Solution :
874420260521071432 Correct Answer : Uses multiple columns

Description -

SQL : SQL Keys (Test 1)

Question : Which constraint is used to define foreign key?

Solution :
549020260521071332 Correct Answer : FOREIGN KEY

Description -

SQL : SQL Keys (Test 1)

Question : Which key ensures entity integrity?

Solution :
606220260521071252 Correct Answer : Primary Key

Description -

SQL : SQL Keys (Test 1)