Home >> Oracle >> What is Candidate Key in Oracle

What is Candidate Key in Oracle

A candidate key is a minimal super key and proper subset of it can not be able to identify each row uniquely(proper subset of it is no longer a super key).

Example 1 Find no. of candidate key

R(A,B,C,D)

A->BC

CD->E

B->D

E->A

Ans

A->ABC

A->ABCD(B->D)

A->ABCDE(E->A)

E->ABCDE

CD->ABCDE

BC->ABCDE

Total no. of candidate key=4

Post Your Comment

Next Questions
What is Primary Key
What is Unique Key
What is Foreign Key
Function
Procedure
Cursor
Trigger
Before Trigger
After Trigger
DROP Trigger
DISABLE Trigger
ENABLE Trigger
Aggregate Functions
APPROX_COUNT_DISTINCT() Aggregate function
AVG() aggregate function
COLLECT() Aggregate Function
CORR() Aggregate Function
CORR_*
COUNT() aggregate function
COVAR_POP Aggregate Function
COVAR_SAMP() Aggregate Function
CUME_DIST() Aggregate Function
DENSE_RANK() Aggregate Function
FIRST() aggregate function
GROUP_ID() Aggregate Function

Copyright ©2022 coderraj.com. All Rights Reserved.