340 likes | 457 Views
Database Management Ch.14-A,B,C,D. FALL 2000 Rob Wolfe. 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.
E N D
Database ManagementCh.14-A,B,C,D FALL 2000 Rob Wolfe
What is data? da-tumn [L, fr. neut. of datus] 1pl.da-ta : something given or admitted esp. as a basis for reasoning or inference 2pl.da-tums : something used as a basis for calculating or measuring DIT 2006 - Wolfe
Managing Data • Paper-based record-keeping approach • Personal / Less official data • Still viable • Electronic record-keeping approaches • File systems • Database systems DIT 2006 - Wolfe
File Systems • A file system is a collection of electronic data files that are specifically designed for and around individual applications. • Efficient • Inflexible • Important! - “Not every computerized record-keeping system is a database system.” DIT 2006 - Wolfe
File Systems DF DF DF R L B DIT 2006 - Wolfe
Database Systems • A database systemis a computerized record-keeping system that maintains information and makes it available to multiple users upon demand. [Date] • Requirements • Data model • DBA • DBMS DIT 2006 - Wolfe
Data Modeling ID? Name? • Entity • Attribute • Value • Instance Student Major? Address? Sex? Class? ID: 1234567 Name:Jack Jones Class: 2000 Sex: M Addr: 123 Main Street ... DIT 2006 - Wolfe
Data Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Table • Field • Data Item • Record • Entity • Attribute • Value • Instance ID: 1234567 Name:Jack Jones Class: 2000 Sex: M Addr: 123 Main Street ... DIT 2006 - Wolfe
Data Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Table • Field • Data Item • Record • Entity • Attribute • Value • Instance DIT 2006 - Wolfe
Data Modeling • Hierarchical Data Model • Network Data Model • Relational Data Model • Object-oriented Data Model Fields Primary Key Records DIT 2006 - Wolfe
Database Management System • A Database Management System(DBMS) is a piece of software that defines the database structure and performs data manipulation to the records residing in a database • Selection of a DBMS depends on data model and data management environment. • Examples … Access, Oracle, Sybase, DB2, Informix, SQLServer DIT 2006 - Wolfe
Database Administrator • A Database Administrator (DBA) is responsible for … • Data modeling & database establishment • Maintenance of data dictionary • Management and upgrade of DBMS • User support & training • Database system documentation DIT 2006 - Wolfe
When it comes to database systems ... • Remember these two keywords! • Integration • Sharing • These two words make the difference between database systems and file systems! DIT 2006 - Wolfe
Database Systems DBMS B DB DBA R L DIT 2006 - Wolfe
Why Database Systems? • Advantages over traditional (paper-based) record-keeping systems • Compact • Speedy • Less Drudgery • Current • Available DIT 2006 - Wolfe
Why Database Systems? • Advantages over file systems due to integration and sharing through centralized control • Reduced Redundancy • Data integrity (Rid inconsistency) • Standards • Security • Better Communication DIT 2006 - Wolfe
Can you tell them apart? • Database • Database Management System (DBMS) • Database System DIT 2006 - Wolfe
Can I call this a database system? • Microsoft Access • Personal Computer • Single User DIT 2006 - Wolfe
What is a “Data File”? Possible definitions: “A data file is any file that … ” • Contains data • Documents • Spreadsheets • Sounds, Graphics, Videos • Not executable! • Contains information in a uniform format • ID, Name, Phone, etc. • Examples: Inventory, Library Catalog DIT 2006 - Wolfe
File, Records, Fields, and Data Items DIT 2006 - Wolfe
Common Data Types • Numeric • Numbers • Mathematical manipulation implied • Real, Integers, etc. • Character or String • Alphanumeric • Name, description, ID • Date • Logical (Yes or No) • Memo DIT 2006 - Wolfe
Data Modeling • An effective data model helps … • Enter, find, and manipulate data • Understand relationships between entities • Create efficient data structure • Techniques • Show Entities, Relationships, and Cardinality • Entity-Relationship (E-R) Diagrams DIT 2006 - Wolfe
Data Modeling • Entities and Relationships Belongs to Employee Department DIT 2006 - Wolfe
Data Modeling Employee Employee Employee S.S.N. Phone No. Certificate Cardinality ... The number of occurrences that can exist between two record types • One-to-one • One-to-many • Many-to-many DIT 2006 - Wolfe
Is it a good data model? • Query1: Find ID numbers of students in MGT 2006. • Query2: Find Courses that Student 12000 is taking. • Insert: Add Student 32222, William Gates, an MIS major. • Delete: Student 13111 drops MGT 2006, which is the only course she takes. • Update: Student 31111 switches to MIS major. DIT 2006 - Wolfe
Data Models • Hierarchical Data Model • Network Data Model • Relational Data Model • Object-oriented Data Model Course Student DIT 2006 - Wolfe
Hierarchical Data Models Course Instructor Room Time MGT 2006 Barney B214 MWF 06:00 Student ID Name Major Grade 12000 Day, Ken MIS A 13111 Smith, Doris ACC B 15000 Jones, Mary MKT B 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 DIT 2006 - Wolfe
Data Models • Hierarchical Data Model • Network Data Model • Relational Data Model • Object-oriented Data Model Link Nodes Course Student DIT 2006 - Wolfe
Network Data Model A 12000 Day, Ken MIS MGT 2006 Barney B B 13111 Smith, Doris ACC A 15000 Jones, Mary MKT MKT 1000 Bond B 25000 Brown, James ACC B LAW 4101 Judy 31111 Dolk, Sean MKT A Link Nodes DIT 2006 - Wolfe
Data Models • Hierarchical Data Model • Network Data Model • Relational Data Model • Object-oriented Data Model Course Instructor Room Time MGT 2006 Barney B214 MWF 06:00 MKT 1000 Bond B201 MWF 12:00 LAW 4101 Judy B120 TTH 1:00 DIT 2006 - Wolfe
Relational Data Model Course Instructor Room Time MGT 2006 Barney B214 MWF 06:00 MKT 1000 Bond B201 MWF 12:00 LAW 4101 Judy B120 TTH 1:00 Student ID Name Major 12000 Day, Ken MIS 13111 Smith, Doris ACC 15000 Jones, Mary MKT 25000 Brown, James ACC 31111 Dolk, Sean MKT Course Student ID Grade MGT 2006 12000 A MGT 2006 13111 B MGT 2006 15000 B MKT 1000 25000 A MKT 1000 31111 B LAW 4101 12000 B LAW 4101 31111 A DIT 2006 - Wolfe
Software for Data Management • Custom Software (Programming Languages) • File management Software • DBMS • Web-Enabled Software DIT 2006 - Wolfe
Object-Oriented DBMS DIT 2006 - Wolfe
Web-Enabled Tools • Common Gateway Interface (CGI ) allows you to pass requests from the Web browser to the database and back again using programs written in languages such as Perl, C, and Visual Basic. • Web application development tools provide a way to link HTML pages to a database without programming. (E.g., Cold Fusion) DIT 2006 - Wolfe