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 |
In which tcp/ip port does sql server run? Can it be changed?
How do you use DBCC statements to monitor various aspects of a SQL server installation?
How do you know which index a table is using?
How to assign new column names in a view?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
What is a cursor, index in sql?
What is the maximum row of a size?
you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?
What is the contrast between sql and mysql?
Tell me what are the advantages of using stored procedures?
How to find the service pack installed? : sql server database administration
Can I work with several databases simultaneously? : sql server management studio
Oracle (3253)
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)