what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / kranthi

primary key: primary creates a clustered index on the
column and it doesn't allow null values.

unique key: unique key creates non clustered index by
default.it allows "one null value".

foreign key: A foreign key (FK) is a column or combination
of columns used to establish and enforce a link between the
data in two tables

Is This Answer Correct ?    212 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Database?

1387


Give the syntax of exception handling used in DBMS?

858


What is the best database?

757


Differentiate between unique key and foreign key?

797


What is dialect in database?

757


Design an ETL process( batch job/script)from source to starting that u will not be dependent on the source in the near future?please elobarate details on what are things to consider.if you'd like to do a diagram that will be great.please answer it

2091


please tell me the informatica telecom projects interview question? like if they ask about project explanation and the difficulties and the solutions taken to solve the issues for telecom projects,e.g i am workin for a vodafone project handlin postpaid section,pls tell me wat wud be the process if i work in this ? thanks

8263


What is the difference between primary key, foreign key and candidate key?

877


What is odm database?

746


How many types of locks are present in a database?

838


HOW PASS PARAMETERS FOLLOWING ORDER RPG-CL-RPG?

2194


What is the difference between database and server?

744


Is redis in memory database?

756


Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.

868


Can a database table exist without a primary key?

730