Beruflich Dokumente
Kultur Dokumente
requests all records in which the NAME field is SMITH and the AGE
DBMS ‘DISCUSSION’ (3)
field is greater than 35. The set of rules for constructing queries is
known as a query language. Different DBMSs support different
query
languages, such as called SQL (structured query language).
1. Characters:-
Data type specifies the type of data that can be stored in the field
e.g.
First name and last name of employees
A primary key that consists of two or more attributes is
known as composite key.
For example Registration Number and Subject name.
Invoicing Reports
Invoicing programs
Inventory
Inventory Reports
control
control programs
Management
Management Reports
inquiries
inquiries programs
Traditional Approach
Disadvantages:---
1. Data Redundancy:--
A duplication of data in one or two files.
Flaw is that changes to the data might be in
one file and not in other file.
The order processing department might have
updated its file to new address but the billing
department is still sending bills to old address
Traditional Approach
Disadvantages:---
2. Data Integrity:--
The degree to which the data in anyone file is
accurate.
It is achieved by eliminating the data redundancy.
Business operation requires a high degree of data
integrity which is not achieved by file system.
For example keeping a customer's address in only
one file is not possible
TRADITIONAL APPROACH
Disadvantages:---
Program-data dependence
A situation in which program and data organized for one
application are incompatible with programs and data
organized differently for another application
Traditional Approach
Disadvantages:---
3. Lengthy development time:--
Reports
Payroll
program
Payroll data
Inventory Inventory
Reports
data program
Database
management
Invoicing system
Data Invoicing
Reports
program
Other
data
Other Reports
programs
Increased vulnerability
Traditional Vs. Database Approach
Flat file
single user
Multiple users
DATABASE MANAGEMENT ADMINISTRATION
Microsoft Access
SQL SEVER
Oracle
My SQL
DATA BASE ADMINISTRATOR
Data
Hierarchical extraction
databases process
Network
databases Data
cleanup
process
Flat files
Spreadsheets Data
End user access wharehouse
Query and
analysis
tools
DATA WAREHOUSE
Schema
A description of the entire database. In a relational
database, the schema defines the tables, the fields in
each table, and the relationships between fields
and tables.
SCHEMAS AND SUBSCHEMAS
Subschema
Afile that contains a description of a subset of the
database and identifies which users can perform
modifications on the data items in that subset
It defines user view.
User View
description of
subset of schema.
DBMS FUNCTIONS
2. Creating and modifying the database
Schema and Subschema are entered into DBMS via DDL
DDL stands for data definition language.
“DDL is a collection of instructions and
commands used to define and describe data and
data relationships in a specific database.”
DD stands for Data Dictionary
“DD is the detailed description of data in a
database.”
Data Dictionary
NORTHWESTERN MANUFACTURING
Data model
Enterprise data modeling
Entity-relationship diagrams
DATA MODELLING
• Entity–relationship [ER]diagram:-
The data models that use the basic
graphical symbols to show the
organization of and relationships
between data.
Up to you
If there is no proper name of the association
in the system then participants’ names of
abbreviations are used
NAMING
DEPT EMP
STD BOOK
ENTITY-RELATIONSHIP DIAGRAM FOR A CUSTOMER
ORDERING DATABASE
Attributes
Last name Colour
Entities
First 1 M
Customer Order Product Name
name
1:M one-to-many
relationship
Identification Identification
number number
DATA MODEL
Project 1
Project 1 Project 2
76
Project Number Description Dept. Number
155 Payroll 257
498 Widgets 632
226 Sales manager 598