09.02.2015 Views

Lecture 1: Introduction to Database - Nubacad.com

Lecture 1: Introduction to Database - Nubacad.com

Lecture 1: Introduction to Database - Nubacad.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Disadvantages of File Processing System (cont..)<br />

• Integrity Problems: The data values may need <strong>to</strong><br />

satisfy some integrity constraints. For example the<br />

balance field Value must be grater than 5000. We<br />

have <strong>to</strong> handle this through program code in file<br />

processing systems. But in database we can declare<br />

the integrity constraints along with definition itself.<br />

• A<strong>to</strong>micity Problem: It is difficult <strong>to</strong> ensure a<strong>to</strong>micity<br />

in file processing system.<br />

• Example: transferring $100 from Account A <strong>to</strong><br />

account B. If a failure occurs during execution<br />

there could be situation like $100 is deducted from<br />

Account A and not credited in Account B.<br />

13<br />

Disadvantages of File Processing System (cont..)<br />

• Concurrent Access anomalies: If multiple users<br />

are updating the same data simultaneously it will<br />

result in inconsistent data state. In file processing<br />

system it is very difficult <strong>to</strong> handle this using program<br />

code. This results in concurrent access anomalies.<br />

Security Problems: Enforcing Security Constraints<br />

in file processing system is very difficult as the<br />

application programs are added <strong>to</strong> the system in an<br />

ad-hoc manner.<br />

• <strong>Database</strong> systems offer solutions <strong>to</strong> all the above<br />

problems.<br />

14<br />

The <strong>Database</strong> Approach<br />

Advantages of using a <strong>Database</strong> Approach<br />

General<br />

Ledger<br />

Production<br />

Planning<br />

Invoicing<br />

Despatch<br />

Personnel<br />

Payroll<br />

Inven<strong>to</strong>ry<br />

Order<br />

Entry<br />

• Flexible Data Access: <strong>Database</strong> Management Systems<br />

have various <strong>to</strong>ols <strong>to</strong> manipulate, query, or report data,<br />

such as Structured Query Language (SQL), and Report<br />

Genera<strong>to</strong>rs. Hence:<br />

• Selected data is easily retrieved<br />

• A DBMS can contain different data views for different<br />

users<br />

• Improved Data Integrity: Modern DBMS consist of<br />

various <strong>to</strong>ols and methods <strong>to</strong>:<br />

• ensure that data is correct, consistent, and current<br />

• verify data input and check whether data is<br />

„reasonable‟.<br />

15<br />

16<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!