SlideShare une entreprise Scribd logo
1  sur  14
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
DBMS
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Database Management System
(DBMS)
• Collection of interrelated data
• Set of programs to access the data
• DBMS contains information about a particular enterprise
• DBMS provides an environment that is both convenient and
efficient to use.
• Database Applications:
– Banking: all transactions
– Airlines: reservations, schedules
– Universities: registration, grades
– Sales: customers, products, purchases
– Manufacturing: production, inventory, orders, supply chain
– Human resources: employee records, salaries, tax deductions
• Databases touch all aspects of our lives
D.Balaganesh LINCOLN UNIVERSITY COLLGE 2
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Purpose of Database System• In the early days, database applications were
built on top of file systems
• Drawbacks of using file systems to store data:
– Data redundancy and inconsistency
• Multiple file formats, duplication of information in
different files
– Difficulty in accessing data
• Need to write a new program to carry out each new
task
– Data isolation — multiple files and formats
– Integrity problems
• Integrity constraints (e.g. account balance > 0)
become part of program code
• Hard to add new constraints or change existing ones
D.Balaganesh LINCOLN UNIVERSITY COLLGE 3
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Purpose of Database Systems (Cont.)• Drawbacks of using file systems (cont.)
– Atomicity of updates
• Failures may leave database in an inconsistent state with partial
updates carried out
• E.g. transfer of funds from one account to another should either
complete or not happen at all
– Concurrent access by multiple users
• Concurrent accessed needed for performance
• Uncontrolled concurrent accesses can lead to inconsistencies
– E.g. two people reading a balance and updating it at the same time
– Security problems
• Database systems offer solutions to all the above
problems
D.Balaganesh LINCOLN UNIVERSITY COLLGE 4
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Three-Level Architecture
5© Pearson Education Limited 1995, 2005
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Three-Level Architecture
• External Level
– Users’ view of the database.
– Describes that part of database that is relevant
to a particular user.
• Conceptual Level
– Community view of the database.
– Describes what data is stored in database and
relationships among the data.
6
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Three-Level Architecture
• Internal Level
– Physical representation of the database on
the computer.
– Describes how the data is stored in the
database.
7
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Data Independence
• Logical Data Independence
– Refers to immunity of external schemas to
changes in conceptual schema.
– Conceptual schema changes (e.g.
addition/removal of entities).
– Should not require changes to external
schema or rewrites of application programs.
8
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Data Independence
• Physical Data Independence
– Refers to immunity of conceptual schema to
changes in the internal schema.
– Internal schema changes (e.g. using different
file organizations, storage structures/devices).
– Should not require change to conceptual or
external schemas.
9
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Data Independence and the Three-
Level Architecture
10© Pearson Education Limited 1995, 2005
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Database Languages
• Data Definition Language (DDL)
– Allows the DBA or user to describe and
name entities, attributes, and relationships
required for the application
– plus any associated integrity and security
constraints.
11© Pearson Education Limited 1995, 2005
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Database Languages
• Data Manipulation Language (DML)
– Provides basic data manipulation operations
on data held in the database.
• Procedural DML
– allows user to tell system exactly how to
manipulate data.
TCL transmission Control Language
12
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
Entity-Relationship Model
Example of schema in the entity-relationship model
D.Balaganesh LINCOLN UNIVERSITY COLLGE 13
Subject Name Code Credit Hours
FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING
• An ER model is an abstract way to describe a database.
Describing a database usually starts with a relational
database, which stores data in tables. Some of the data in
these tables point to data in other tables - for instance,
your entry in the database could point to several entries for
each of the phone numbers that are yours. The ER model
would say that you are an entity, and each phone number is
an entity, and the relationship between you and the phone
numbers is 'has a phone number'. Diagrams created to
design these entities and relationships are called entity–
relationship diagrams or ER diagrams

Contenu connexe

Similaire à Comp107 chep6

PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
AbhiGrover10
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
TOUSEEQHAIDER14
 

Similaire à Comp107 chep6 (20)

Database Design and Developlment basics.pptx
Database Design and Developlment basics.pptxDatabase Design and Developlment basics.pptx
Database Design and Developlment basics.pptx
 
System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And Design
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
PPT Lecture 1.1 and 1.2(Database concepts and database system architecture) (...
 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
DBMS introduction and functionality of of dbms
DBMS introduction and functionality of  of dbmsDBMS introduction and functionality of  of dbms
DBMS introduction and functionality of of dbms
 
Unit 01 dbms
Unit 01 dbmsUnit 01 dbms
Unit 01 dbms
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
INTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASEINTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASE
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
Unit01 dbms 2
Unit01 dbms 2Unit01 dbms 2
Unit01 dbms 2
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
Dbms module i
Dbms module iDbms module i
Dbms module i
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 

Plus de Bala Ganesh (20)

DDL,DML,1stNF
DDL,DML,1stNFDDL,DML,1stNF
DDL,DML,1stNF
 
sfdfds
sfdfdssfdfds
sfdfds
 
Dbms chapter viii
Dbms chapter viiiDbms chapter viii
Dbms chapter viii
 
Dbms chapter vii
Dbms chapter viiDbms chapter vii
Dbms chapter vii
 
Dbms chapter v
Dbms chapter vDbms chapter v
Dbms chapter v
 
Dbms chapter iv
Dbms chapter ivDbms chapter iv
Dbms chapter iv
 
Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iii
 
Dmbs chapter vi
Dmbs chapter viDmbs chapter vi
Dmbs chapter vi
 
Dbms chapter ii
Dbms chapter iiDbms chapter ii
Dbms chapter ii
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
karnaugh maps
karnaugh mapskarnaugh maps
karnaugh maps
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
DEL-244Chep i
DEL-244Chep iDEL-244Chep i
DEL-244Chep i
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and Answers
 
Software testing
Software testingSoftware testing
Software testing
 
Design
DesignDesign
Design
 
Comp 107 cep 8
Comp 107 cep 8Comp 107 cep 8
Comp 107 cep 8
 
Comp 107 cep 7
Comp 107 cep 7Comp 107 cep 7
Comp 107 cep 7
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Comp107 chep6

  • 1. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING DBMS
  • 2. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Database Management System (DBMS) • Collection of interrelated data • Set of programs to access the data • DBMS contains information about a particular enterprise • DBMS provides an environment that is both convenient and efficient to use. • Database Applications: – Banking: all transactions – Airlines: reservations, schedules – Universities: registration, grades – Sales: customers, products, purchases – Manufacturing: production, inventory, orders, supply chain – Human resources: employee records, salaries, tax deductions • Databases touch all aspects of our lives D.Balaganesh LINCOLN UNIVERSITY COLLGE 2
  • 3. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Purpose of Database System• In the early days, database applications were built on top of file systems • Drawbacks of using file systems to store data: – Data redundancy and inconsistency • Multiple file formats, duplication of information in different files – Difficulty in accessing data • Need to write a new program to carry out each new task – Data isolation — multiple files and formats – Integrity problems • Integrity constraints (e.g. account balance > 0) become part of program code • Hard to add new constraints or change existing ones D.Balaganesh LINCOLN UNIVERSITY COLLGE 3
  • 4. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Purpose of Database Systems (Cont.)• Drawbacks of using file systems (cont.) – Atomicity of updates • Failures may leave database in an inconsistent state with partial updates carried out • E.g. transfer of funds from one account to another should either complete or not happen at all – Concurrent access by multiple users • Concurrent accessed needed for performance • Uncontrolled concurrent accesses can lead to inconsistencies – E.g. two people reading a balance and updating it at the same time – Security problems • Database systems offer solutions to all the above problems D.Balaganesh LINCOLN UNIVERSITY COLLGE 4
  • 5. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Three-Level Architecture 5© Pearson Education Limited 1995, 2005
  • 6. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Three-Level Architecture • External Level – Users’ view of the database. – Describes that part of database that is relevant to a particular user. • Conceptual Level – Community view of the database. – Describes what data is stored in database and relationships among the data. 6
  • 7. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Three-Level Architecture • Internal Level – Physical representation of the database on the computer. – Describes how the data is stored in the database. 7
  • 8. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Data Independence • Logical Data Independence – Refers to immunity of external schemas to changes in conceptual schema. – Conceptual schema changes (e.g. addition/removal of entities). – Should not require changes to external schema or rewrites of application programs. 8
  • 9. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Data Independence • Physical Data Independence – Refers to immunity of conceptual schema to changes in the internal schema. – Internal schema changes (e.g. using different file organizations, storage structures/devices). – Should not require change to conceptual or external schemas. 9
  • 10. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Data Independence and the Three- Level Architecture 10© Pearson Education Limited 1995, 2005
  • 11. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Database Languages • Data Definition Language (DDL) – Allows the DBA or user to describe and name entities, attributes, and relationships required for the application – plus any associated integrity and security constraints. 11© Pearson Education Limited 1995, 2005
  • 12. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Database Languages • Data Manipulation Language (DML) – Provides basic data manipulation operations on data held in the database. • Procedural DML – allows user to tell system exactly how to manipulate data. TCL transmission Control Language 12
  • 13. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING Entity-Relationship Model Example of schema in the entity-relationship model D.Balaganesh LINCOLN UNIVERSITY COLLGE 13
  • 14. Subject Name Code Credit Hours FUNDAMENTAL COMPUTER PRINCIPLE & PROGRAMMING • An ER model is an abstract way to describe a database. Describing a database usually starts with a relational database, which stores data in tables. Some of the data in these tables point to data in other tables - for instance, your entry in the database could point to several entries for each of the phone numbers that are yours. The ER model would say that you are an entity, and each phone number is an entity, and the relationship between you and the phone numbers is 'has a phone number'. Diagrams created to design these entities and relationships are called entity– relationship diagrams or ER diagrams