Dbms Assignment-10: Tuple: Considered As A Set of Tuples. Tuple Variable
Dbms Assignment-10: Tuple: Considered As A Set of Tuples. Tuple Variable
DBMS ASSIGNMENT-10
Tuple :
- A row in a relation is referred as a tuple. So, a relation can also be
considered as a set of tuples.
Tuple variable :
- A tuple variable is variable that takes on tuples of a particular
relation schema as values. That is, every value assigned to a
given tuplevariable has the same number and type of fields.
Attribute :
Domain :
- A domain of an attribute is a set of permitted values for that
attribute.
- For example, if the bank is organized in three branches, named
‘vvn’, ‘ksd’ and ‘anand’, then the domain of attribute branch is
{‘vvn’,’ksad’,’anand’}.
- A value for a branch name is must be one of these three values of
any relation.
Super key :
Relation key :
Candidate key :
- If a relation contains more than one relation keys, they each are
called candidate key.
- For example, for Customer relation, {cid} as well as
{cname,address} are relation keys. And so, they each are called as
candidate keys.
Primary key :
Alternate key :
RENAME OPERATION :
Symbol :ρ (rho)
Notation :
Example :
- ∏(a1.balance)(σa1.balance<a2.balance (ρa1 (Account) ˟ρa2
(Account)))
a1.balance
----------
550
600
650