Sunteți pe pagina 1din 14

Database Management

System (DBMS) and


Relational Database
Management System
(RDBMS)
The Database Approach to Data Management
• Database :
Collection of data organized to serve many applications by
centralizing data and controlling redundant data.

• Database Management System :


It is a software that handles the storage, retrieval, and updating
of data in a computer system.
How A DBMS Solves the Problems of the
Traditional File Environment

Controls Eliminated
Redundancy Inconsistency

Uncouples Enables Central


Programs and Management and
Data Security
Human Resources Database with Multiple Views
• Relational DBMS
- Represent data as two-dimensional tables called relations or files
- Each table contains data on entity and attributes

• Table:
- Rows (tuples): Records for different entities
- Fields (columns): Represents attribute for entity
- Primary key: Field in table used for key fields
- Foreign key: Primary key used in second table as look-up field to identify
records from original table
Relational Database Tables

A relational database organizes data in the form of two-dimensional tables.


Illustrated here are tables for the entities SUPPLIER and PART showing how they
represent each entity and its attributes.
Supplier_Number is a primary key for the SUPPLIER table and a foreign key for
the PART table.
Relational Database Tables
Operations of a Relational DBMS
Three basic operations used to develop useful sets of data :

• SELECT: Creates subset of data of all records that meet stated


criteria
• JOIN: Combines relational tables to provide user with more
information than available in individual tables
• PROJECT: Creates subset of columns in table, creating tables with
only the information specified
The Three Basic Operations of a Relational DBMS

The select, project, and join operations enable data from two different
tables to be combined and only selected attributes to be displayed.
Example of SQL QUERY
SELECT PART.Part_Number,PART.Part_Name,SUPPLIER.Supplier Number,SUPPLIER.Supplier_Name
FROM PART,SUPPLIER
WHERE PART.supplier_Number= SUPPLIER.Supplier_Number AND Part_Number = 137 OR
Part_Number = 150;
Difference Between
DBMS - RDBMS -
1. DBMS applications store data as file. 1. RDBMS applications store data in tabular form.
2. In DBMS, data is generally stored in 2. In RDBMS, the tables have an identifier called
either a hierarchical form or a navigational primary key and the data values are stored in the form
form. of tables.
3. DBMS uses file system to store data, so 3. In RDBMS, data values are stored in the form of
there will be no relation between the tables, so a relationship between these data values
tables. will be stored in the form of a tables as well.
4. DBMS has to provide some uniform 4. RDBMS system supports a tabular structure of the
methods to access the stored information. data and a relationship between them to access the
stored information.
5. DBMS is meant to be for small 5. RDBMS is designed to handle large amount of data.
organization and deal with small data. It It supports multiple users.
supports single user.
6. Example - file systems, Xml etc. 6. Example – MySQL, SQL Server, Oracle etc.
Submitted By :
Group 4
Navneet Saini ;11800214
Akashdeep Singh ; 11800415
Komal Sharma; 11800699
MBA – I (F130)

S-ar putea să vă placă și