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

Which sql server is best?

524


What is the difference between drop table and truncate table?

497


How can I check that whether automatic statistic update is enabled or not?

565


What is the importance of concurrency control?

679


Explain how you can deploy an SSRS report?

106






What are the advantages of using cte?

561


What is a coalesce function?

671


Explain the dbcc pintable command when would you use it?

516


What is pessimistic concurrency?

548


Differentiate sql server reporting services vs. Crystal reports?

152


how to create a scrollable cursor with the scroll option? : Sql server database administration

621


What is an etl file?

536


How to return the top 5 rows from a select query in ms sql server?

604


How to get a list of all tables with "sys.tables" view in ms sql server?

563


Where views are stored in sql server?

566