



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the basic concepts of database management, focusing on the properties of tables, mathematical relations, and keys. It covers the immaterial order of columns and rows in a table, the concept of cartesian products and relations, and the importance of superkeys, candidate keys, primary keys, and foreign keys in maintaining data integrity.
Typology: Slides
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















A table
stID stName clName doB gen der S001 M. Suhail MCS 12/6/84 M
S002 M. Shahid BCS 3/9/86 M
S003 Naila S. MCS 7/8/85 F
S004 Rubab A. MBA 23/4/86 F
S005 Ehsan M. BBA 22/7/88 M
Database Relations
Cartesian product of Name & Age
Name X Age= {(Ali,15), (Sana,15), (Ahmed,15), (Sara,15), …., (Ahmed,25), (Sara,25)}
CLASS = {(Ali, 18), (Sana, 17), (Ali, 20), (Ahmed, 19)}
Relation Scheme
Database Relations
STD={(stId:S001, stName:Ali, stAdres:
Lahore, doB:12/12/76), (stId:S003, stName:A. Rehman, stAdres: RWP, doB:2/12/77)}
DB and Math Relations
Degree and Cardinality
Primary Key
Alternate Keys
Foreign Key
EMP ( empId , empName, qual, depId)
Significance of Constraints
48
Base Relation
View