SlideShare a Scribd company logo
1 of 38
Database Systems
Course Description
 This is an introductory course to database, its main
aim is to introduce database to students as the heart
of most business applications. The course focuses
on database design, modeling and database
language SQL.
 Books:
– Database Systems, Thomas Connolly & Carolyn Begg, 4th
Edition, ,2008.
Modern Database Management, Jeffrey A. Hoffer, Mary B.
Prescott , null Edition, ,2008.
– Database Systems Models, Languages, Design, and
Application Programming. 6th edition, Ramez Elmasri &
Shamkant Navathe.
– Fundamentals of Database Systems, Elmasri and Navathe
Course Objectives
– Introduce the concept of DBMS and its purpose.
– Introduce the main concepts in a Database (Tables, records,
fields, primary key, foreign key, relation etc.)
– Learn how to design a logical database model, convert the
logical database designs to physical designs (Mapping), and
develop the physical database.
– Enhance the student's modeling and abstraction skills.
– Introduce the concepts of Entities, Attributes and Relations.
– Introduce Relational algebra and SQL.
– Introduce the concept of normalization theory (1NF, 2NF, and
3NF).
– Enable students to build a desktop application with a database.
– Enhance students skills including: team working, problem-
solving, and self-learning.
 The goal of this chapter is to provide basic
terms and concepts related to Databases.
Chapter 1:
Introduction to Databases
 Databases are an essential component of life in
modern society.
 We interact with databases in many daily
activates, such as:-
– Banking transactions: open an account, deposit,
withdraw, transfer, etc.
– Hotel or airline reservation.
– E-commerce, buy or sell online.
– Search for a book in the library.
Why to Study Databases?
Types of Databases and Database
Applications
 Traditional database applications
– Store textual or numeric information
 Multimedia databases
– Store images, audio clips, and video streams
digitally
 Geographic information systems (GIS)
– Store and analyze maps, weather data, and
satellite images
Database Definition
 A database is a shared collection of logically
related data that is stored to meet the
requirement of different users of an
organizations
 Data are known facts about something that can
be recorded.
 Some examples of data are:
– Names
– Telephone numbers
– Addresses.
 Data are values of some type; integer, float,
string, image, .. Etc.
What is Data?
How to store
those Data?
Database Definitions
 A database:
– Models a particular real world systems in the
computer in form of data called Miniworld or
universe of discourse (UoD)
– Logically coherent(well organized) collection of
data with inherent meaning
– Designed, built and populated with data for a
specific purpose
 Example of a commercial database
– Sales system, Cash handling system, reservation
system
– Amazon.com
 A Database Management System (DBMS) is a
collection of programs that enables users to
create and maintain a database.
 A DBMS is a general purpose software system
that facilitates the processes of defining,
constructing, manipulating, and sharing
databases among various users and
applications.
What is a DBMS?
Typical DBMS Functionality
1. Define a database : in terms of data types,
structures and constraints
2. Construct or Load the Database on a
secondary storage medium
3. Manipulating the database : querying,
generating reports, insertions, deletions and
modifications to its content
4. Concurrent Processing and Sharing by a set
of users and programs – yet, keeping all data
valid and consistent
An Application program accesses the
database by sending queries or requests to the
DBMS.
A query causes some data to be retrieved.
A transaction may cause some data to be read
and some data to be written into the database.
What is an Application?
A Bit About History
 Computer initially used for computational/
engineering purpose
 Commercial applications introduces File
Processing System
– The application which involve data processing
as a basic activity rather than computation
 FPS is a collection of programs that perform services
for the end users such as production of reports
 In a TFP(Traditional file processing) system, each
user defines and implements the files needed for a
specific software application.
 This redundancy in defining and storing data results in
wasted storage space and in redundant efforts to
maintain common up-to-date data.
File Processing (FPS)
File Processing (FPS)
Registration
data File
Library
data File
Library System
Registration
System
Registration
Application
Library
Application
Examination
Examination
Application
Examination
data File
 Program data dependence
File Processing (FPS)
 Data duplication
– Waste storage
– Vulnerable to data inconsistency
Registration
Reg. No
Name
Father Name
Phone
Address
Class
Library
Reg. No
Name
Father Name
Book issued
Fine
Examination
Reg. No
Name
Address
Class
Semester
Grade
Database Approach
University
Student DB
DBMS
Library System
Registration
System
Registration
Application
Library
Application
Examination
System
Examination
Application
 A single repository maintain data defined once
and accessed by various users
Main Characteristics of the Database
Approach
 Self-describing nature of a database system: A
DBMS catalog stores the description of the
database. The description is called meta-data. This
allows the DBMS software to work with different
databases.
 Insulation between programs and data: Called
program-data independence. Allows changing
data storage structures and operations without
having to change the DBMS access programs.
Main Characteristics of the
Database Approach
 Data Abstraction: A data model is used to hide
storage details and present the users with a
conceptual view of the database.
 Support of multiple views of the data: Each user
may see a different view of the database, which
describes only the data of interest to that user.
Main Characteristics of the
Database Approach
 Sharing of data and multiuser transaction processing:
allowing a set of concurrent users to retrieve and to
update the database.
 Concurrency control within the DBMS guarantees
that each transaction is correctly executed or
completely aborted. OLTP (Online Transaction
Processing) is a major part of database applications.
 Since a DBMS comes with an overhead costs in:-
– High initial investment in hardware, software, and training
– Conversion cost - already a system could be manual or FPS
– Overhead for providing security, concurrency control,
recovery, and integrity functions.
When not to Use a DBMS:
 Therefore, TFP approach can be a better choice
– Simple, well-defined database applications that are not
expected to change at all.
– Real-time requirements for some application programs
that may not be met because of a DBMS overhead.
– Embedded systems with limited storage capacity such
that the DBMS would not fit.
– No multiple-user access is required.
When not to Use a DBMS:
Database Users
Users may be divided into those who actually
use and control the content (called “Actors on
the Scene”).
 1. Database Administrators:
– A Database Administrator (DBA) is responsible for
authorizing access to the database, coordinating
and monitoring its use, and acquiring software and
hardware resources as needed.
– The DBA is accountable for problems such as
– Security breaches
– Poor system response time.
Actors in a Large Database
 1. Database Responsibilities
– Software installation and Maintenance
– Data Extraction, Transformation, and Loading
– Database Backup and Recovery
– Security
– Authentication etc…
Actors in a Large Database
 2. Database Designers:
– Responsible for identifying the data to be stored
in the database and for choosing appropriate
structures to represent and store this data.
– These tasks are performed before the actual
implementation of the database.
Actors in a Large Database
 3. End Users:
– Are people whose job require access to the
database for querying, updating, and generating
reports.
– The database primarily exists for this use.
Actors in a Large Database
 4. System Analysts and Application Programmers
(Software Engineers/ Developers)
– System analysts determine the requirement of the
end users. Application programmers implement
these specifications as programs, then they test,
debug, document, and maintain the system.
– (This what you will do in this course project!)
Actors in a Large Database
Component of Database Application
Database
DBMS
Application
Program
How to get date
What to get
DB Designer
Design
Maintain
End users
Interact
Application
developer
Develop
DB
Administrator
Software
Users
Data
…
 Controlling Redundancy
– Redundancy is to store the same data in
different files for no need. Redundancy caused
TFPs to waste storage space, to require
duplication of effort for multiple updates (waste
time), and to perhaps show inconsistent data.
– Inconsistency is to show different values for the
same data item in different places.
Advantages - Using the DBMS Approach
 Restricting Unauthorized Access
– A DBMS provides a security and authorization
subsystem, which the DBA uses to create
accounts and to specify account restrictions.
Then, the DBMS enforces these restrictions
automatically.
Advantages - Using the DBMS Approach
 Providing Storage Structures and Search
Techniques for Efficient Query Processing
– A DBMS uses indexes, files based on tree data
structures or hash data structures that are
suitably modified for disk search, to speed up
disk search.
Advantages - Using the DBMS Approach
 Providing Backup and Recovery
– The backup and recovery subsystem of the
DBMS allows to take backups, dated copies of the
database, and to recover to a chosen backup copy
in the case of hardware or software failure.
Advantages - Using the DBMS Approach
 Enforcing Integrity Constraints
– A DBMS provides capabilities for defining and
enforcing integrity constraints, such as referential
integrity, uniqueness, or business rules.
– Examples are, When lending a book to a student,
Student ID must exist in Student's table, Each
Student ID must be unique.
Advantages - Using the DBMS Approach
 Reduce Application Development Time
– The time needed to develop an application using
the DBMS approach is 400% -600% faster than
the TFPs approach requires.
Advantages - Using the DBMS Approach
 Flexibility
– DBMS allows for some changes to the structure of the
database with minimum affect or without affecting
the stored data and the existing application programs.
– However, in TFP approach any changes in the data
structure requires corresponding changes in both file
structure and applications programs.
Advantages - Using the DBMS Approach
Thanks

More Related Content

Similar to DB_Lec_1 and 2.pptx

Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptLisaMalar
 
Database management systems
Database management systemsDatabase management systems
Database management systemsJoel Briza
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.pptChSheraz3
 
chapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfchapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfMisganawAbeje1
 
Database Systems Lec 1.pptx
Database Systems Lec 1.pptxDatabase Systems Lec 1.pptx
Database Systems Lec 1.pptxNishaTariq1
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteRaj vardhan
 
Database Systems.ppt
Database Systems.pptDatabase Systems.ppt
Database Systems.pptArbazAli27
 
Chapter 1. Itroduction To DBMS -.pptx
Chapter 1. Itroduction To DBMS -.pptxChapter 1. Itroduction To DBMS -.pptx
Chapter 1. Itroduction To DBMS -.pptxsantosh96234
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in databasemaqsoodahmedbscsfkhp
 

Similar to DB_Lec_1 and 2.pptx (20)

Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
chapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfchapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdf
 
Database, Lecture-1.ppt
Database, Lecture-1.pptDatabase, Lecture-1.ppt
Database, Lecture-1.ppt
 
Ch01
Ch01Ch01
Ch01
 
Database Systems Lec 1.pptx
Database Systems Lec 1.pptxDatabase Systems Lec 1.pptx
Database Systems Lec 1.pptx
 
En ch01
En ch01En ch01
En ch01
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
DBMS_UNIT_1.pdf
DBMS_UNIT_1.pdfDBMS_UNIT_1.pdf
DBMS_UNIT_1.pdf
 
Dbms mca-section a
Dbms mca-section aDbms mca-section a
Dbms mca-section a
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Introduction DBMS.pptx
Introduction DBMS.pptxIntroduction DBMS.pptx
Introduction DBMS.pptx
 
Database Systems.ppt
Database Systems.pptDatabase Systems.ppt
Database Systems.ppt
 
Chapter 1. Itroduction To DBMS -.pptx
Chapter 1. Itroduction To DBMS -.pptxChapter 1. Itroduction To DBMS -.pptx
Chapter 1. Itroduction To DBMS -.pptx
 
Ppt 2
Ppt 2Ppt 2
Ppt 2
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in database
 

Recently uploaded

Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 

Recently uploaded (20)

Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 

DB_Lec_1 and 2.pptx

  • 2. Course Description  This is an introductory course to database, its main aim is to introduce database to students as the heart of most business applications. The course focuses on database design, modeling and database language SQL.  Books: – Database Systems, Thomas Connolly & Carolyn Begg, 4th Edition, ,2008. Modern Database Management, Jeffrey A. Hoffer, Mary B. Prescott , null Edition, ,2008. – Database Systems Models, Languages, Design, and Application Programming. 6th edition, Ramez Elmasri & Shamkant Navathe. – Fundamentals of Database Systems, Elmasri and Navathe
  • 3. Course Objectives – Introduce the concept of DBMS and its purpose. – Introduce the main concepts in a Database (Tables, records, fields, primary key, foreign key, relation etc.) – Learn how to design a logical database model, convert the logical database designs to physical designs (Mapping), and develop the physical database. – Enhance the student's modeling and abstraction skills. – Introduce the concepts of Entities, Attributes and Relations. – Introduce Relational algebra and SQL. – Introduce the concept of normalization theory (1NF, 2NF, and 3NF). – Enable students to build a desktop application with a database. – Enhance students skills including: team working, problem- solving, and self-learning.
  • 4.  The goal of this chapter is to provide basic terms and concepts related to Databases. Chapter 1: Introduction to Databases
  • 5.  Databases are an essential component of life in modern society.  We interact with databases in many daily activates, such as:- – Banking transactions: open an account, deposit, withdraw, transfer, etc. – Hotel or airline reservation. – E-commerce, buy or sell online. – Search for a book in the library. Why to Study Databases?
  • 6. Types of Databases and Database Applications  Traditional database applications – Store textual or numeric information  Multimedia databases – Store images, audio clips, and video streams digitally  Geographic information systems (GIS) – Store and analyze maps, weather data, and satellite images
  • 7. Database Definition  A database is a shared collection of logically related data that is stored to meet the requirement of different users of an organizations
  • 8.  Data are known facts about something that can be recorded.  Some examples of data are: – Names – Telephone numbers – Addresses.  Data are values of some type; integer, float, string, image, .. Etc. What is Data? How to store those Data?
  • 9. Database Definitions  A database: – Models a particular real world systems in the computer in form of data called Miniworld or universe of discourse (UoD) – Logically coherent(well organized) collection of data with inherent meaning – Designed, built and populated with data for a specific purpose  Example of a commercial database – Sales system, Cash handling system, reservation system – Amazon.com
  • 10.  A Database Management System (DBMS) is a collection of programs that enables users to create and maintain a database.  A DBMS is a general purpose software system that facilitates the processes of defining, constructing, manipulating, and sharing databases among various users and applications. What is a DBMS?
  • 11. Typical DBMS Functionality 1. Define a database : in terms of data types, structures and constraints 2. Construct or Load the Database on a secondary storage medium 3. Manipulating the database : querying, generating reports, insertions, deletions and modifications to its content 4. Concurrent Processing and Sharing by a set of users and programs – yet, keeping all data valid and consistent
  • 12. An Application program accesses the database by sending queries or requests to the DBMS. A query causes some data to be retrieved. A transaction may cause some data to be read and some data to be written into the database. What is an Application?
  • 13.
  • 14. A Bit About History  Computer initially used for computational/ engineering purpose  Commercial applications introduces File Processing System – The application which involve data processing as a basic activity rather than computation
  • 15.  FPS is a collection of programs that perform services for the end users such as production of reports  In a TFP(Traditional file processing) system, each user defines and implements the files needed for a specific software application.  This redundancy in defining and storing data results in wasted storage space and in redundant efforts to maintain common up-to-date data. File Processing (FPS)
  • 16. File Processing (FPS) Registration data File Library data File Library System Registration System Registration Application Library Application Examination Examination Application Examination data File  Program data dependence
  • 17. File Processing (FPS)  Data duplication – Waste storage – Vulnerable to data inconsistency Registration Reg. No Name Father Name Phone Address Class Library Reg. No Name Father Name Book issued Fine Examination Reg. No Name Address Class Semester Grade
  • 18. Database Approach University Student DB DBMS Library System Registration System Registration Application Library Application Examination System Examination Application  A single repository maintain data defined once and accessed by various users
  • 19. Main Characteristics of the Database Approach  Self-describing nature of a database system: A DBMS catalog stores the description of the database. The description is called meta-data. This allows the DBMS software to work with different databases.  Insulation between programs and data: Called program-data independence. Allows changing data storage structures and operations without having to change the DBMS access programs.
  • 20. Main Characteristics of the Database Approach  Data Abstraction: A data model is used to hide storage details and present the users with a conceptual view of the database.  Support of multiple views of the data: Each user may see a different view of the database, which describes only the data of interest to that user.
  • 21. Main Characteristics of the Database Approach  Sharing of data and multiuser transaction processing: allowing a set of concurrent users to retrieve and to update the database.  Concurrency control within the DBMS guarantees that each transaction is correctly executed or completely aborted. OLTP (Online Transaction Processing) is a major part of database applications.
  • 22.  Since a DBMS comes with an overhead costs in:- – High initial investment in hardware, software, and training – Conversion cost - already a system could be manual or FPS – Overhead for providing security, concurrency control, recovery, and integrity functions. When not to Use a DBMS:
  • 23.  Therefore, TFP approach can be a better choice – Simple, well-defined database applications that are not expected to change at all. – Real-time requirements for some application programs that may not be met because of a DBMS overhead. – Embedded systems with limited storage capacity such that the DBMS would not fit. – No multiple-user access is required. When not to Use a DBMS:
  • 24. Database Users Users may be divided into those who actually use and control the content (called “Actors on the Scene”).
  • 25.  1. Database Administrators: – A Database Administrator (DBA) is responsible for authorizing access to the database, coordinating and monitoring its use, and acquiring software and hardware resources as needed. – The DBA is accountable for problems such as – Security breaches – Poor system response time. Actors in a Large Database
  • 26.  1. Database Responsibilities – Software installation and Maintenance – Data Extraction, Transformation, and Loading – Database Backup and Recovery – Security – Authentication etc… Actors in a Large Database
  • 27.  2. Database Designers: – Responsible for identifying the data to be stored in the database and for choosing appropriate structures to represent and store this data. – These tasks are performed before the actual implementation of the database. Actors in a Large Database
  • 28.  3. End Users: – Are people whose job require access to the database for querying, updating, and generating reports. – The database primarily exists for this use. Actors in a Large Database
  • 29.  4. System Analysts and Application Programmers (Software Engineers/ Developers) – System analysts determine the requirement of the end users. Application programmers implement these specifications as programs, then they test, debug, document, and maintain the system. – (This what you will do in this course project!) Actors in a Large Database
  • 30. Component of Database Application Database DBMS Application Program How to get date What to get DB Designer Design Maintain End users Interact Application developer Develop DB Administrator Software Users Data …
  • 31.  Controlling Redundancy – Redundancy is to store the same data in different files for no need. Redundancy caused TFPs to waste storage space, to require duplication of effort for multiple updates (waste time), and to perhaps show inconsistent data. – Inconsistency is to show different values for the same data item in different places. Advantages - Using the DBMS Approach
  • 32.  Restricting Unauthorized Access – A DBMS provides a security and authorization subsystem, which the DBA uses to create accounts and to specify account restrictions. Then, the DBMS enforces these restrictions automatically. Advantages - Using the DBMS Approach
  • 33.  Providing Storage Structures and Search Techniques for Efficient Query Processing – A DBMS uses indexes, files based on tree data structures or hash data structures that are suitably modified for disk search, to speed up disk search. Advantages - Using the DBMS Approach
  • 34.  Providing Backup and Recovery – The backup and recovery subsystem of the DBMS allows to take backups, dated copies of the database, and to recover to a chosen backup copy in the case of hardware or software failure. Advantages - Using the DBMS Approach
  • 35.  Enforcing Integrity Constraints – A DBMS provides capabilities for defining and enforcing integrity constraints, such as referential integrity, uniqueness, or business rules. – Examples are, When lending a book to a student, Student ID must exist in Student's table, Each Student ID must be unique. Advantages - Using the DBMS Approach
  • 36.  Reduce Application Development Time – The time needed to develop an application using the DBMS approach is 400% -600% faster than the TFPs approach requires. Advantages - Using the DBMS Approach
  • 37.  Flexibility – DBMS allows for some changes to the structure of the database with minimum affect or without affecting the stored data and the existing application programs. – However, in TFP approach any changes in the data structure requires corresponding changes in both file structure and applications programs. Advantages - Using the DBMS Approach

Editor's Notes

  1. Logically related: Context from which database is going to use
  2. In Database approach, a single repository maintains data that is defined once and then accesses by various users.