Comprehensive theory, key formulas, diagrams, and memory aids for Accounting System using Database Management System.
A database is an organised collection of related data, and a Database Management System (DBMS) is the software that manages, stores, retrieves and protects this data. In an accounting context, the DBMS stores all the accounting data such as ledgers, vouchers, customers, suppliers and inventory in a structured form. An accounting system built on a DBMS allows multiple users to access the same data simultaneously, keeps the data consistent and secure, and produces reliable reports without duplication. This chapter explains the concepts of database, DBMS, its advantages and limitations, and the structure of an accounting system using a DBMS.
The most widely used model of a database is the relational database, in which data is stored in tables consisting of rows and columns. The relational model uses keys to link the tables so that information from different tables can be combined. In accounting, for example, the vouchers table, the ledger table and the accounts table are linked through common fields. This chapter also explains concepts such as primary keys, foreign keys, querying and the advantages of the relational database over file-based systems.
A database is a well-organised collection of data that can be accessed, managed and updated easily. Examples are a library catalogue, a customer list and a database of vouchers. A Database Management System (DBMS) is the software that creates, maintains and manipulates the database. It provides the tools to enter, store, retrieve, update and organise data and ensures that data is shared among users in a controlled way.
Common examples of DBMS software are MySQL, Oracle, Microsoft Access and SQL Server. These systems support the storage of the accounting data of a business and allow the accountants to query the data and generate reports.
The relational database model stores data in the form of tables, also called relations. Each table is made up of rows (records or tuples) and columns (fields or attributes). For example, a customer table may have the fields customer ID, name and address. The tables are related to one another through keys.
A primary key is a field or combination of fields that uniquely identifies each record in a table. For example, the customer ID in the customer table is the primary key because no two customers can have the same ID.
A foreign key is a field in one table that refers to the primary key of another table, creating a link between the two tables. For example, the account number in the vouchers table may be a foreign key referring to the accounts table.
A query is a request for data from the database, usually written in a language such as SQL. For example, a query can extract all the sales made to a particular customer.
An accounting system based on a relational DBMS stores the accounting data in tables such as:
The voucher table is linked to the accounts table through the account numbers, so that a complete ledger can be generated automatically. The transaction data is entered once, and the system generates the ledger, the trial balance and the final accounts through queries and reports.
In a computerised accounting system, the accounts are grouped according to their nature. For example:
| Group | Examples |
|---|---|
| Capital | Capital account |
| Liabilities | Loans, creditors |
| Assets | Fixed assets, current assets |
| Income | Sales, interest received |
| Expense | Purchases, salaries, rent |
Grouping helps in the automatic preparation of the Profit and Loss Account and the Balance Sheet, because the balances of the income and expense groups are transferred to the Profit and Loss Account, and the balances of the asset, liability and capital groups are shown in the Balance Sheet.
| Term | Meaning |
|---|---|
| Database | Organised collection of related data |
| DBMS | Software to manage the database |
| Table | Rows and columns of related data |
| Record | A row in a table |
| Field | A column in a table |
| Primary key | Uniquely identifies each record |
| Foreign key | Links a table to another table |
| Advantages | Limitations |
|---|---|
| Reduced redundancy | High cost |
| Data consistency | Complex system |
| Data sharing | Needs trained staff |
| Security and integrity | System failure risk |
| Easy reporting | Needs regular backups |
| Group | Type |
|---|---|
| Assets | Balance Sheet item |
| Liabilities | Balance Sheet item |
| Capital | Balance Sheet item |
| Income | Profit and Loss item |
| Expense | Profit and Loss item |
graph TD
A["Accounting System using DBMS"] --> B["Database and DBMS"]
B --> C["Organised collection of data and its management"]
A --> D["Relational Model"]
D --> E["Tables, rows and columns"]
D --> F["Primary key and foreign key"]
D --> G["Queries in SQL"]
A --> H["Accounting Tables"]
H --> I["Accounts, vouchers, customers, suppliers"]
A --> J["Advantages"]
J --> K["No redundancy, consistency, sharing, security"]
A --> L["Grouping of Accounts"]
L --> M["Balance Sheet and Profit and Loss groups"]
A --> N["Reports"]
N --> O["Ledger, trial balance, final accounts"]
An accounting system built on a Database Management System organises the accounting data into related tables and processes it efficiently through keys and queries. The relational model removes redundancy, maintains consistency and allows data to be shared securely among users. By grouping the accounts properly, the system generates the ledger, trial balance and final accounts automatically. Although a DBMS involves higher cost and complexity, its advantages of accuracy, security, sharing and easy reporting make it the foundation of modern computerised accounting.