Define candidate key, alternate key, composite key?

Answer Posted / sonal singhal

Candidate keys-> A candidate key is a combination of
attributes that can be uniquely used to identify a database
record without any extraneous data. Each table may have one
or more candidate keys. One of these candidate keys is
selected as the table primary key.

Alternate keys-> Alternate Key or Unique Key is similar to
PK ,except it accepts null Values .So that the records can
still be entered submitting null values to this attribute.

Composite keys-> compound key (also called a composite key
or concatenated key) is a key that consists of 2 or more
attributes.
A composite Key can be either Primay or Unique
Key.More then One Key columns are said to be composite keys

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have a table with three columns: amount1, amount2, and amount3 in a single row only one of these three columns will have a value and the other two will be null. Write a sql query to retrieve the values from these columns?

544


What are the 18 schemas?

606


What is data modeling with example?

528


Explain the process of the user request and data generating?

647


Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.

1599






Explain about relational operator join?

609


How you can make a parameterized view?

555


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2003


What are data modelling techniques?

522


I have a few records all are same structures data, I want to store data in multiple targets how

2140


Why does this query return 0?

621


How to use online Backups?

1723


How can you fix a poorly performing query?

620


How to read and create .LDC data files which are used by linguatic dictionary.

2054


Who are end users in dbms?

544