Professional Documents
Culture Documents
Introduction To Database Systems: Email: Muhammad - Yaseen@riphah - Edu.pk
Introduction To Database Systems: Email: Muhammad - Yaseen@riphah - Edu.pk
DATABASE SYSTEMS
WEEK 01 LECTURE 01
DR. MUHAMMAD YASEEN
ASSISTANT PROFESSOR
Email: Muhammad.yaseen@riphah.edu.pk
COURSE INTRODUCTION
• Course: Introduction to Database Systems (3 credit Hours theory + 1 Credit hour Lab)
• Course Coordinator : Text Book:
• Ramez Elmasri, Fundamentals of Database Systems (7th Edition)
• Reference Book
Jeffery Hoffer, Modern Database Management (11 th Edition)
https://drive.google.com/file/d/1Z_8FjBqyZp6PMxNo1OcG1oHA40YTL9Ix/view?usp=sharing
C. J. Date, An Introduction to Database Systems (8th Edition)
Raghu Ramakrishnan, Database Management Systems (3rd Edition)
Silberschatz Korth sudarshan, Database System Concepts (6th Edition)
PLAGIARISM POLICY
• Any attempt to plagiarize will result in ZERO. No further arguments in this case.
• Marks Division(Tentative)
• Class Participation 10%
• Quizzes 15%
• Assignments 15%
• Midterms 20%
• Final 40%
ATTENDANCE POLICY
• Class participation will be marked based on your valuable participation. Quiz can also be
conducted from the current lecture that will be marked in class participation.
ANNOUNCEMENTS
• Make sure you check your email and announcement section regularly. I keep on posting
announcements for the deadlines.
INTRODUCTION
• Data
• Meaningful facts, text, graphics, images, sound, video segments
• Database
• An organized collection of related data
• Information
• Data processed to be useful in decision making
• Metadata
• Data that describes data
• Goal of DBMS
• To provide a way to store and retrieve database information that is both convenient and efficient.
DATA VS INFORMATION
Figure 1-1a Data in Context
Application
DBMS
#2
Database
containing
centralized
shared data
DBMS manages data
Application
#3 resources like an operating
system manages hardware
resources
DATABASE MANAGEMENT
SYSTEM
Conceptual Design
Logical Design
Physical Design
ADVANTAGES OF DATABASE APPROACH
• Program-Data Independence
• Metadata stored in DBMS, so applications don’t need to worry about data formats
• Data queries/updates managed by DBMS so programs don’t need to process data access routines
• Results in: increased application development and maintenance productivity
• Minimal Data Redundancy
• Leads to increase data integrity/consistency
• Improved Data Sharing
• Different users get different views of the data
• Enforcement of Standards
• All data access is done in the same way
• Improved Data Quality
• Constraints, data validation rules
• Better Data Accessibility/ Responsiveness
• Use of standard data query language (SQL)
• Security, Backup/Recovery, Concurrency
• Disaster recovery is easier
RELATIONAL MODEL
Here, CUSTOMER is a relation defined over the four attributes Cust-id, Cust-name, Address,
Phone#, each of which has a domain or a set of valid values. For example, the domain of Cust-id
is 6 digit numbers.
1.Attribute: Each column in a Table. Attributes are the properties which define a relation. e.g.,
Student_Rollno, NAME,etc.
2.Tables – In the Relational model the, relations are saved in the table format. It is stored along with its
entities. A table has two properties rows and columns. Rows represent records and columns represent
attributes.
3.Record – It is nothing but a single row of a table, which contains a single record.
4.Relation Schema: A relational schema is a set of relational tables and associated items that are
related to one another
5.Degree: The total number of attributes which in the relation is called the degree of the relation.
6.Cardinality: Total number of rows present in the Table.
7.Column: The column represents the set of values for a specific attribute.
8.Relation key – Every row has one, two or multiple attributes, which is called relation key.
INFORMAL DEFINITIONS
Here, CUSTOMER is a relation defined over the four attributes Cust-id, Cust-name, Address,
Phone#, each of which has a domain or a set of valid values. For example, the domain of Cust-id
is 6 digit numbers.
FORMAL DEFINITIONS
Table Relation
Column Attribute/Domain
Row Tuple
Values in a column Domain
Table Definition Schema of a Relation
Populated Table Extension
Chapter 5-24
SOME POPULAR RELATIONAL DATABASES
• Oracle– Oracle
• SQL Server and Access – Microsoft
• mySQL
COMPONENTS OF THE
DATABASE ENVIRONMENT
• CASE Tools–computer-aided software engineering
• Repository–centralized storehouse of metadata
• Database Management System (DBMS) –software for
managing the database
• Database–storehouse of the data
• Application Programs–software using the data
• User Interface–text and graphical displays to users
• Data/Database Administrators–personnel responsible for
maintaining the database
• System Developers–personnel responsible for designing
databases and software
• End Users–people who use the applications and databases
ELEMENTS OF THE DATABASE
APPROACH
• Data models
• Graphical system capturing nature and relationship of data
• Enterprise Data Model–high-level entities and relationships for the
organization
• Relational Databases
• Database technology involving tables (relations) representing entities
and primary/foreign keys representing relationships
• Use of Internet Technology
• Networks and telecommunications, distributed databases, client-server,
and 3-tier architectures
• Database Applications
• Application programs used to perform database activities (create, read,
update, and delete) for database users
HOW DATABASES FIT IN TO
ORGANIZATION WIDE INFORMATION
SYSTEMS
INFORMATION SYSTEMS
• PLANNING
Purpose–align information technology with organization’s
business strategies
• Three steps:
1. Identify strategic planning factors
2. Identify corporate planning objects
3. Develop enterprise model