Define candidate key, alternate key, composite key?
Answer Posted / mona
A set of fields that uniquely identifies a tuple according
to a key constraint is called candidate key for the relation.
(1)No two values of keys are same
(2)the set of fields{sid,sname} is not a key for
students,because this set properly contains the key{sid}.
The set {sid,sname} is an example of a super key,which is a
set of fields that contains a key.
EX:
create table customer(customer_name char(20),street
char(30),city char(30),primary key(customer_name));
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Explain about the hierarchical model of the database?
Explain about relational database management systems?
How would you design a database for an online site, which would average a million hits a day?
Can an extended stored procedure be called from inside a user-defined function?
When installing the datastage7.5x2 edtion iam getting aproblem i.e the cpu count is 2 but the cpu count in installation is one . how can i install in my p.c (system is dual core).
1. Using the XML Document below, with the URI “recipe.xml”
define
the following queries in XQuery:
a.) Give the names of all breakfast in the menu.
b.) Select breakfasts that have price lower than $7.00?
I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS
How to combine two function together?
Hi , any one can help me on the same,this is regarding the Informatica Function doc,i want to know how developer is will develop the mapping. pl forwar the any function doc .just for my references. svlc75@yahoo.co.in
Why does this query return 0?
How can you fix a poorly performing query?
Explain the role of indexing in databases?
What is the physical representation for a many-to-many relationship?
How can you log an error to the server event log from a stored procedure?
How to generate OIDS