Documente Academic
Documente Profesional
Documente Cultură
MANAGEMENT SYSTEM
PRESENTED BY
Names
Roll No
Akhil Sawant
MF- 13
Bhavesh Patel
MM- 13 06
Durgesh Dhapre
MF 13
Saish Sawant
MI 13 08
Sunil Nair
MI 13 - 05
WHAT IS DBMS
DBMS stands for "Database Management System." In
short, a DBMS is a database program. Technically
speaking, it is a software system that uses a standard
method of cataloguing, retrieving, and running
queries on data. The DBMS manages incoming data,
organizes it, and provides ways for the data to be
modified or extracted by users or other programs.
Some DBMS examples include SQL Server, Oracle,
MySQL, Microsoft Access, PostgreSQL, FileMaker
and FoxPro.
RDBMS
Relational Database Management System
It is a database management system (DBMS) that is
based on the relational model as introduced by E. F.
Codd, in year 1970 of IBM's San Jose Research
Laboratory.
A way of saving and accessing data on disk storage.
Examples : SQL Server, Oracle, MySQL, Microsoft
Access
Data Safety
Concurrent Access
Fault Tolerance
Data Integrity
Scalability
Reporting
RDBMS BASICS
A DBMS Approach which manages data
(logically) as a collection of tables where data,
and data relationships, are represented by
common values in related tables.
A Table (file) consists of records, which consist of
attributes (fields), which relies on the storage of
various data types
Name
Address
SSN
Major
Courses Taken
Grades Received
Tuition Paid
Tuition Owed
Grants/Scholarships
Record
with attributes
Fields
which vary
Files
Database
Database Components:
A Database consists of
Files, which contain
Hernandez, Juan
123456789
72
2.42
Jones, Mary
234567890
102
3.87
RDBMS Restrictions/Conventions:
Each Relation MUST have a unique name
Student Table
Student id
Name
Address
Major
MI 03
Saish
Kalyan
IT
MI 05
Sunil
Mulund
Finance
MI 07
Akhil
Dadar
Marketing
MI 10
Durgesh
Thane
HR
Student Table
Balance Table
Student
Owed
Department
Student id
******
Dept
MF-01
28400
IT
12345
******
Finance
MF-08
36428
Accounting
65789
******
IT
MF-04
45750
Finance
90918
******
Marketing
Name
Address
Address
Major
MI 03
Saish
Kalyan
Veena apts
IT
MI 05
Sunil
Mulund
Beena apts
Finance
MI 07
Akhil
Dadar
Cadel road
Marketing
MI 10
Durgesh
Thane
Tina apts
HR
Name
Address
Major
MI 03
Saish
Kalyan
25.43
MI 05
Sunil
Mulund
Finance
MI 07
Akhil
Dadar
Marketing
MI 10
Durgesh
Thane
HR
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finance
A Total 64
Bytes of
Storage
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finance
234567890
Chung, Mei
37 5th St.
INFOSYS
345678901
Adams, John
54B Hague
Accounting
StudentID
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finace
345678901
Adams, John
54B Hague
Accounting
234567890
Chung, Mei
37 5th St.
INFOSYS
Is the
Same as
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finance
234567890
Chung, Mei
37 5th St.
INFOSYS
345678901
Adams, John
54B Hague
Accounting
Each
contains
64 Bytes
RDBMS key
Purpose
Define entity relationships
Determination
Knowing the value of a key field means you also know
(Determine) the values of the other fields
E.g., knowing StudentID means you know StudentName,
StudentAddress, etc.
StudentID
StudentName, StudentAddress
StudentAddress
StudentAddress
StudentID
Primary Key
Foreign Key
Candidate Key
Secondary Key
Composite Key
PRIMARY KEY
Each Relation MUST have a unique identifier or
Primary Key
StudentID
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finance
234567890
Chung, Mei
37 5th St.
INFOSYS
345678901
Adams, John
54B Hague
Accounting
*********
*********
*********
*********
FOREIGN KEY
In Order to relate two (or more) tables Foreign Key
must be used
Table Student
StudentID
Name
Address
Major
123456789
Saenz, Lupe
123 Mesa
Finance
234567890
Chung, Mei
37 5th St.
INFOSYS
345678901
Adams, John
54B Hague
Accounting
Table Department
A FOREIGN KEY in one
table
is a PRIMARY KEY In
another
DeptName
Chairman
Telephone
INFOSYS
Sircar, Sumit
555-1234
Marketing
McDaniel, C.
555-2345
Accounting
Courtney, H.
555-3456
RDBMS Operators:
SELECT
Choose All or Specific values from a table
SELECT ALL
Yields
Given:
Table Student
StudentID
Name
Address
StudentID
Name
Address
123456789
Saenz, Lupe
123 Mesa
123456789
Saenz, Lupe
123 Mesa
234567890
Chung, Mei
37 5th St.
234567890
Chung, Mei
37 5th St.
345678901
Adams, John
54B Hague
345678901
Adams, John
54B Hague
456789012
Elam, Mary
123-22 E St.
456789012
Elam, Mary
123-22 E St.
567890123
Bush, G.W
555 Austin
567890123
Bush, G.W
555 Austin
678901234
Clinton, B.
89 Congress
678901234
Clinton, B.
89 Congress
789012345
Bush, J.
555 Austin
789012345
Bush, J.
555 Austin
RDBMS Operators:
SELECT
Choose All or Specific values from a table
SELECT WHERE ADDRESS = 555 Austin
Yields
Given:
Table Student
StudentID
Name
Address
567890123
Bush, G.W
555 Austin
789012345
Bush, J.
Austin
StudentID
Name
Address
123456789
Saenz, Lupe
123 Mesa
234567890
Chung, Mei
37 5th St.
345678901
Adams, John
54B Hague
456789012
Elam, Mary
123-22 E St.
567890123
Bush, G.W
555 Austin
678901234
Clinton, B.
89 Congress
789012345
Bush, J.
555 Austin
PROJECT STUDENTID
Yields
Given:
Table Student
StudentID
StudentID
Name
Address
123456789
123456789
Saenz, Lupe
123 Mesa
234567890
234567890
Chung, Mei
37 5th St.
345678901
345678901
Adams, John
54B Hague
456789012
456789012
Elam, Mary
123-22 E St.
567890123
567890123
Bush, G.W
555 Austin
678901234
678901234
Clinton, B.
89 Congress
789012345
789012345
Bush, J.
555 Austin
Given:
Table Student
StudentID
Name
StudentID
Name
Address
123456789
Saenz, Lupe
123456789
Saenz, Lupe
123 Mesa
234567890
Chung, Mei
234567890
Chung, Mei
37 5th St.
345678901
Adams, John
345678901
Adams, John
54B Hague
456789012
Elam, Mary
456789012
Elam, Mary
123-22 E St.
567890123
Bush, G.W
567890123
Bush, G.W
555 Austin
678901234
Clinton, B.
678901234
Clinton, B.
89 Congress
789012345
Bush, J.
789012345
Bush, J.
555 Austin
CN
AA
BB
CC
BB
DD
TableB
CA
6
20
12
9
18
CR
AA
BB
CC
CAdd
123 A
234 B
345 C
Patient
PhysID
Physname
PatID
Patname
PhysID
123456789
Smith, Mary
987654321 Washington, G.
234567890
234567890
Brown, John
876543210
Adams, J.Q.
345678901
345678901
Jones, Jerry
765432109
Jefferson, T.
123456789
654321098
XXX
123456789
543210987
YYY
234567890
432109876
ZZZ
345678901
321098765
AAA
123456789
Physname
Patient
*
PatID
Patname
Phys
PhysID
Physname
PatID
Patname
Phys
876543210
Adams, J.Q.
345678901
Adams, J.Q.
345678901
345678901
765432109
Jefferson, T.
123456789
Jefferson, T.
123456789
654321098
XXX
123456789
XXX
123456789
543210987
YYY
234567890
YYY
234567890
432109876
ZZZ
345678901
ZZZ
345678901
Jones, Jerry
Adams, J.Q.
345678901
Jefferson, T.
123456789
XXX
123456789
YYY
234567890
ZZZ
345678901
345678901
Jones, Jerry
345678901
Jones, Jerry
876543210
Adams, J.Q.
345678901
345678901
Jones, Jerry
765432109
Jefferson, T.
123456789
345678901
Jones, Jerry
654321098
XXX
123456789
345678901
Jones, Jerry
543210987
YYY
234567890
345678901
Jones, Jerry
432109876
ZZZ
345678901
Physname
PatID
Patname
Phys
PhysID
Physname
PatID
Patname
Phys
123456789
Smith, Mary
987654321
Washington, G.
234567890
Smith, Mary
987654321
Washington, G.
123456789
Smith, Mary
876543210
Adams, J.Q.
345678901
123456789
Smith, Mary
876543210
Adams, J.Q.
345678901
123456789
Smith, Mary
765432109
Jefferson, T.
123456789
123456789
Smith, Mary
765432109
Jefferson, T.
123456789
123456789
Smith, Mary
654321098
XXX
123456789
123456789
Smith, Mary
654321098
XXX
123456789
123456789
Smith, Mary
543210987
YYY
234567890
123456789
Smith, Mary
543210987
YYY
234567890
123456789
Smith, Mary
432109876
ZZZ
345678901
123456789
Smith, Mary
432109876
ZZZ
345678901
234567890
Brown, John
987654321
Washington, G.
234567890
234567890
Brown, John
987654321
Washington, G.
234567890
234567890
Brown, John
876543210
Adams, J.Q.
345678901
234567890
Brown, John
876543210
Adams, J.Q.
345678901
234567890
Brown, John
765432109
Jefferson, T.
123456789
234567890
Brown, John
765432109
Jefferson, T.
123456789
234567890
Brown, John
654321098
XXX
123456789
234567890
Brown, John
654321098
XXX
123456789
234567890
Brown, John
543210987
YYY
234567890
234567890
Brown, John
543210987
YYY
234567890
234567890
Brown, John
432109876
ZZZ
345678901
234567890
Brown, John
432109876
ZZZ
345678901
345678901
Jones, Jerry
987654321
Washington, G.
234567890
345678901
Jones, Jerry
987654321
Washington, G.
234567890
345678901
Jones, Jerry
876543210
Adams, J.Q.
345678901
345678901
Jones, Jerry
876543210
Adams, J.Q.
345678901
345678901
Jones, Jerry
765432109
Jefferson, T.
123456789
345678901
Jones, Jerry
765432109
Jefferson, T.
123456789
345678901
Jones, Jerry
654321098
XXX
123456789
345678901
Jones, Jerry
654321098
XXX
123456789
345678901
Jones, Jerry
543210987
YYY
234567890
345678901
Jones, Jerry
543210987
YYY
234567890
345678901
Jones, Jerry
432109876
ZZZ
345678901
345678901
Jones, Jerry
432109876
ZZZ
345678901
RDBMS ADVANTAGES:
Data Structure
Multi User Access
Network Access
Language
DISADVANTAGES:
Cost
Abundance of Information
Structured Limits
THANK YOU