what is the Surrogate key?and wt is the diff between Primary
key and Surrogate Key?

Answer Posted / jayaraj

Primary key is a type of key where the data inside the
column should be unique and should not be null.we generally
use the primary key to access any of the rows of a table by
using the primary key column.when a table don't have a
primary key then we assign a primary key to the table which
is known as surrogate key for accessing any row of the
table. means the key will act like a primary key for the
table.

Is This Answer Correct ?    4 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add additional conditions in SQL?

590


What is the syntax for encrypting a column in SQL Server?

559


What is ddl command?

538


How to display a past time in days, hours and minutes?

577


What is a group function explain with an example?

523






How can I tell if sql server is 32 or 64 bit?

501


What is an sql server agent?

551


What are the different types of sql server replication? : sql server replication

630


What is it’s similarity with sql server?

143


How to count rows with the count(*) function in ms sql server?

540


How we can refresh the view?

600


What does it mean to manipulate data?

568


How global temporary tables are represented and its scope?

552


What is use of attributehierarchyenabled? : sql server analysis services, ssas

615


Explain how you can deploy an SSRS report?

106