SlideShare una empresa de Scribd logo
1 de 27
Class Presentation



System Analysis and
     Designs
Topic




Systematic Study on different aspect of DATABASE
Presentation TEAM




               IT @ DCSMAT
DATABASE
A database is any organized collection of data.

Some examples of databases you may encounter
in your daily life are:
    • a telephone book
    • T.V. Guide
    • airline reservation system
    • motor vehicle registration records
    • papers in your filing cabinet
    • files on your computer hard drive.
Database
• It is a collection of interrelated data with
  minimum redundancy to serve many users
  quickly and efficiently
• General theme – to handle information as an
  integrated whole
• General objective – to make information
  access easy, quick, inexpensive and flexible for
  the user.
Objectives of Database
1.   Controlled redundancy
2.   Ease of learning and use
3.   Data independence
4.   More information at low cost
5.   Accuracy and integrity
6.   Recovery from failure
7.   Privacy and security
8.   Performance
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
– 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
Data vs. information:
             What is the difference?
• What is data?
  – Data can be defined in many ways. Information science defines data as
    unprocessed information

• What is information?
  – Information is data that have been organized and communicated in a
    coherent and meaningful manner.
  – Data is converted into information, and information is converted into
    knowledge.
  – Knowledge; information evaluated and organized so that it can be
    used purposefully.
What is the ultimate purpose of a
database management system?

          Is to transform

 Data     Information   Knowledge   Action
Why do we need a database ?
• Keep records of our:
   – Clients
   – Staff
   – Volunteers
• To keep a record of activities and interventions;
• Keep sales records;
• Develop reports;
• Perform research
• Longitudinal tracking
Terms Used in a Database
• Table, a set of columns that contain data. In the
  old days, a table was called a file.
• Row, a set of columns from a table reflecting a
  record.
• Index, an object that allows for fast retrieval of
  table rows. Every primary key and foreign key
  should have an index for retrieval speed.
• Primary key, often designated pk, is 1 or more
  columns in a table that makes a record unique.
• Foreign key, often designated fk, is a common
  column common between 2 tables that define the
  relationship between those 2 tables.
• Foreign keys are either mandatory or optional.
  Mandatory forces a child to have a parent by
  creating a not null column at the child. Optional
  allows a child to exist without a parent, allowing a
  nullable column at the child table (not a common
  circumstance).
• Entity Relationship Diagram or ER is a pictorial
  representation of the application schema.
Key Terms in database design
• User’s view: profile that the user expects to
  see on a specific report
• Processing: the changes made to produce the
  report
• Data model: a framework of the user’s view
• Data file: the area where the actual files are
  stored.
• DML manipulates data; it specifies what is
  required. Eg: update, delete
• DDL describes how data are structured. Eg:
  create, alter
• DBMS manages data according to DML
  requests and DDL descriptions.
Views of data

• Logical view
     - It is what the data look like, regardless of
  how they are stored.
• Physical view
     - It deals with how data are stored,
  accessed, or related to other data in storage
Database Users
• Users are differentiated by the way they expect to interact
  with the system
• Application programmers – interact with system through
  DML calls
• Sophisticated users – form requests in a database query
  language
• Specialized users – write specialized database applications
  that do not fit into the traditional data processing
  framework
• Naive users – invoke one of the permanent application
  programs that have been written previously
   – E.g. people accessing database over the web, bank tellers,
     clerical staff
Types of Databases
1. Non-relational databases
 Non-relational databases place information in field
 categories that we create so that information is
 available for sorting and disseminating the way we
 need it. The data in a non-relational database,
 however, is limited to that program and cannot be
 extracted and applied to a number of other software
 programs, or other database files within a
 school or administrative system. The data can
 only be "copied and pasted.“ Example: a
 spread sheet
2. Relational databases
 In relational databases, fields can be used in a
 number of ways (and can be of variable
 length), provided that they are linked in
 tables. It is developed based on a database
 model that provides for logical connections
 among files (known as tables) by including
 identifying data from one table in another
 table
Data Definition Language (DDL)
• Specification notation for defining the database schema
   – E.g.
      create table account (
            account-number char(10),
            balance          integer)
• DDL compiler generates a set of tables stored in a data
  dictionary
• Data dictionary contains metadata (i.e., data about data)
   – database schema
   – Data storage and definition language
       • language in which the storage structure and access methods used by
         the database system are specified
       • Usually an extension of the data definition language
Data Manipulation Language (DML)
• Language for accessing and manipulating the
  data organized by the appropriate data model
  – DML also known as query language
• Two classes of languages
  – Procedural – user specifies what data is required
    and how to get those data
  – Nonprocedural – user specifies what data is
    required without specifying how to get those data
• SQL is the most widely used query language
SQL
• SQL: widely used non-procedural language
   – E.g. find the name of the customer with customer-id 192-83-7465
                 select customer.customer-name
                 from customer
                 where customer.customer-id = ‘192-83-7465’
   – E.g. find the balances of all accounts held by the customer with
     customer-id 192-83-7465
                 select account.balance
                 from depositor, account
                 where depositor.customer-id = ‘192-83-7465’ and
                       depositor.account-number = account.account-number
• Application programs generally access databases through one of
   – Language extensions to allow embedded SQL
   – Application program interface (e.g. ODBC/JDBC) which allow SQL
     queries to be sent to a database
Selecting a database system: Need
                  Analysis
The needs analysis process will be specific to your organization but, at
  a minimum, should answer the following questions:
• How many records we will warehouse and for how long?
• Who will be using the database and what tasks will they perform?
• How often will the data be modified? Who will make these
  modifications?
• Who will be providing IT support for the database?
• What hardware is available? Is there a budget for purchasing
  additional hardware?
• Who will be responsible for maintaining the data?
• Will data access be offered over the Internet? If so, what level of
  access should be supported?
Selecting a DBMS
              How do I Choose?
Which database product is appropriate for my
   application? You must make a requirements
   assessment.
Does you database need 24x7 availability?
Is your database mission critical, and no data loss
   can be tolerated?
Is your database large? (backup recovery methods)
What data types do I need? (binary, large objects?)
Do I need replication? What level of replication is
   required? Read only? Read/Write? Read/Write is
   very expensive, so can I justify it?
If your answer to any of the above is ‘yes’, I would
   strongly suggest purchasing and using a
   commercial database with support. Support
   includes:

  •   24x7 assistance with technical issues
  •   Patches for bugs and security
  •   The ability to report bugs, and get them resolved in a
      timely manner.
  •   Priority for production issues
  •   Upgrades/new releases
  •   Assistance with and use of proven backup/recovery
      methods
Selecting a DBMS
           The Freeware Choice
Freeware is free.
Freeware is open source.
Freeware functionality is improving.
Freeware is good for smaller non-mission critical
  applications.
IT @ DCSMAT




GROUP - 2

Más contenido relacionado

La actualidad más candente

Introduction to information systems and the role of information systems in bu...
Introduction to information systems and the role of information systems in bu...Introduction to information systems and the role of information systems in bu...
Introduction to information systems and the role of information systems in bu...
Ultraspectra
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
welcometofacebook
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
welcometofacebook
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
Jotham Gadot
 
Data base management system
Data base management systemData base management system
Data base management system
Navneet Jingar
 
System Development Life Cycle (SDLC)
System Development Life Cycle (SDLC)System Development Life Cycle (SDLC)
System Development Life Cycle (SDLC)
fentrekin
 

La actualidad más candente (20)

Introduction to information systems and the role of information systems in bu...
Introduction to information systems and the role of information systems in bu...Introduction to information systems and the role of information systems in bu...
Introduction to information systems and the role of information systems in bu...
 
Challenges in Managing IT Infrastructure
Challenges in Managing IT InfrastructureChallenges in Managing IT Infrastructure
Challenges in Managing IT Infrastructure
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
 
System design
System designSystem design
System design
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
 
Big Data Sources PowerPoint Presentation Slides
Big Data Sources PowerPoint Presentation Slides Big Data Sources PowerPoint Presentation Slides
Big Data Sources PowerPoint Presentation Slides
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptxChapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
 
Multidimensional Database Design & Architecture
Multidimensional Database Design & ArchitectureMultidimensional Database Design & Architecture
Multidimensional Database Design & Architecture
 
Database design
Database designDatabase design
Database design
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Data warehouse
Data warehouse Data warehouse
Data warehouse
 
Types o f information systems
Types o f information systemsTypes o f information systems
Types o f information systems
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
History of Database
History  of DatabaseHistory  of Database
History of Database
 
Data base management system
Data base management systemData base management system
Data base management system
 
System analysis and design
System analysis and designSystem analysis and design
System analysis and design
 
Data warehousing - Dr. Radhika Kotecha
Data warehousing - Dr. Radhika KotechaData warehousing - Dr. Radhika Kotecha
Data warehousing - Dr. Radhika Kotecha
 
Business Process Modeling
Business Process ModelingBusiness Process Modeling
Business Process Modeling
 
System Development Life Cycle (SDLC)
System Development Life Cycle (SDLC)System Development Life Cycle (SDLC)
System Development Life Cycle (SDLC)
 

Destacado

system analysis and design Chap005
 system analysis and design  Chap005 system analysis and design  Chap005
system analysis and design Chap005
Nderitu Muriithi
 
System analysis and Design Chap001
System analysis and Design Chap001System analysis and Design Chap001
System analysis and Design Chap001
Nderitu Muriithi
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
Nderitu Muriithi
 
14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology
Irfan Hussain
 
system analysis and design Chap002
 system analysis and design Chap002 system analysis and design Chap002
system analysis and design Chap002
Nderitu Muriithi
 
Information Systems Analysis and Design
Information Systems Analysis and DesignInformation Systems Analysis and Design
Information Systems Analysis and Design
Christian Reina
 
Rural Industrialisation
Rural IndustrialisationRural Industrialisation
Rural Industrialisation
Ujjwal 'Shanu'
 
Previous question papers of Database Management System (DBMS) By SHABEEB
Previous question papers of Database Management System (DBMS) By SHABEEBPrevious question papers of Database Management System (DBMS) By SHABEEB
Previous question papers of Database Management System (DBMS) By SHABEEB
Shabeeb Shabi
 
Impact of Social Media on E-Commerce
Impact of Social Media on E-CommerceImpact of Social Media on E-Commerce
Impact of Social Media on E-Commerce
Akshay Thakur
 
analysis and design of information system
analysis and design of information systemanalysis and design of information system
analysis and design of information system
Renu Sharma
 
System analysis and design
System analysis and design System analysis and design
System analysis and design
Razan Al Ryalat
 
Retailing (Concept & Definition)
Retailing (Concept & Definition)Retailing (Concept & Definition)
Retailing (Concept & Definition)
dcsastudent
 
Foreign exchange risk
Foreign exchange riskForeign exchange risk
Foreign exchange risk
Lijo Stalin
 

Destacado (20)

system analysis and design Chap005
 system analysis and design  Chap005 system analysis and design  Chap005
system analysis and design Chap005
 
System analysis and Design Chap001
System analysis and Design Chap001System analysis and Design Chap001
System analysis and Design Chap001
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Session 1 Lecture 2 PACT A Framework for Designing Interactive Systems
Session 1 Lecture 2 PACT A Framework for Designing Interactive SystemsSession 1 Lecture 2 PACT A Framework for Designing Interactive Systems
Session 1 Lecture 2 PACT A Framework for Designing Interactive Systems
 
14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology14 e commerce,water pollution,positive and negative effect of technology
14 e commerce,water pollution,positive and negative effect of technology
 
Internet threats and its effect on E-commerce
Internet threats and its effect on E-commerceInternet threats and its effect on E-commerce
Internet threats and its effect on E-commerce
 
Chap02
Chap02Chap02
Chap02
 
system analysis and design Chap002
 system analysis and design Chap002 system analysis and design Chap002
system analysis and design Chap002
 
Chap01
Chap01Chap01
Chap01
 
Chap03
Chap03Chap03
Chap03
 
Information Systems Analysis and Design
Information Systems Analysis and DesignInformation Systems Analysis and Design
Information Systems Analysis and Design
 
Rural Industrialisation
Rural IndustrialisationRural Industrialisation
Rural Industrialisation
 
Previous question papers of Database Management System (DBMS) By SHABEEB
Previous question papers of Database Management System (DBMS) By SHABEEBPrevious question papers of Database Management System (DBMS) By SHABEEB
Previous question papers of Database Management System (DBMS) By SHABEEB
 
Impact of Social Media on E-Commerce
Impact of Social Media on E-CommerceImpact of Social Media on E-Commerce
Impact of Social Media on E-Commerce
 
Effect of social media on e commerce
Effect of social media on e commerceEffect of social media on e commerce
Effect of social media on e commerce
 
analysis and design of information system
analysis and design of information systemanalysis and design of information system
analysis and design of information system
 
System analysis and design
System analysis and design System analysis and design
System analysis and design
 
Retailing (Concept & Definition)
Retailing (Concept & Definition)Retailing (Concept & Definition)
Retailing (Concept & Definition)
 
Foreign exchange risk
Foreign exchange riskForeign exchange risk
Foreign exchange risk
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 

Similar a System Analysis And Design

01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
TOUSEEQHAIDER14
 

Similar a System Analysis And Design (20)

Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
INTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASEINTRODUCTION OF DATA BASE
INTRODUCTION OF DATA BASE
 
Lec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systemsLec20.pptx introduction to data bases and information systems
Lec20.pptx introduction to data bases and information systems
 
Database Systems Lec 1.pptx
Database Systems Lec 1.pptxDatabase Systems Lec 1.pptx
Database Systems Lec 1.pptx
 
Data concepts
Data conceptsData concepts
Data concepts
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
Unit 01 dbms
Unit 01 dbmsUnit 01 dbms
Unit 01 dbms
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
dbms introduction.pptx
dbms introduction.pptxdbms introduction.pptx
dbms introduction.pptx
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Dbms
DbmsDbms
Dbms
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
dbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodungadbms Unit 1.pdf arey bhai teri maa chodunga
dbms Unit 1.pdf arey bhai teri maa chodunga
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
Unit01 dbms 2
Unit01 dbms 2Unit01 dbms 2
Unit01 dbms 2
 

Último

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

System Analysis And Design

  • 2. Topic Systematic Study on different aspect of DATABASE
  • 3. Presentation TEAM IT @ DCSMAT
  • 4. DATABASE A database is any organized collection of data. Some examples of databases you may encounter in your daily life are: • a telephone book • T.V. Guide • airline reservation system • motor vehicle registration records • papers in your filing cabinet • files on your computer hard drive.
  • 5. Database • It is a collection of interrelated data with minimum redundancy to serve many users quickly and efficiently • General theme – to handle information as an integrated whole • General objective – to make information access easy, quick, inexpensive and flexible for the user.
  • 6. Objectives of Database 1. Controlled redundancy 2. Ease of learning and use 3. Data independence 4. More information at low cost 5. Accuracy and integrity 6. Recovery from failure 7. Privacy and security 8. Performance
  • 7. 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
  • 8. – 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
  • 9. Data vs. information: What is the difference? • What is data? – Data can be defined in many ways. Information science defines data as unprocessed information • What is information? – Information is data that have been organized and communicated in a coherent and meaningful manner. – Data is converted into information, and information is converted into knowledge. – Knowledge; information evaluated and organized so that it can be used purposefully.
  • 10. What is the ultimate purpose of a database management system? Is to transform Data Information Knowledge Action
  • 11. Why do we need a database ? • Keep records of our: – Clients – Staff – Volunteers • To keep a record of activities and interventions; • Keep sales records; • Develop reports; • Perform research • Longitudinal tracking
  • 12. Terms Used in a Database • Table, a set of columns that contain data. In the old days, a table was called a file. • Row, a set of columns from a table reflecting a record. • Index, an object that allows for fast retrieval of table rows. Every primary key and foreign key should have an index for retrieval speed. • Primary key, often designated pk, is 1 or more columns in a table that makes a record unique.
  • 13. • Foreign key, often designated fk, is a common column common between 2 tables that define the relationship between those 2 tables. • Foreign keys are either mandatory or optional. Mandatory forces a child to have a parent by creating a not null column at the child. Optional allows a child to exist without a parent, allowing a nullable column at the child table (not a common circumstance). • Entity Relationship Diagram or ER is a pictorial representation of the application schema.
  • 14. Key Terms in database design • User’s view: profile that the user expects to see on a specific report • Processing: the changes made to produce the report • Data model: a framework of the user’s view • Data file: the area where the actual files are stored.
  • 15. • DML manipulates data; it specifies what is required. Eg: update, delete • DDL describes how data are structured. Eg: create, alter • DBMS manages data according to DML requests and DDL descriptions.
  • 16. Views of data • Logical view - It is what the data look like, regardless of how they are stored. • Physical view - It deals with how data are stored, accessed, or related to other data in storage
  • 17. Database Users • Users are differentiated by the way they expect to interact with the system • Application programmers – interact with system through DML calls • Sophisticated users – form requests in a database query language • Specialized users – write specialized database applications that do not fit into the traditional data processing framework • Naive users – invoke one of the permanent application programs that have been written previously – E.g. people accessing database over the web, bank tellers, clerical staff
  • 18. Types of Databases 1. Non-relational databases Non-relational databases place information in field categories that we create so that information is available for sorting and disseminating the way we need it. The data in a non-relational database, however, is limited to that program and cannot be extracted and applied to a number of other software programs, or other database files within a school or administrative system. The data can only be "copied and pasted.“ Example: a spread sheet
  • 19. 2. Relational databases In relational databases, fields can be used in a number of ways (and can be of variable length), provided that they are linked in tables. It is developed based on a database model that provides for logical connections among files (known as tables) by including identifying data from one table in another table
  • 20. Data Definition Language (DDL) • Specification notation for defining the database schema – E.g. create table account ( account-number char(10), balance integer) • DDL compiler generates a set of tables stored in a data dictionary • Data dictionary contains metadata (i.e., data about data) – database schema – Data storage and definition language • language in which the storage structure and access methods used by the database system are specified • Usually an extension of the data definition language
  • 21. Data Manipulation Language (DML) • Language for accessing and manipulating the data organized by the appropriate data model – DML also known as query language • Two classes of languages – Procedural – user specifies what data is required and how to get those data – Nonprocedural – user specifies what data is required without specifying how to get those data • SQL is the most widely used query language
  • 22. SQL • SQL: widely used non-procedural language – E.g. find the name of the customer with customer-id 192-83-7465 select customer.customer-name from customer where customer.customer-id = ‘192-83-7465’ – E.g. find the balances of all accounts held by the customer with customer-id 192-83-7465 select account.balance from depositor, account where depositor.customer-id = ‘192-83-7465’ and depositor.account-number = account.account-number • Application programs generally access databases through one of – Language extensions to allow embedded SQL – Application program interface (e.g. ODBC/JDBC) which allow SQL queries to be sent to a database
  • 23. Selecting a database system: Need Analysis The needs analysis process will be specific to your organization but, at a minimum, should answer the following questions: • How many records we will warehouse and for how long? • Who will be using the database and what tasks will they perform? • How often will the data be modified? Who will make these modifications? • Who will be providing IT support for the database? • What hardware is available? Is there a budget for purchasing additional hardware? • Who will be responsible for maintaining the data? • Will data access be offered over the Internet? If so, what level of access should be supported?
  • 24. Selecting a DBMS How do I Choose? Which database product is appropriate for my application? You must make a requirements assessment. Does you database need 24x7 availability? Is your database mission critical, and no data loss can be tolerated? Is your database large? (backup recovery methods) What data types do I need? (binary, large objects?) Do I need replication? What level of replication is required? Read only? Read/Write? Read/Write is very expensive, so can I justify it?
  • 25. If your answer to any of the above is ‘yes’, I would strongly suggest purchasing and using a commercial database with support. Support includes: • 24x7 assistance with technical issues • Patches for bugs and security • The ability to report bugs, and get them resolved in a timely manner. • Priority for production issues • Upgrades/new releases • Assistance with and use of proven backup/recovery methods
  • 26. Selecting a DBMS The Freeware Choice Freeware is free. Freeware is open source. Freeware functionality is improving. Freeware is good for smaller non-mission critical applications.

Notas del editor

  1. This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2010!For more sample templates, click the File tab, and then on the New tab, click Sample Templates.