Unit 1
Unit 1
Unit – 1
Dr. D. Sudheer
Assistant Professor
Department of CSE
VNR VJIET
• Enterprise Information
❖ Sales: For customer, product, and purchase
information.
❖ Accounting: For payments, receipts, account
balances, assets and other accounting information.
❖ Human resources: For information about
employees, salaries, payroll taxes, and benefits, and
for generation of paychecks.
❖ Manufacturing: For management of the supply
chain and for tracking production of items in
factories, inventories of items in warehouses and
stores, and orders for items.
❖ Online retailers: For sales data noted above plus
online order tracking, generation
DBMS PPT © Dr. D. SUDHEER
of 4
recommendation lists, and maintenance of online
• Banking and Finance
❖ Banking: For customer information, accounts, loans,
and banking transactions.
❖ Credit card transactions: For purchases on credit
cards and generation of monthly statements.
❖ Finance: For storing information about holdings,
sales, and purchases of financial instruments such as
stocks and bonds; also for storing real-time. market
data to enable online trading by customers and
automated trading by the firm.
• Universities:
❖ For student information, course registrations, and
grades (in addition to standard enterprise
information such as human resources and
accounting)
DBMS PPT © Dr. D. SUDHEER 5
• Airlines: For reservations and schedule information.
Airlines were among the first to use databases in a
geographically distributed manner.
• Telecommunication: For keeping records of calls
made, generating monthly bills, maintaining balances
on prepaid calling cards, and storing information
about the communication networks.
Physical level
Logical level
View level
DBMS PPT © Dr. D. SUDHEER 11
Physical level
How the data are stored.
Data base administrators will be aware of certain
details collected from the data base programmers.
Lowest level of abstraction.
Logical level
What data is stored in the database and what
relationship exist among those data.
Here each record is describe by the type
definition and the interrelationship among all the
records.
Programmers & data administrators works at this
level.
Second level of abstraction. DBMS PPT © Dr. D. SUDHEER 12
View level
⚫ This is the highest level of abstraction which
describes only a part of the entire program.
⚫ The system may provide many views from the same
database.
⚫ Application programs hide details of data types.
⚫ Views can also hide information for security
purposes.
⚫ Database users will see these views.
Instances and Schemas
• The overall design of the database is called the
database schema.
• The collection of information stored in the database
at a particular moment is called an instance
ID : char (5);
name : char (20);
dept name : char (20);
salary : numeric (8,2);
end;
Database Administrator
One of the main reasons for using DBMSs is to have
central control of both the data and the programs that
access those data. A person who has such central
control over the system is called a database
administrator (DBA).
DBMS PPT © Dr. D. SUDHEER 30
DBA controls below opoerations:
Schema definition: The DBA creates the original
database schema by executing a set of data definition
statements in the DDL.
Storage structure and access-method definition.
Schema and physical-organization modification.
The DBA carries out changes to the schema and
physical organization to reflect the changing needs of
the organization, or to alter the physical organization
to improve performance.
Granting of authorization for data access. By
granting different types of authorization, the database
administrator can regulate which parts of the
database various users can access.
1. Representing Requirements
2. Conceptual Design
3. Specifications of Functional Requirements
4. Logical Design Phase
5. Physical Design Phase
1. Representing Requirements
2. Conceptual Design
3. Specifications of Functional Requirements
4. Logical Design Phase
5. Physical Design Phase
Conceptual Design
The Designer choose the data model and translates the
requirements to conceptual schema of chosen model.
1. Representing Requirements
2. Conceptual Design
3. Specifications of Functional Requirements
4. Logical Design Phase
5. Physical Design Phase
Specifications of Functional
Requirements
The fully developed conceptual schema also indicates
the functional requirements of the enterprise. Like
operations of users (modifying, updating and
searching etc.)
1. Representing Requirements
2. Conceptual Design
3. Specifications of Functional Requirements
4. Logical Design Phase
5. Physical Design Phase
1. Representing Requirements
2. Conceptual Design
3. Specifications of Functional Requirements
4. Logical Design Phase
5. Physical Design Phase
R
(relation
)
Ternary degree=3
Attribute Types:
Simple and composite
Single-valued and multi-valued
Derived attribute
A.
a. one-to-one and b. one-to-many
3. Keys
• We must have a way to specify how entities within a
given entity set are distinguished.
• The entities must be identified uniquely by values of
attributes.
• No two entities in an entity set are allowed to have
exactly the same value for all attributes.
• A key for an entity is a set of attributes that suffice to
DBMS PPT © Dr. D. SUDHEER 58
distinguish entities from each other.
Super Key:
• We can define a super key as a set of those keys that identify a row
or a tuple uniquely.
• It is the superset where the candidate key is a part of the super key
only
Role
s indicate roles in E-R diagrams by labeling the lines
We
that connect diamonds to rectangles.
Specialization/generalization