What are different types of Keys? Please explain all the
keys with a suitable example.

Answer Posted / rishit v chandarana

there are main 5 types of key, namely

candidate key,
primary key,
alternative key,
secondary key &
foreign key i.e refrential key.

Ck- all keys in a table.
Pk- selected key in a table.
Al- not selected as a pk key in a table.
Sk- not selected at all.
Rk- key showing refrence at other table.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a full backup include transaction log?

683


Explain sql delete command?

792


Is sql server 2016 free?

696


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

691


What is the difference between Triggers and Stored Procedure?

764






What are four major operators that can be used to combine conditions on a where clause?

762


New concepts of sql server 2005 use in your project.

2094


What are “lost updates”?

775


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

706


Can select statements be used on views in ms sql server?

766


What is difference between clustered index and non clustered index?

799


How to download microsoft sql server 2005 express edition?

774


What is table level trigger?

760


How many servers can we create in a single subscription?

156


What are sql dirty pages?

756