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 relational operator join?
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?
You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?
What are the constraints on severity level in raiseerror?
Why does this query return 0?
What is data modeling with example?
Where is dbms used?
Explain the process of the user request and data generating?
Which data type cannot be used as a parameter in a udf?
In which database can extended stored procedures be added?
Explain the cube operator?
What is an application role and explain a scenario when you would use one?
Explain what a database is?
Who are naive users?
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.