Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 5 Database Concepts. Why Study Databases? Databases have incredible value to businesses. Very important technology for supporting operations.

Similar presentations


Presentation on theme: "Chapter 5 Database Concepts. Why Study Databases? Databases have incredible value to businesses. Very important technology for supporting operations."— Presentation transcript:

1 Chapter 5 Database Concepts

2 Why Study Databases? Databases have incredible value to businesses. Very important technology for supporting operations. Vastly superior to spreadsheets and file processing systems Businesses cannot survive without secure, accessible, and flexible data. Database provide a universal standardized way to store data (in a secure way).

3 Foundation Data Concepts Abstract Concepts Entity – person, place, object or event – stored as a record or a table row Attribute – characteristic of an entity – stored as field or table column

4 Foundation Data Concepts Database Concepts Database – a collection of related tables Tables – a collection of related records – collection of related entities Record – collection of fields (table row) –represents an entity Field – collection of characters (table column) – represents an attribute Character – single alphabetic, numeric or other symbol Large Small

5 Fields Characters “B R E I M E R” form a field A field is an attribute of an entity Last Name Breimer

6 Records A bunch of fields form a record A record is an entity Last Name Breimer First Name Eric Sex Yes Weight 263

7 Tables A bunch of records forms a table A table is a group of related entities First NameLast NameSexAge EricBreimerM46 JosephKimM20 AlliePrimoF21

8 Databases A bunch of tables form a database A database can represent a single business or an entire market Customer Table Product Table Order Table

9 Databases But, databases are not just a bunch of tables A database also includes relationships between the different tables Customers CIDFNameLNameAddress 508EricBreimer AndrewZych GregSmith... Products PIDDescriptionCost 199Viagra$ Tooth Paste$ Hair Gel$5.99 Orders OIDCIDPIDQuantity ,

10 Chapter 5 Relationships & Queries in Databases

11 Types of Relationships One to One Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If the two answers are NO, then it is a one to one relationship. ThingAThingB Relationship ManWoman Married

12 Types of Relationships One to Many Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If only one answer is yes, then you have a one to many relationship Faculty Student Advises Get Advisement

13 Types of Relationships Many to Many Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If the answers are yes and yes, then the relationship is many to many. course has a student student takes course Course Student Course Student

14 How to Model Relationships Customers CIDFNameLNameAddress 508EricBreimer AndrewZych GregSmith... Products PIDDescriptionCost 199Viagra$ Tooth Paste$ Hair Gel$5.99 Orders OIDCIDPIDQuantity ,

15 Find the name and hire date of the manager working on the sales manual project

16 Traditional File Processing Sucks File Processing: Data is organized, stored, and processed in independent files of data records Sometimes the files are spreadsheets Sometimes they can can even be Word or Text Documents (eeeck!)

17 Problems of File Processing Data Redundancy – duplicate data requires update to many files Lack of Integration – data stored in separate files hard to combine data Data Dependence – changing the file format requires changing the program…

18 Database Management Approach Consolidates data records into one CENTRAL database that can be accessed by many different application programs.

19

20 Database Management Software (DBMS) Definition: Software that controls the creation, maintenance, and use of databases

21 DBMS Software Components Database Definition Language and graphical tools to define entities, relationships, integrity constraints, and authorization rights Application Development Graphical tools to develop menus, data entry forms, and reports

22 DBMS Software Components Transaction Processing Controls to prevent interference from simultaneous users and Controls to recover lost data after a failure Database Tuning Tools to monitor and improve database performance

23 Database Interrogation Definition: Capability of a DBMS to report information from the database in response to end users’ requests Query Language – allows easy, immediate access to ad hoc data requests Report Generator - allows quick, easy specification of a report format for information users have requested

24 Natural Language vs. SQL Queries

25 Schemas Schema - A description of the database Subschema – describes a subset of the database and which users have access to this subset

26 Data Definition Language Language Used to describe Schemas and Subschemas Describes relationships between different data Provides a Logical view of the data

27 Data Dictionary Entry A more detailed description of the data in a database Specifies data types and ranges Assists programmers in understanding the data

28 Physical vs. Logical DBMS concentrate on Physical access to the underlying tables Concurrency control Query’s Creating/deleting tables

29 Physical vs. Logical MIS systems are (Logically) interface with a DBMS monthly reports charts automated inquiries

30 Application Development Today, even non-technical staff can use tools to build little programs that use a database. Database Management Systems have all kinds of tools to develop custom application programs and interfaces. Example: The College’s MIS (Banner) is actually an application built on top of a Oracle Database.


Download ppt "Chapter 5 Database Concepts. Why Study Databases? Databases have incredible value to businesses. Very important technology for supporting operations."

Similar presentations


Ads by Google