what is primary key,unique key, foreign key? can u teach me
in simple language?
Answer Posted / priya reddy
primary key- if a column is declared as priamry then there
wont be any repeated values in that column throughout that
table, as well as it wont take any null values and we can
use primary key only once in a table. but we can declare
combination of two columns as primary key.
unique- if a column is declared as unique then again there
wont be any repeated values in that column, but this will
take null values and even we can declare more thatn one
unique column in a table.
foreign key-if a column is declared with this key then we
have to use a reference ie we need to give the column which
will have the same values as this column and the table that
column belongs to.. this referced column of other table
will be the primary key of that table.
| Is This Answer Correct ? | 379 Yes | 91 No |
Post New Answer View All Answers
What is the role of tester in discovery(in Checklist)?
Explain database partitioning.
Can a database table exist without a primary key?
What are the advantages of views in a database?
After normalization, what are the conditions which have to keep in mind to de-normalize it?
Explain transaction manager?
Given a table of Player which contains Sno and player name, write a query which finds all possible Table Tennis doubles pairings.
What is the Lock Based Protocol used for?
Hi, I want do a course in DWH Informatica Administrator and Abinito Administrator please tell me some institute in chennai and i am searching for a job,so please help me and my mail id : satty_rh@yahoo.co.in Thanks, Kumar
Difference between sql and mysql?
What is ole db source in ssis?
Which database does facebook use?
List some advantages of dbms.
What is a database call?
Explain inner and outer joins with examples.