Database Management Ch.14-A,B,C,D
description
Transcript of Database Management Ch.14-A,B,C,D
![Page 1: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/1.jpg)
1
5
Database ManagementDatabase ManagementCh.14-A,B,C,DCh.14-A,B,C,D
FALL 2000FALL 2000
Rob WolfeRob Wolfe
![Page 2: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/2.jpg)
DIT 2006 - Wolfe2
5 What is data?What is data?
da-tum n [L, fr. neut. of datus] 1 pl. da-ta : something given or admitted esp. as a basis for reasoning or inference
2 pl. da-tums : something used as a basis for calculating or measuring
![Page 3: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/3.jpg)
DIT 2006 - Wolfe3
5 Managing DataManaging Data
Paper-based Paper-based record-keeping record-keeping approachapproachPersonal / Less official dataStill viable
Electronic Electronic record-keeping approachesrecord-keeping approachesFile systemsDatabase systems
![Page 4: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/4.jpg)
DIT 2006 - Wolfe4
5 File SystemsFile Systems
A A file system file system is a collection of is a collection of electronic data files that are electronic data files that are specifically designed for and around specifically designed for and around individual applications.individual applications.
EfficientEfficient InflexibleInflexible Important! - Important! - “Not every “Not every
computerized record-keeping computerized record-keeping system is a database system.”system is a database system.”
![Page 5: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/5.jpg)
DIT 2006 - Wolfe5
5 File SystemsFile Systems
DF DF DF
R L B
![Page 6: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/6.jpg)
DIT 2006 - Wolfe6
5 Database SystemsDatabase Systems
A A database systemdatabase system is a computerized is a computerized record-keeping system that maintains record-keeping system that maintains information and makes it available to information and makes it available to multiplemultiple users upon demand. users upon demand. [Date][Date]
RequirementsRequirementsData modelDBADBMS
![Page 7: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/7.jpg)
DIT 2006 - Wolfe7
5 Data ModelingData Modeling
EntityEntity AttributeAttribute ValueValue InstanceInstance
ID?Nam
e?
Sex?
Address?
Class?
Major?StudentStudent
ID: 1234567Name: Jack JonesClass:2000Sex: MAddr: 123 Main Street ...
![Page 8: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/8.jpg)
DIT 2006 - Wolfe8
5 Data ModelingData Modeling
EntityEntity AttributeAttribute ValueValue InstanceInstance
ID: 1234567Name: Jack JonesClass:2000Sex: MAddr: 123 Main Street ...
TableTable FieldField Data ItemData Item RecordRecord
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
![Page 9: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/9.jpg)
DIT 2006 - Wolfe9
5 Data ModelingData Modeling
EntityEntity AttributeAttribute ValueValue InstanceInstance
TableTable FieldField Data ItemData Item RecordRecord
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . .. . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
![Page 10: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/10.jpg)
DIT 2006 - Wolfe10
5 Data ModelingData Modeling
Hierarchical Data ModelHierarchical Data Model Network Data ModelNetwork Data Model RelationalRelational Data Model Data Model Object-oriented Data ModelObject-oriented Data Model
Fields
Records
Primary Key
![Page 11: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/11.jpg)
DIT 2006 - Wolfe11
5 Database Management SystemDatabase Management System
A A Database Management SystemDatabase Management System (DBMS) is a piece of software that (DBMS) is a piece of software that defines the database structure and defines the database structure and performs data manipulation to the performs data manipulation to the records residing in a databaserecords residing in a database
Selection of a DBMS depends on data Selection of a DBMS depends on data model and data management model and data management environment.environment.
Examples … Examples … AccessAccess, , OracleOracle, , SybaseSybase, , DB2DB2, , InformixInformix, , SQLSQL ServerServer
![Page 12: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/12.jpg)
DIT 2006 - Wolfe12
5 Database AdministratorDatabase Administrator
A A Database AdministratorDatabase Administrator (DBA) is (DBA) is responsible for … responsible for … Data modeling & database establishmentMaintenance of data dictionaryManagement and upgrade of DBMSUser support & trainingDatabase system documentation
![Page 13: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/13.jpg)
DIT 2006 - Wolfe13
5 When it comes to database When it comes to database systems ...systems ...
Remember these two keywords!Remember these two keywords! IntegrationSharing
These two words make the difference These two words make the difference between between database systemsdatabase systems and and file file systemssystems!!
![Page 14: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/14.jpg)
DIT 2006 - Wolfe14
5 Database SystemsDatabase Systems
DB
DBMS
B
L
R
DBA
![Page 15: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/15.jpg)
DIT 2006 - Wolfe15
5 Why Database Systems?Why Database Systems?
Advantages over traditional (paper-Advantages over traditional (paper-based) record-keeping systemsbased) record-keeping systemsCompactSpeedyLess DrudgeryCurrentAvailable
![Page 16: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/16.jpg)
DIT 2006 - Wolfe16
5 Why Database Systems?Why Database Systems?
Advantages over file systems due to Advantages over file systems due to integration and sharing through integration and sharing through centralized controlcentralized controlReduced RedundancyData integrity (Rid inconsistency)StandardsSecurityBetter Communication
![Page 17: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/17.jpg)
DIT 2006 - Wolfe17
5 Can you tell them apart?Can you tell them apart?
DatabaseDatabase Database Management System Database Management System
(DBMS)(DBMS) Database SystemDatabase System
![Page 18: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/18.jpg)
DIT 2006 - Wolfe18
5 Can I call this a database system?Can I call this a database system?
Microsoft AccessMicrosoft Access Personal ComputerPersonal Computer Single UserSingle User
![Page 19: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/19.jpg)
DIT 2006 - Wolfe19
5 What is a “Data File”?What is a “Data File”?
Possible definitions:Possible definitions:
““A data file is any file that … ”A data file is any file that … ” Contains dataContains data
Documents Spreadsheets Sounds, Graphics, Videos
Not executable!Not executable! Contains information in a uniform Contains information in a uniform
formatformat ID, Name, Phone, etc. Examples: Inventory, Library Catalog
![Page 20: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/20.jpg)
DIT 2006 - Wolfe20
5 File, Records, Fields, and Data File, Records, Fields, and Data ItemsItems
![Page 21: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/21.jpg)
DIT 2006 - Wolfe21
5 Common Data TypesCommon Data Types
NumericNumericNumbersMathematical manipulation impliedReal, Integers, etc.
Character or String Character or String AlphanumericName, description, ID
DateDate Logical (Yes or No)Logical (Yes or No) MemoMemo
![Page 22: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/22.jpg)
DIT 2006 - Wolfe22
5 Data ModelingData Modeling
An effective data model helps …An effective data model helps …Enter, find, and manipulate dataUnderstand relationships between
entitiesCreate efficient data structure
TechniquesTechniquesShow Entities, Relationships, and
CardinalityEntity-Relationship (E-R) Diagrams
![Page 23: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/23.jpg)
DIT 2006 - Wolfe23
5 Data ModelingData Modeling
Entities and RelationshipsEntities and Relationships
Employee DepartmentBelongsto
![Page 24: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/24.jpg)
DIT 2006 - Wolfe24
5 Data ModelingData Modeling
CardinalityCardinality ... The number of occurrences ... The number of occurrences that can exist between two record typesthat can exist between two record types
One-to-oneOne-to-one One-to-manyOne-to-many Many-to-Many-to-
manymany
Employee
S.S.N.Employee
Phone No.Employee
Certificate
![Page 25: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/25.jpg)
DIT 2006 - Wolfe25
5 Is it a good data model?Is it a good data model?
Query1:Query1: Find ID numbers of students Find ID numbers of students in MGT 2006.in MGT 2006.
Query2:Query2: Find Courses that Student Find Courses that Student 12000 is taking.12000 is taking.
Insert:Insert: Add Student 32222, William Add Student 32222, William Gates, an MIS major.Gates, an MIS major.
Delete:Delete: Student 13111 drops MGT Student 13111 drops MGT 2006, which is the only course she 2006, which is the only course she takes.takes.
Update:Update: Student 31111 switches to Student 31111 switches to MIS major.MIS major.
![Page 26: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/26.jpg)
DIT 2006 - Wolfe26
5 Data ModelsData Models
Hierarchical Data ModelHierarchical Data Model Network Data ModelNetwork Data Model Relational Data ModelRelational Data Model Object-oriented Data ModelObject-oriented Data Model
Course
Student
![Page 27: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/27.jpg)
DIT 2006 - Wolfe27
5 Hierarchical Data ModelsHierarchical Data Models
Course Instructor Room Time
MGT 2006 Barney B214 MWF 06:00
12000 Day, Ken MIS A 13111 Smith, Doris ACC B 15000 Jones, Mary MKT B
Student ID Name Major Grade
MKT 1000 Bond B201 MWF 12:00
25000 Brown, James ACC A 31111 Dolk, Sean MKT B
LAW 4101 Judy B120 TTH 1:00
12000 Day, Ken MIS B 31111 Dolk, Sean MKT A
![Page 28: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/28.jpg)
DIT 2006 - Wolfe28
5 Data ModelsData Models
Hierarchical Data ModelHierarchical Data Model Network Data ModelNetwork Data Model Relational Data ModelRelational Data Model Object-oriented Data ModelObject-oriented Data Model
Course StudentLink
Nodes
![Page 29: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/29.jpg)
DIT 2006 - Wolfe29
5 Network Data ModelNetwork Data Model
MGT 2006 Barney
MKT 1000 Bond
LAW 4101 Judy
A
B
B
A
B
B
A
12000 Day, Ken MIS
13111 Smith, Doris ACC
15000 Jones, Mary MKT
25000 Brown, James ACC
31111 Dolk, Sean MKT
LinkNodes
![Page 30: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/30.jpg)
DIT 2006 - Wolfe30
5 Data ModelsData Models
Hierarchical Data ModelHierarchical Data Model Network Data ModelNetwork Data Model Relational Data ModelRelational Data Model Object-oriented Data ModelObject-oriented Data Model
Course Instructor Room Time
MGT 2006 Barney B214 MWF 06:00MKT 1000 Bond B201 MWF 12:00LAW 4101 Judy B120 TTH 1:00
![Page 31: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/31.jpg)
DIT 2006 - Wolfe31
5 Relational Data ModelRelational Data Model
Course Instructor Room Time
MGT 2006 Barney B214 MWF 06:00MKT 1000 Bond B201 MWF 12:00LAW 4101 Judy B120 TTH 1:00
12000 Day, Ken MIS13111 Smith, Doris ACC15000 Jones, Mary MKT25000 Brown, James ACC31111 Dolk, Sean MKT
Student ID Name Major
Course Student ID Grade
MGT 2006 12000 AMGT 2006 13111 BMGT 2006 15000 BMKT 1000 25000 AMKT 1000 31111 BLAW 4101 12000 BLAW 4101 31111 A
![Page 32: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/32.jpg)
DIT 2006 - Wolfe32
5 Software for Data ManagementSoftware for Data Management
Custom Software (Programming Custom Software (Programming Languages)Languages)
File management SoftwareFile management Software DBMSDBMS Web-Enabled SoftwareWeb-Enabled Software
![Page 33: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/33.jpg)
DIT 2006 - Wolfe33
5 Object-Oriented DBMSObject-Oriented DBMS
![Page 34: Database Management Ch.14-A,B,C,D](https://reader035.fdocuments.in/reader035/viewer/2022081520/56814e6f550346895dbc0c60/html5/thumbnails/34.jpg)
DIT 2006 - Wolfe34
5 Web-Enabled ToolsWeb-Enabled Tools
Common Gateway Interface (CGI )Common Gateway Interface (CGI ) allows you to pass requests from the allows you to pass requests from the Web browser to the database and Web browser to the database and back again using programs written in back again using programs written in languages such as Perl, C, and Visual languages such as Perl, C, and Visual Basic.Basic.
Web application development tools Web application development tools provide a way to link HTML pages to provide a way to link HTML pages to a database without programming. a database without programming. (E.g., Cold Fusion)(E.g., Cold Fusion)