• * TA leader
• Office hours: Mon(TA), Tue(TA), Wed(Instructor)
• Lecture: Wed
• Lab: Thu, Fri
TA Assignment
• Lab
– 1,3,5,7,9: WANG Wenwei, FAN Xiaoshuai
– 2,4,6,8: CHEN Zhou, CHENG Longwei
• Homework
– Hw1,3: CHENG Longwei
– Hw2,4: FAN Xiaoshuai
Learning Outcomes
1. Evaluate the rationale for the storage and use of large scale data and describe
the associated challenges and difficulties.
2. Translate unorganized textual data requirements into Entity-Relationship
models.
3. Describe the purpose and techniques for normalization
4. Convert a given ER diagram informally into relational schema design
5. Use concepts of functional dependencies to generate 3NF and BCNF schema
designs.
6. Use operations on relational tables using Relational Algebra.
7. Create a database in SQL and create tables in the database.
8. Write and run a SQL query in a database.
9. Explain the basics of Client-Server architecture in software systems.
10. Use PHP language to write server-side CGI programs interfaced with a
database server.
11. Design and develop a software application using the Web-server as the DB-
client model.
Course Logistics
• Course webpage: https://canvas.ust.hk
– Lecture/lab notes, homework, solutions, and other
announcements will be posted on this site. Please
check this site regularly.
• Textbook: Fundamentals of Database Systems.
– R. Elmasri and S.B. Navathe.
– Pearson New International Edition
– 6th edition, 2014.
Grading
• Homework(12pts), labs(18pts), midterm(30pts),
final(40pts), bonus(4pts)
• Checking on grading must be done within one week
after handling out the graded homework or exam.
• Homework
– Five homework, four of them will be graded, each 3pts.
– Late HW will be graded, but will get 1 point per late-day
penalty.
– Copying: If N-student have copied on a HW, the total
grade of each person will be SCORE/N.
Labs
• Nine labs, each worth 2 points (1pt attendance,
1pt performance)
– How much you are late for the lab will also be
recorded.
• If you are late for x minutes, then your attendance score will
be (1-x/30)+.
– You will get 1pt for performance if you finish all the
exercises before the end of each lab.
– If you want to switch your lab session, you need to
email your reason to the instructor for permission at
least one day before.
Exams
• Midterm
– Lecture time, Nov 2
• Final
– TBD
Lecture Lab
Data HTML,
modeling PHP
Data
SQL
language
Content of the lecture
Today’s lecture
• Defining a DBMS
• An Example: University database
• Data Models
• DBMS Architecture
• Advantages of DBMS
• DB Users
DBMS
• Examples of updates:
– Enter a grade of ‘A’ for ‘Smith’ in the ‘Database’
section of last semester
Sharing
• Examples:
– all students query for the course sections offered
in this semester simultaneously.
Data Models
• Data model: a collection of concepts for describing data.
• Three Categories
– High-level or conceptual data models
• close to the way many users perceive data
• A high level description, useful for requirements understanding.
• Example: Entity-Relationship model (ER model)
Tuple
Phases for designing a database
• Schema diagram
– A displayed schema
• Displayed only some aspects of a schema
Three-Schema Architecture
View/External Level
Each view describes part of the
database that a particular user
group is interested in
Conceptual level
Describes structure of the whole
database for a community of users
Internal level
Describes physical storage
structure of the database
• End users
– Casual end users: occasionally access the database
– Naive or parametric end users: constantly querying
and updating
– Sophisticated end users: engineers, scientists, business
analysts,etc
– Standalone users: using software package
Types of DB users
• Database designers
– Identifying the data to be stored
• System analysts
– Determine requirements of end users
• Application programmers
– Implement these specifications as programs