Introduc) On To Advanced Database Systems: Week 2
Introduc) On To Advanced Database Systems: Week 2
2:
Introduc)on to Advanced
Database systems
Dr. Sarah Al-Shareef
[email protected]
Department of Computer Science
Umm Al-Qura University
Acknowledgment: All course slides are either referenced to Elmasri. & Navathe Book online presenta=ons, Dr. Salahadin
Mohammed Adam & Ms. Mashael Alkadi (with certain amendments) or are personally developed by the instructor.
Today’s Agenda
• About this course
• Administra)ve issues:
– Assessment scheme
– Course and class policies
– Tenta)ve course )meline
• References: There are plenty of good books on DBS; here are some:
– Database Systems: Models, Languages, Design And Applica=on Programming. By Ramez
Elmasri and Shamkant B. Navathe.
– Fundamentals of Databases. By Ramez Elmasri and Shamkant B Navathe.Rob
– Database Systems: Design, Implementa=on, and Management, By Peter Rob, Steven Morris
and Carlos Coronel
1436/1437 - First Semester Advanced Database Systems 3
Who Should Take This Course?
• Knowledge of database design.
– Topics covered in “Fundamentals of Databases” course (1401312-3).
• Good English
– All references are in English.
• Workload:
– For an average grade, 1 credit = 3 hours/week of academic ac)vi)es: lectures,
assignments, reading, discussions, .. etc.
– Your course has 3 credits (i.e. 3x3=9 hpw).
– There will be 3 hpw of lectures (i.e. you are expected to work for 9-3=6hpw).
• Any absence from quizzes or exams will make you loose their marks unless
you have got a medical excuse or any other excuse approved by the
department.
• Administra)ve issues:
– Assessment scheme
– Course and class policies
– Tenta)ve course )meline
• Example:
Student Enrol Course
3 main en))es: Student, Enrol, Course
• This includes:
– En))es & rela)onships among them.
– All apributes for each en)ty are specified.
– The primary key for each en)ty is specified.
– Foreign keys are specified.
– Many-to-many rela)onships are resolved.
– Normalisa)on is performed at this level.
CID SID
• Basic Concepts:
– Rela)on
– Apribute
– Schema
– Tuple
– Keys
– Constraints
– Func)onal dependency
– Normaliza)on
Example:
Course
CID Title
ICS 102 Java Rela)on
ICS 202 Data structures
Rela)on name
ICS 334 Databases
Course
CID Title
ICS 102 Java
ICS 202 Data structures
ICS 334 Databases
• Example:
Course
CID Title
ICS 102 Java
A rela)on of
ICS 202 Data structures 3 tuples
ICS 334 Databases
• UNIQUE
– No duplicate values are allowed in a column specified as UNIQUE.
• Primary key
– Must be UNIQUE and NOT NULL
• Foreign key
– Must refer to a value of a candidate key in the parent table
– Can be null
– Can be duplicate
Hint: always start simple
1436/1437 - First Semester Advanced Database Systems 26
An example of a game UML
• Read Chapter 2 of Elmasri’s book and then answer the online quiz
on the eLearn system.