Define candidate key, alternate key, composite key?
Answers were Sorted based on User's Feedback
Answer / palanivel
primary key:- The attribute or combination of attributes
that uniquely identifies a row or record.
Foreign Key:- an attribute or combination of attribute in a
table whose value match a primary key in another table.
Composite key:- A primary key that consistsof two or more
attributes is known as composite key
candidate key:- is a column in a table which has the
ability to become a primary key.
Alternate Key:- Any of the candidate keys that is not part
of the primary key is called an alternate key.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / divya
candidate key: is a column in a table which has thhe ability
to become a primary key.
alternate key:any of the candidate key that is not part of
the primary key.
| Is This Answer Correct ? | 34 Yes | 33 No |
Answer / garima sinha
candidate keys are those key which can be treated as
primary key when required.
composite key is made up of more than on key and treated as
primary key.
Alternate key (or secondary key) is any candidate key which
is not selected to be the primary key.
| Is This Answer Correct ? | 7 Yes | 6 No |
Answer / vishal sharma
hi, to all. In a interview i asked a question that
"How to apply practically candidate key in SQL SERVER ?
like for primary key we apply PRIMERY KEY keyword how to apply in SQL-SEVER ?"
Plz help me to solve this question Plzzzzzzzz
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / zulfiqar ali
ANSWER 22.. 1 A candidate key is the combination of one or
more attributes which is used to identify records uniquely a
candidate can be selected as a primary key.
2 A key which is not selected is called Alternate key.
3 combination of attributes is called composite key.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / jaison
Candidate key: A candidate key of an entity set is a
superkey for which no proper subset is a superkey
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vishnu
Combine all foreign key in a table is none as composite key
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / koteswararao bora
candidate key:the minimum set of attributes which uniquely
identifies the touples in a table .
primary key:any candidate key choosen by the developer is
called primary key.
composite key: a candidate key which have more than one
attribute is called composite key.
alternate key: a candidate key other than primary key
is called alternate key.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / deependra kumar shukla
Candidate key:- A key 'X' is said to be candidate key if proper subset of 'X' is not a key where X is simple or composite key.
Alternate key:- A candidate key is said to be Alternate key if it is not defined as primary key.An Alternate key may accept null values.
Composite key:- A key is said to be composite key if it contain more than one atribute of the relation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sanjay p sonar
Candidate key:-A candidate key is unique. We may say that
candidate key is another name of primary key. We can have
more than one candidate key. From which we have to choose
one as a primary key.
Alternate key:-The Candidate key other than primary key is
Alternate key. We can have more than one Alternate keys.
Composite key:- When we combine more than 1 column by key
then that key is called Composite key
Clustered Key:- When we combine more than 1 column to form
Primary key then it will become Cluster key.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the main phases of database development?
How long can an error message be in raiseerror function?
How is data stored in dbms?
What are the disadvantages of cursors? How can you avoid cursors?
Can you have a nested transaction?
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?
How to use timestamp datatypes
How you can make a parameterized view?
What is bit datatype and what's the information that can be stored inside a bit column?
Where is dbms used?
What are data modelling techniques?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)