Unit - 2_Computerized Accounting System_Notes
Unit - 2_Computerized Accounting System_Notes
Advantages of CAS
• Universal Application of all accounting activities
• Transactions can be done anywhere and anytime
• Shortens the time period for almost all accounting processes
• Ease of use
• Easy to process voluminous data
• Codification is possible
• Accurate information
• Scalable to any number of records
• Reliable to failures and data loss
• Aids management in decision making processes by providing management reports
Disadvantages of CAS
• Needs heavy initial investments for computerization
• Security and privacy threats
• Loss of data in case of system failures
• An artificial device (without intelligence)
• Possibility of manipulations
• Not affordable by small firms
• Requires training on part of accountants and other users
• High cost of maintenance
• System may be subjected to viruses/malwares or attackers
• Leads to unemployment
Introduction to Database
● A database is a structured and organized collection of related data.
● It is a set of interrelated files for real time processing.
● It may be defined as an application package used for efficient storage and retrieval of
data.
● Note:
○ A package software is a collection of programs/software that performs similar
functions or have similar features.
○ Example: Microsoft Office is a package software that consists of MS Word, MS
PowerPoint, MS Excel, MS Access, MS Outlook, etc. all dealing with data storage
and presentation.
Database Terminologies
● Entity:
○ This is the things / objects you are recording information about.
○ Example: Person, Employee, Country, Customers, Product, Library, etc.
● Attributes/Fields:
○ These are the characteristics that describe the entity.
○ For Example: If Employee is the entity, then its attributes may be:
■ Name
■ Employee ID
■ Age
■ Address
5th B.Com DSBM, BBSR Priyadarshini Nayak
● Record:
○ A record holds all the data relating to a single person or a single transaction, etc.
○ A record is a collection of fields.
○ A record may have as many numbers of fields as per required.
○ It usually gives an overall report regarding a particular member of the entity.
● Table:
○ It is a collection of records arranged in rows and columns.
○ Each column is an attribute value.
● An Organization Database:
○ It contains all the files within the organization.
○ For Example:
■ A College Database may contain the following files:
● Student File
● Employee File
● Course File
● Faculty File
● Non-Teaching Staff File
● Accounts File
Database Models
● Not all databases store data in the same way.
● This depends on the type of database software used.
● Types of Database Models:
○ Hierarchical Database Models
○ Network Database Models
○ Relational Database Models
○ Object Oriented Database Models
● For Example: MS Access Database software is based on the relational database
model.
5th B.Com DSBM, BBSR Priyadarshini Nayak
Primary Key
● A primary key is an attribute of the table that has the capability to uniquely identify
each record in that table.
● Properties of Primary Key:
○ It must be unique
○ It must not have duplicate entries
○ It cannot be NULL
Foreign Key
● A key that is a primary key of one table and a candidate key in another table.
● Used to link two tables in a database.
● For this we need to repeat some fields (attributes) in all the tables that needs to be
linked. These repeated fields are the common attributes among the tables.
● When we want to link data from different tables, then we have to define relationships
among those tables.
● This involves linking the primary key field of one table with a field in the other table.
● This linkage is performed by assigning foreign keys.
● Foreign key may be one field or a combination of attributes that can identify the
record from both the linked tables.
Database Query
● A query is the information that we want to retrieve or fetch from the database.
● When we want to extract any information from a database then this is referred to as
a “Query”.
● It is a fancy term used to describe the process of retrieving information from the
database.
● The result is a screen display that shows the information you want which have been
extracted from one or more tables.
Features of DBMS
● It allows us to create database files.
● It enables the users to add, delete, update or change data in the database.
● It facilitates in linking tables.
● It allows to query the database.
● The user can produce reports on screen or in printed form.
Functions of DBMS
● Storing, retrieving, and updating data.
● Creating program and data independence. Either one can be altered independently of
the other.
● Enforcing procedures for data integrity.
● Reducing data redundancy. Data are stored and maintained only once.
● Providing security facilities for defining users and enforcing authorizations. Access is
limited to authorized users by passwords or similar schemes.
● Reducing physical storage requirements by separating the logical and physical aspects
of the database.
Advantages of DBMS
● The DBMS makes the entry of the data to the system quick and easy.
● Data is organized in a way that minimizes data redundancy (re-entry of the same data
over and over).
● A DBMS allows the organization to have a central store of information, so that it can
be accessed as and when needed.
● DBMS can keep data secure by using authentication methods like passwords, IDs, etc.,
thereby limiting the access to only authorized persons.
● Better access to data for decision making as report creation is convenient.
● Easy data updates and retrievals.
● Reduced data redundancy and losses; and enhanced data integrity.
Disadvantages of DBMS
● The cost of the DBMS software is an overhead for most organizations.
● The designing and implementation is a complex process.
● Requires good amount of computer space as it deals with huge quantity of data.
● Data backup procedures are necessary for the security of data from losses.
● In case of database failure, the impact can be disturbing for the organization.
● Skilled personnel are required to manage and deal with database management
systems.
● In case of no skilled workforce, then additional training needs to be provided.
5th B.Com DSBM, BBSR Priyadarshini Nayak
MS Access DBMS
● Microsoft Access is a fully functional RDBMS.
● It provides all the features that are needed to manage large volumes of data.
● Any RDBMS categorizes its functional features as follows:
● Data Definition
● Data Manipulation
● Data Control
● Each of the above has its own set of queries (commands in SQL) and deals with a
specific type of task in the database management system.
MS Access Objects
● MS Access uses “objects" to help the user list and organize information, as well as
prepare specially designed reports. Access calls anything that can have a name as an
object.
● When you create a database, Access offers you Tables, Queries, Forms, Reports,
Macros, and Modules.
● Databases in Access are composed of many objects but the following are the major
objects:
● Tables
● Queries
● Forms
● Reports
● Together, these objects allow you to enter, store, analyze, and compile your data.
Object: Table
● Table is an object that is used to define and store data.
● When you create a new table, Access asks you to define fields which is also known as
column headings.
● Each field must have a unique name, and data type.
● Tables contain fields or columns that store different kinds of data, such as a name or
an address, and records or rows that collect all the information about a particular
instance of the subject/entity.
● You can define a primary key, one or more fields that have a unique value for each
record, and one or more indexes on each table to help retrieve your data more quickly.
5th B.Com DSBM, BBSR Priyadarshini Nayak
Object: Query
● Query is an object that provides a custom view of data from one or more tables.
● These are a way of searching for and compiling data from one or more tables.
● Running a query is like asking a detailed question of your database.
● When you build a query in Access, you are defining specific search conditions to find
exactly the data you want.
● In Access, you can use the graphical query by example facility or you can write
Structured Query Language (SQL) statements to create your queries.
● You can define queries like Select, Update, Insert, or Delete data.
Object: Form
● Form is an object in a database designed primarily for data input or display or for
control of application execution.
● You use forms to customize the presentation of data that your application extracts
from queries or tables.
● Forms are used for entering, modifying, and viewing records.
● The reason forms are used so often is that they are an easy way to guide people
toward entering data correctly.
● When you enter information into a form in Access, the data goes exactly where the
database designer wants it to go in one or more related tables.
Object: Report
● Report is an object in databases designed for formatting, calculating, printing, and
summarizing selected data.
● You can view a report on your screen before you print it.
● If forms are for input purposes, then reports are for output.
● Anything you plan to print deserves a report, whether it is a list of names and
addresses, a financial summary for a period, or a set of mailing labels.
● Reports are useful because they allow you to present components of your database
in an easy-to-read format.
● You can even customize a report's appearance to make it visually appealing.
● Access offers you the ability to create a report from any table or query.
5th B.Com DSBM, BBSR Priyadarshini Nayak
Object: Macro
● Macro object is a structured definition of one or more actions that you want Access
to perform in response to a defined event.
● An Access Macro is a script for doing some job. For example, to create a button which
opens a report, you could use a macro which will fire OpenReport action.
● You can include simple conditions in macros to specify when one or more actions in
the macro should be performed or skipped.
● You can use macros to open and execute queries, to open tables, or to print or view
reports.
● You can also run other macros or Visual Basic procedures from within a macro.
● Data macros can be attached directly to table events such as inserting new records,
editing existing records, or deleting records.
● Data macros in web apps can also be stand-alone objects that can be called from other
data macros or macro-objects.
Object: Module
● Module is an object in databases containing custom procedures that you code using
Visual Basic.
● Modules provide a more discrete flow of actions and allow you to trap errors.
● Everything that can be done in a macro can also be done in a module, but you don't
get the macro interface that prompts you what is needed for each action.
● Modules are far more powerful, and are essential if you plan to write code for a multi-
user environment, because macros cannot include error handling.
● Modules can be standalone objects containing functions that can be called from
anywhere in your application.
● They can be directly associated with a form or a report to respond to events on the
associated form or report.
● All RDBMS like MySQL, MS Access, Oracle, Sybase, Informix, Postgres and SQL Server
use SQL as the standard database language.
SQL Commands
Types of SQL Commands:
● Data Definition Language (DDL)
● Commands that define a database: Create, Alter, Drop
● Data Manipulation Language (DML)
● Commands that maintain & query a database: Insert, Update, Delete, Select
● Select command is also known as Data Query Language (DQL)
● Data Control Language (DCL)
● Commands that control a database like creating users and authorizing them:
Grant, Revoke
SQL Joins
There are different types of joins available in SQL:
● Inner Join: Returns rows when there is a match in both the tables.
● Left Join: Returns all rows from the left table, even if there are no matches in the right
table.
● Right Join: Returns all rows from the right table, even if there are no matches in the
left table.
● Full Join: Returns rows when there is a match in one of the tables.
● Self Join: It is used to join a table to itself as if the tables were to tables, temporarily
renaming at least one table in the SQL statement.
● Cartesian Join: Returns Cartesian product of the sets of records from the two or more
joined tables.