Integrity constraints Flashcards
Basic key concept and CODD rules for RDBMS
what is Data Model ?
Storage technique to provide data independence.
first codd rule?
Data must be stored in tabular format.
What is Attribute?
Attributes describe the instances in the row of a database
what is a tuple
Is nothing but a record in one coloumn
what is Arity ?
Number if fields or attributes i.e no of column in a database table.
What is cardinality ?
Cardinality is nothing but number of records present ina database table.
domain attribute ?
set of possible values accepted by an attribute.
such as varchar, number, int , date etc.
what is emp(eid,ename)
Its known as relational schema.. that describes structure of a table.
what is relational instance ?
Record set of database (snapshot) at any instance of time. that is what is present inside the table.
rule2?of codd
No two records of rdbms table must be same
Candidate key?
Minimal set of attributes that represent every tuple of a database table uniquely. Its come due to codd second rule.
alternative keys ?
Attributes other than primary key are known as Ak
unknwn value are stored as ______ in rdbms table ?
null
candidate key whose field values are not allowed to null,
and atmost one such key is allowed in any relational table is known as _____?
Primary key
In RDBMS table there must be atleast one Candidate key whose field value is ____?
not null