Define candidate key, alternate key, composite key?
Answer Posted / manumole
Candidate key:
Candidate keys for a table includes the set of columns
which satisfies the criteria of a primary key.
Primary key : a column/combination of columns which
uniquely identifies a row and whose values are not null.
Clustered Key:when a combination of columns becomes a
primary key it is called as clustered key.
Alternate keys:the set of columns which is avialble in the
candidate keys and are not selected as primary key.
Eg:Customer table
candidate keys:{ CustomerID, MobNo(defined as not null) }
primary key: if Db designer selected as CustomerID,then
Alternate key is MobNo
Clustered key:if both combination CustomerID- MobNo is
taken as primary key,it is nothing but a clustered key
| Is This Answer Correct ? | 24 Yes | 22 No |
Post New Answer View All Answers
Explain about relational database management systems?
Explain about post-relational databases?
Explain about the hierarchical model of the database?
How to generate OIDS
You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?
How can I detect whether a given connection is blocked?
Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card
What is database design and development?
What are the types of database model?
I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS
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).
Explain about query and reporting.
What is normalization? Explain different levels of normalization?
Explain the process of the user request and data generating?
State the acid rules?