Beruflich Dokumente
Kultur Dokumente
Lecture 37
Database Software
1
Data Management
Keeping track of a few dozen data items is straight forward However, dealing with situations that involve significant number of data items, requires more attention to the data handling process
Dealing with millions - even billions - of interrelated data items requires even more careful thought 3
Data Entry
New titles are added every day
Data Integrity
Integrity refers to maintaining the correctness and consistency of the data
Correctness: Free from errors Consistency: No conflict among related data items
10
11
12
13
DBMS (2)
A DBMS takes care of the storage, retrieval, and management of large data sets on a database It provides SW tools needed to organize & manipulate that data in a flexible manner It includes facilities for:
Adding, deleting, and modifying data Making queries about the stored data Producing reports summarizing the required 14 contents
Database (1)
A collection of data organized in such a fashion that the computer can quickly search for a desired data item
15
OS Independence (2)
It provides an OS-independent view of the data to the user, making data manipulation and management much more convenient
16
17
However, for small sets of data say, consisting of several tens of kB they can provide reasonable performance 19
6. Effort required for adding a new field to all the records of a flat-file is much greater than adding a new column to the table
21
CONCLUSION: Tabular storage is better than flat-file storage We will continue on with tables theme today
22
We will find out about relational databases We will also implement a simple relational database
23
Lets continue on with the tabular approach We stored data in a table last time, and liked it Lets revisit that table and then put together another one
24
Altaf Khan BholiBooks Bhola BholiBooks Champion Smith Sahib Zamin Geoffry Good Publishers Sung-eKilometer Publishers
29
25
Another table
Customer Title Good Bye Aadil Ali Mr. Bhola The Terrible Aadil Ali Twins Calculus & Miftah Analytical Muslim Geometry Karen Good Bye Kaur Mr. Bhola Shipment Type
That is, a program can use matching values in 2 tables to relate info in one to info in the other
27
28
Can you now process this table to find the answer to our question
?
29
31
RDBMS
Relational DBMS software Contains facilities for creating, populating, modifying, and querying relational databases Examples:
Access FileMaker Pro SQL Server Oracle DB2 Objectivity/DB MySQL Postgres
32
33
These two processing delays, the associated processing, and time spent in writing and maintaining the translation code are the key disadvantages of the current RDBMSes
34
Solution?
Dont have time to discuss that, but try searching the Web on the following terms:
Object-oriented databases Object-relational databases
35
Server-based/Multi-user/Enterprise (GB-TB)
Examples: HBL; Amazon.com Typical DMBS: Oracle, DB2
Forms can be used for entering, editing, or viewing data, one record at a time 37
Data normalization is the process of efficiently organizing data in a database. There are two goals of the normalization process:
Eliminate redundant data Storing only related data in a table
38
Before we do a demo, let me just mention my favorite database application: Data Mining
39
Data Mining
The process of analyzing large databases to identify patterns Example: Mining the sales records from a BholiBooks could identify interesting shopping patterns like 53% of customers who bought book A also bought book B. This pattern can be put to good use! Data mining often utilizes intelligent systems techniques 40
41
Assignment # 13
Develop a database by designing two tables, populate them, and then generate a report
Further information on this assignment will be provided to you on the CS101 Web site
42
Access Tutorial
http://www.microsoft.com/education/DOWNLOADS /tutorials/classroom/office2k/acc2000.doc
43
Todays Lecture:
In this final lecture on productivity software, we continued our discussion from last week on data management We found out about relational databases We also implemented a simple relational database
44