explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di



explain the difference between alternate key, business key, foreign key, generated key, primary key,..

Answer / Ajay Kumar Singh Yadav

1. Primary Key: A unique attribute or set of attributes that unambiguously identify each record in a table.
2. Foreign Key: A field or fields in one table that refer to the primary key of another table.
3. Business Key: A unique identifier for a business entity, often used as a primary key and derived from meaningful data such as customer IDs, employee IDs, etc.
4. Alternate Key: An attribute or set of attributes that can be used in place of the primary key to uniquely identify each record in a table.
5. Generated Key: A unique value automatically generated by the database management system when a new row is inserted into a table.
6. Retained Key: A type of alternate key where the values are retained even if the corresponding business key changes due to updates or deletions.
7. Surrogate Key: An artificial primary key that has no meaning in the real world but ensures uniqueness across records.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

how are numeric and character missing values represented internally? : Sas programming

1 Answers  


diff between nodup rec and ondup key???

3 Answers   AON, Sciformix,


. Which date advances a date, time or date/time value by a given interval?

8 Answers  


what is SAS ACCESS AND SAS CONNECT ? Give an example and data statements used.

1 Answers   TCS,


What does the trace option do?

1 Answers  


How do you generate random samples?

5 Answers  


This entry was posted in General. Bookmark the permalink. Post a comment or leave

1 Answers   Quintiles,


What is the general format of function in sas? : sas-grid-administration

1 Answers  


explain about data integrator metadata reports? : Sas-di

1 Answers  


Explain what is the use of proc gplot?

1 Answers  


Differentiate input and infile.

1 Answers  


how can you sort the dataset having millions of OBS(instead of sort procedure?

4 Answers   EXL,


Categories