CSC 282 · Database Programming
Our notes
2 min readTwo kinds of programming
| Scientific programming | Business programming |
|---|---|
| little data, heavy calculation | lots of data, simple calculation |
| results are numbers and graphs | results are records, lists, bills, reports |
| runs once per problem | runs every day, month, semester |
| precision of the method matters | accuracy, security and audit of the data matter |
A payroll, a bank's account system, a hostel allocation list or UNIPORT's course registration are business (data processing) systems.
Typical features
- Large volumes of records: thousands of students, millions of transactions.
- Input, processing, output in cycles: capture transactions, update master files, print reports.
- Files that last: a master file (students, customers, stock) kept for years, and transaction files (today's payments) that update it.
- Validation: checking input before it is stored (a matric number in the right format, a date that exists, a score from 0 to 100).
- Reports: lists, totals, sub-totals by group, exception reports ("students owing fees").
- Security and control: who may see or change which data, backups, audit trails.
- Many users at once: two cashiers must not sell the last item twice.
Batch and online processing
- Batch: transactions are collected and processed together (end-of-day posting, monthly payroll). Cheap and simple; data is out of date between runs.
- Online / real time: each transaction updates the files at once (ATM withdrawals, airline seats).
Languages
Early business systems used COBOL, whose records and file sections still shape the vocabulary. Desktop database tools (dBase in the 1980s-90s, then MS Access) joined a data store with a simple programming language and forms. Today business programs usually talk to a database server (MySQL, PostgreSQL, SQL Server, Oracle) through SQL, from languages such as Python, Java, C#, PHP or JavaScript.
Exams usually ask
- Compare business and scientific programming.
- Explain master and transaction files, batch and online processing.
- List what validation checks are and give examples.
Common mistake
Thinking business programs are "easy" because the arithmetic is simple. The hard part is correct, consistent and secure data for years, for many users.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick COBOL
(opens en.wikipedia.org in a new tab)
Wikipedia, COBOL, CC BY-SA 4.0 · licence
-
Business software
(opens en.wikipedia.org in a new tab)
Wikipedia, Business software, CC BY-SA 4.0 · licence
-
Data processing
(opens en.wikipedia.org in a new tab)
Wikipedia, Data processing, CC BY-SA 4.0 · licence
-
Batch processing
(opens en.wikipedia.org in a new tab)
Wikipedia, Batch processing, CC BY-SA 4.0 · licence
-
NOUN CIT 304: Data Management
NOUN course book (PDF, about 6.9 MB: best on Wi-Fi). Files, databases, the relational model and SQL.
(opens nou.edu.ng in a new tab)
-
NOUN CIT 213: Elementary Data Processing
NOUN course book (PDF, about 0.9 MB). Fields, records, files and processing data.
(opens nou.edu.ng in a new tab)
-
NOUN CIT 202: Application of Computers in Business
NOUN course book (PDF, about 1.6 MB). Computers in business data processing.
(opens nou.edu.ng in a new tab)
Watch
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.