Professional Documents
Culture Documents
CS2005-Introduction to
Databases
Dr. Ejaz Ahmed
Spring 2022
About Instructor
1995
9
HEC-NCEAC Requirement
https://www.facebook.com/www.nextgendata.in/videos/587411898430780/
https://www.youtube.com/watch?v=DXhDXpSTykk
Difference
25
Need for information
• Businesses require decisions
• Decisions require information
• Nature of information varies with the nature
of business and decision
• Planning for business requires information
at regular interval
Create processes, Store data/ information,
Search data, Control data (rules/ best
practices), Access information
Dr. Ejaz Ahmed 26
What is IS?
• Interrelated components are working
together to collect, process, store and
disseminate information
Designing/ Modeling
Coding/ Programming
SQL Programming
Database (Data Storage)
Dr. Ejaz Ahmed 28
Attributes of IS
• Easily Availability
• Timelines
• Relevant to decision at hand
• Related to current business needs
Open your own account in a bank and use Debit Card for transactions
Dr. Ejaz Ahmed 30
The Need
35
Database
• A database is collection of stored
operational data used by application
systems of some particular enterprise
(C.J. Date)
– Paper Database
• Still contain a large portion of world's knowledge
– File Processing Systems
• Early batch processing of business data
– Database Management Systems (DBMS)
• Will cover in detail
Dr. Ejaz Ahmed 36
File Processing Systems
• Collection of application programs that
performs services for the end-users (e.g.
Reports)
• Each program defines and maintains its
own data
User 1 Application
programs
Data
Application Data
User 2 programs
• Duplication of data
– Same data is held by different programs. Wasted space
and potentially different values and/or different formats for
the same item.
• Atomicity of updates
– Failure may lead database to an inconsistent state with
partial updates carried out
– E.g. Transfer of funds from one account to another should
either be complete or incomplete, no in-between state
Database System
Data
DBMS
employee,
order, inventory,
and
customer data
47
Database Management System
(DBMS)
DBMS is a software package that enables user to create and
maintain databases. It facilitates:
– Defining a database that involves specifying the data
types, structures, and constraints for the data to be
stored in the database.
– Constructing a database which is the process of storing
the data.
– Manipulating a database such as functions of querying
and sharing the database objects, updating the
database, and generating reports from the data.
• Database and DBMS software together constitute a
database system.
Dr. Ejaz Ahmed 48
Examples DBMS
– Oracle
– IBM DB2
– Ingress
– Teradata
– MS SQL Server
– MS Access
– Amazon Aurora
– MySQL etc.
Form Processing & Report Processing Applications are build by using VB, DOT Net
or PHP programming. Reports can be developed by using Crystal Reports tool.
Query Processing can be managed by using vendors SQL tool or 3rd party tools such
As TOAD, SQL Developer etc.
Dr. Ejaz Ahmed 52
Data Accessing using DBMS
Order Filing
System
DBMS manages data resources like an operating system manages hardware resources
Dr. Ejaz Ahmed 55
Database System Environment
Dr. Ejaz
56Ahmed
DBMS Benefits
• Minimal data redundancy
• Consistency of data
• Integration of data
• Sharing of data
• Ease of application development
• Uniform security, privacy and integrity controls
• Data accessibility and responsiveness
• Reduced program maintenance
• Data independence
Dr. Ejaz Ahmed 57
DBMS related Applications
• SQL
• Forms/ Reports
• Web/ Portal
• GUI Client-Server (VB, C++, Java, Mobile)
• SAP/ OracleApps
• BI Applications (SAS, OracleWarehousing)
• Case Tools (Toad Modeler, Enterprise
Architect, VISIO etc)
Dr. Ejaz Ahmed 58
Components of DBMS
Environment
User 1 Application
programs
DBMS
Database or
Data
User 2 Application
programs
Key Value
Key Value
Key Value
Analytical (OLAP)
Graph
Document