Professional Documents
Culture Documents
Unit 3
Unit 3
INFORMATION
5. Query processing
6. SQL
7. Concurrency Management
Contd…
2. Direct file structure 5
the system
Contd…
3. Indexed sequential file 6
structure
lists”.
access/retrieval of data
File structures 10
File structure not only affect the access to data or record but
(DBMS) Database
Management System Database
Application
program
Components of DBMS 14
1. Data dictionary/directory:
Contd…
15
2. Data Language: Programmers use a special
“FIND,GET&INSERT Contd…
16
3. Teleprocessing monitors:
Contd…
17
4. Application development tools:
Engineering)
Contd…
18
5. Security software:
damaged or destroyed.
Contd…
20
7. Report writers:
Contd…
8. Query Language:
21
It is a set of commands – primarily for accessing data from a database
FROM CUSTOMER
WHERE
COUNTRY=“IN”
Contd…
23
10. Web server software:
administrator
security
View of data 25
Any data base contains two types of data
Contd…
26
The schema – is a description of the logical
Man power
Database
Payroll
Employee Data
Database base
r2
r5
r1 r3
r6
r4
Network Database Model 30
r2
r5
r1 r3
r6
r4
Relational Database model 31
R1 R5 R6 R7
R2 X Y Z
R3 X Y Z
R4 x y z
Object Oriented Database model 32
Objects that have the same set of attributes and methods are
grouped into a class
r1 r2 r3
Query Decomposer
Query optimizer
2. Query normalization
3. Semantic analysis
4. Query simplifier
5. Query restructuring
1. CHARACTER(n) 6. DECIMAL (p , q)
2. CHARACTER 7. INTEGER
VARYING(n) 8. SMALLINT
4. BIT VARYING(n)
5. NUMERIC (p , q)
SQL commands 41
Lines of SQL codes – SQL application to perform simple
Syntax:
Syntax:
syntax:
VALUES (value-1,value-2,value-3….value-n);
UPDATE table-name
Contd…
DELETE statement:
47
Syntax:
(e.g.)
1. GRANT 2.REVOKE
certain table
column
column
51
Advantages: Programming
1. Locking file
2. Locking record
4. Versioning
Data Warehousing 54
2. Integrity
3. Time variant
4. Non volatile
Architecture/structure of data 56
warehouse
c. Multidimensional database
b. Applications
d. Data mining
e. Data marts
mart
2. Relational OLAP
62