adspace


What is Primary key and foreign key? Give an example

Answer Posted / brajesh kumar srivastava

Primary key enforce uniqueness of column and deny to allow
null values to this column and enforce referential data
integrity constraint to other table column which is call
foreign key.
Foreign key column may contain null value

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of constraints?

1007


How can we solve concurrency problems?

1130


How do I start sql server 2017?

1024


How can I check that whether automatic statistic update is enabled or not?

1120


What is self contained sub query?

1148


Can sql servers link to other servers like oracle?

928


When should you use an instead of trigger?

1061


what is the difference between openrowset and openquery?

1208


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1032


Why we use the openxml clause?

1088


How can you append an identity column to a temporary table?

1078


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1223


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1083


What is normalization and what are the advantages of it?

1067


Explain “row_number()” in sql server with an example?

1086