What are different types of Keys? Please explain all the
keys with a suitable example.
Answer Posted / avishek patra
There are mainly two types of keys are available in SQL server
1. PK
2. FK
1.PK-- In a Table the unique key(with no repetation and does
nota take null value) is called Primary Key
2.FK-- Foreign Key when that PK refers to another table then
its called as foreign Key
| Is This Answer Correct ? | 39 Yes | 42 No |
Post New Answer View All Answers
How is a full-text index updated?
What are the types of ssrs?
Define ACID properties in a Database?
What is difference between getdate and sysdatetime in sql server 2008?
Why I am getting this error when dropping a database in ms sql server?
What is query and its types?
How to implement service broker?
What is simple indexing method?
Can we do dml on views?
What is primary key and example?
Is the log file is a part of file group?
What is primary key, unique key, and foreign key?
What is difference between view and materialized view?
How to call a function from a stored procedure in SQL Server ?
How do I run a trace in sql server?