Lec 01 Introduction To Databases and Database Users
Lec 01 Introduction To Databases and Database Users
Slide 1- 1
Course Contents
◼ Introduction to Database and Database Users
◼ Database System Concepts and Architecture.
◼ Entity-Relationship (ER) Model
◼ Relational Data Model and Database Constraints.
◼ Mapping of an ER schema into a relational schema
◼ Enhanced ERD
◼ Functional Dependencies and Normalization.
◼ Relational Algebra
◼ Indexing Structures for Files
◼ Algorithms for Query Processing and Optimization
◼ Quiz: 5% (Week 5)
◼ Year work (group project): 10 % (Week 8, 11)
◼ Midterm : 15% (Week 7)
◼ Practical 20%
◼ Final exam 50 %
◼ Total 100 %
◼ Data:
◼ Known facts that can be recorded and have an implicit meaning.
◼ Example!
◼ Mini-world:
◼ represents some aspect of the real world. For example, student
grades and transcripts at a university.
◼ In order for a database to be accurate and reliable at all times, it
must be a true reflection of the mini- world that it represents;
therefore, changes must be reflected in the database as soon as
possible.
◼ Transaction
◼ It is an executing program or process that includes one or more
database accesses, such as reading or updating of database
records.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 8
Types of Databases and Database Applications
• More Examples!
◼ Database System:
◼ The DBMS software together with the database itself.
Sometimes, the applications are also included.
◼ For example, one user, the grade reporting office, may keep files on
students and their grades. Programs to print a student’s transcript and
to enter new grades are implemented as part of the application. A
second user, the accounting office, may keep track of students’ fees
and their payments. Although both users are interested in data about
students, each user maintains separate files—and programs to
manipulate these files—because each requires some data not
available from the other user’s files.
◼ This redundancy in defining and storing data results in wasted
storage space and in redundant efforts to maintain common up-
to-date data.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 21
◼ In the database approach, a single repository
maintains data that is defined once and then
accessed by various users.
◼ For example, a file access program may be written in such a way that
it can access only STUDENT records of the structure shown in Figure
1.4. If we want to add another piece of data to each STUDENT
record, say the Birth_date, such a program will no longer work and
must be changed. By contrast, in a DBMS environment, we only
need to change the description of STUDENT records in the
catalog (Figure 1.3) to reflect the inclusion of the new data item
Birth_date; no programs are changed. The next time a DBMS
program refers to the catalog, the new structure of STUDENT records
will be accessed and used.
◼ Database Designers:
◼ Responsible to define the content, the structure, the
constraints, and functions or transactions against the
database. They must communicate with the end-users
and understand their needs.
◼ Application programmers
◼ implement these specifications as programs; then they
test, debug, document, and maintain these canned
transactions.
◼ referred to as software developers or software engineers
Slide 1- 44