adspace


What is Primary key and foreign key? Give an example

Answer Posted / vipin

Primary key which enforce the uniqueness in each row og table .
Foreign key win which the existing value in table must be there in other table .
diffrence is that PK does not allow Null Values anf FK allow null values

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is spatial nonclustered index

1066


What are the kinds of subquery?

1118


Can sql servers link to other servers like oracle?

928


What is in place upgrade in sql server?

1137


Can we do dml on views?

1042


What are the properties of the transaction?

1084


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

1032


What is sql server query analyzer?

1137


Disadvantages of the indexes?

1232


What is temporary table in sql server? Why we use temp table?

1027


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1209


Can we shrink data file in sql server?

1135


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1052


What is normalization and what are the advantages of it?

1067


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139