2 RDBMS
2 RDBMS
Customer-city
Customer-name
customer
26
1.SUPER KEY
• An attribute or a combination of attribute that is
used to identify the records uniquely is known as
Super Key. A table can have many Super Keys.
• A superkey is defined in the relational model as a set
of attributes of a relation variable (relvar) for which
it holds that in all relations assigned to that variable
there are no two distinct tuples (rows) that have the
same values for the attributes in this set.
• Equivalently a superkey can also be defined as a set
of attributes of a relvar upon which all attributes of
the relvar are functionally dependent.
• E.g. of Super Key
• ID
• ID, Name
• ID, Address
• ID, Department_ID
• ID, Salary
• Name, Address
• Name, Address, Department_ID
• So on as any combination which can identify the
records uniquely will be a Super Key.
(II) Candidate Key
Bit varying BIT VARYING(X) Here, 'x' is the number of bits to store
(length can vary up to x).
Time with time zone TIME WITH TIME ZONE It is exactly same as time but also store
an offset from UTC of the time specified.
Timestamp with time zone TIMESTAMP with TIME ZONE It is same as timestamp but also stores an
offset from UTC of the time specified.
+ It is used to add containing values of both a+b will give 150
operands
- It subtracts right hand operand from left a-b will give -50
hand operand
BETWEEN this operator is used to search for values, that are within a set
of values
NOT the NOT operator reverse the meaning of any logical operator