what is the Surrogate key?and wt is the diff between Primary
key and Surrogate Key?
Answers were Sorted based on User's Feedback
Answer / rajesh s. chandan
Unique identitiy key is generated during data load process
(ETL) in the datawarehouse system is called as Surrogate
key.
It is mainly used to update slowing changing dimesion
attribute data and also it removes dependencies on key
originating in different data sources.
Primary key is uniquely identified each record in a table
with no null values.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / 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 |
How to create an multi-statement table-valued function?
What is auditing in sql server?
HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE
How to query multiple tables jointly?
What is bit datatype and what's the information that can be stored inside a bit column?
How to trouble shoot if unable to connect SQL Server
How can you get @@error and @@rowcount at the same time?
Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication
How to create a large table with random data for index testing in ms sql server?
What is difference between createstatement and preparedstatement?
Explain Geometry datatype in sql server 2008 with example
What is implicit cursors?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)