SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
I.T. for Management



      Chapter 8
   Database Management Systems
Database Management Systems


A database management system (DBMS) is
computer software designed for the purpose of
managing databases.
Typical examples of DBMSs include Oracle, DB2,
Microsoft Access, Microsoft SQL Server, MySQL,
4th Dimension and FileMaker. DBMSs are
typically used by Database administrators in the
creation of Database systems.
Database Management Systems

A DBMS is a complex set of software programs that
controls the organization, storage and retrieval of data
in a database. A DBMS includes:
     1.A modeling language to define the schema(relational
     model) of each database hosted in the DBMS, according
     to the DBMS data model.
The three most common organizations are the hierarchical,
network and relational models. A database management
system may provide one, two or all three methods. Inverted
lists and other methods are also used. The most suitable
structure depends on the application and on the transaction
rate and the number of inquiries that will be made.
Database Management Systems

The dominant model in use today is the ad hoc one
embedded in SQL, a corruption of the relational model by
violating several of its fundamental principles. Many DBMSs
also support the Open Database Connectivity API that
supports a standard way for programmers to access the
DBMS.
Data structures (fields, records and files) optimized to deal
with very large amounts of data stored on a permanent data
storage device (which implies very slow access compared to
volatile main memory).
Database Management Systems

     1.A database query language and report writer to allow
     users to interactively interrogate the database, analyse its
     data and update it according to the users privileges on
     data.
         It also controls the security of the database.
Data security prevents unauthorised users from viewing or
updating the database. Using passwords, users are allowed
access to the entire database or subsets of it called
subschemas. For example, an employee database can contain
all the data about an individual employee, but one group of
users may be authorized to view only payroll data, while
others are allowed access to only work history and medical
data
Database Management Systems
    1.A transaction mechanism, that ideally would guarantee
    the ACID properties, in order to ensure data integrity,
    despite concurrent user accesses (concurrency control),
    and faults (fault tolerance).
        oIt also maintains the integrity of the data in the
        database.
The DBMS can maintain the integrity of the database by not
allowing more than one user to update the same record at the
same time. The DBMS can help prevent duplicate records via
unique index constraints; for example, no two customers
with the same customer numbers (key fields) can be entered
into the database. See ACID properties for more information
(Redundancy avoidance).
Database Management Systems
Relational DBMS
Edgar Codd worked at IBM in San Jose, California, in
one of their offshoot offices that was primarily
involved in the development of hard disk systems. He
was unhappy with the navigational model of the
Codasyl approach, notably the lack of a "search"
facility which was becoming increasingly useful when
the database was stored on disk instead of tape. In
1970, he wrote a number of papers that outlined a new
approach to database construction that eventually
culminated in the groundbreaking A Relational Model
of Data for Large Shared Data Banks.[1]
Database Management Systems

In this paper, he described a new system for storing
and working with large databases. Instead of
records being stored in some sort of linked list of
free-form records as in Codasyl, Codd's idea was to
use a "table" of fixed-length records. A linked-list
system would be very inefficient when storing
"sparse" databases
Where some of the data for any one record could be left
empty. The relational model solved this by splitting the data
into a series of normalized tables, with optional elements
being moved out of the main table to where they would take
up room only if needed
Database Management Systems




In the relational model, related records are linked
together with a "key".
Database Management Systems

For instance, a common use of a database system is to track
information about users, their name, login information,
various addresses and phone numbers. In the navigational
approach all of these data would be placed in a single record,
and unused items would simply not be placed in the
database. In the relational approach, the data would be
normalized into a user table, an address table and a phone
number table (for instance). Records would be created in
these optional tables only if the address or phone numbers
were actually provided
Database Management Systems
          Features
Shared database with concurrency Control:
This means that the DBMS allows many users
to access the data at the same time which is
very essential for on line systems
Application of business rules:
In a situation where many people are
simultaneously updating database ,it is essential
that all users go through same checks &
controls .for example user may access to
particular table for viewing & not updating
Database Management Systems
          Features
Role based access :
The DBMS allow the database administrator to
create user roles whereby he can define to what
each user can do to the database.
Views:
 DBMS allows creation of ‘views’ A view is a
query written in SQL which provides a subset of the
database
Transaction control:
One of the main purpose of a DBMS is to help
implement business transaction        ……. Cont
Database Management Systems
          Features
Data independence:
With changing business needs it is important that
we are are able to add more columns or change the
properties of a column
Platform independence:
Many DBMS are available for a wide variety of
operating systems& hardware.Thus data can be
migrated from on environment to another since
DBMS allow import & export of database.
                                      Cont……..
Database Management Systems
          Features
Support for various language interface:
Though DBMS use SQL business data processing
requires more complex manipulation & presentation
of reports& user friendly screen Updating the
database are embedded in commonly used
languages such as Cobol, java etc.
Referential integrality:
The DBMS ensures that if record is deleted all
corresponding child records are deleted
Database Management Systems
          Features
Growth :
DBMS are highly sensitive systems DBMS
software such as oracle,Sybase,SQL server etc can
handle very high volumes of data &
transactions.Thus database can span across several
disks,distributed over several database servers
Distributed Database:
DBMS allow users to execute transactions which
access & update information from any location
File & various types of Database


Originally all data on computers was in the form
of flat files.These file were :
Serial files:each record was stored after the other
in a serial order
Sequential files:each record was stored after
another based on some sequence such as customer
code which made it easier to access
Random files:data could be accessed randomly
Index files: Here two file are kept one file
contains data which is any order other file
contains index
Disadvantages of desecrate files

The programmer who develops an application need
to know a lot about files,where it is stored
How it is accessed What Is Structure.
Each programmer writes different
structure,different formats.
Thus there is duplication of same data
In case data is required in sequential order files
have been sorted & used
The flat file system do not offer any
security,Integrity and transaction control
How does the DBMS Store information


 A DBMS maintains the following information
 Business Data
 Meta Data More information about data
 Business &integrity rules
 User related information
              Who are the authorized user
              Which tables & columns can they acce
              Are they restricted to specific time of d
                                         ………..cont
How does the DBMS Store information


When we create a database we have to take holistic
view of all users of the database & there needs
A database consists of schema or layout consisting
of various pieces of information grouped together in
the form of entities.
Apart from master tables we need to define
transaction tables.Transaction tables are those
where transaction information is stored
Once the database is created the transaction has
been created thru application software
Database languages

There are three types of database languages used
Data Definition languages:
A language to define & alter the structure of the
database
Data manipulation language:
A language or set of commands to query,add ,or
delete records in database.
Data control language:
A language which helps to define user rulesto
access data
SQL Data Manipulation commands


 SQL Data Manipulation commands
 Data manipulation requires four basic functions
 Select
 Insert
 Update
 Delete
 SQL performs these tasks very efficiently.
Database languages
              Typical SQL Commands

  create table phone_numbers (
  email
   varchar(100) not null references
  mailing_list,     number_type
  varchar(15) check (number_type in
  ('work','home','cell','beeper')),
  phone_number varchar(20)

  SQL> insert into phone_numbers values
  ('ogrady@fastbuck.com','work','(800) 555-
  1212');
Types of Database


      DBMS are of atleast 4 types
       Hierarchical DBMS
       Network DBMS
       Relational DBMS
       Object DBMS
Types of Database

Hierarchical DBMS
Store information in the form of a Hierarchy of
records ie parent child formation
Thus a hierarchical structure is created with the
links pointing from parent records to child records.
Network DBMS
Network DMBS overcome some of inflexibilities
of Hierarchical DBMS the data administrator by
allowing pointers                   ……Cont
Types of Database

    Relational Database (RDBMs)
    The concept of RDBMS revolutionaries the DBMS
    & widely accepted all over
A relational database is a big spreadsheet that
:

several people can update simultaneously.
A request might be "create a table", "insert a row
into a table", "update an existing row in a table",
"give me a report of the information contained in all
the rows in a table that meet the following
criteria...".                          ……….Cont
Types of Database
Relational Database (RDBMs)


Each table in the database is one spreadsheet. You
tell the RDBMS how many columns each row has.
For example, in our mailing list database, the table
has two columns: name and e-mail. Each entry in
the database consists of one row in this table. An
RDBMS is more restrictive than a spreadsheet in
that all the data in one column must be of the same
type, e.g., integer, decimal, character string, or date.
Another difference between a spreadsheet and an
RDBMS is that the rows in an RDBMS are not
ordered.
Types of Database
Relational Database (RDBMs)


Entities & Tuples
Each table represents information which is related
to the entity such as employee
All data related to an entity (employee) is stored
in one row also known as Tuples in RDBMS
The unique identifier for an entity (employee code )
Is known as primary key
The primary key uniquely identifies a row in a
database
Types of Database


Advantages of Relational Database (RDBMs)
   Conceptually simple mathematically rigorous
Very flexible since We can query on any column
The database can grow very easily since any number
of records can be added to a table.
The database is very expandable since we can add
   columns to existing table
As a result databases like Oracle,Sybase,SQL server
   have become very popular
Types of Database
Object DBMS


The success of DBMS system depends upon its
 ability to represent the data which is very close
To that in real life
For instance if there is a column containing
information about temperature in degrees
centigrade ,it will be helpful if it is converted in
Fahrenheit along with the column in the metadata
DBMS allow such features are known as object
DBMS
Database Management Systems




     End of Chapter 8

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Rdbms
RdbmsRdbms
Rdbms
 
DBMS Bascis
DBMS BascisDBMS Bascis
DBMS Bascis
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
RDBMS
RDBMSRDBMS
RDBMS
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Database systems
Database systemsDatabase systems
Database systems
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Database management system
Database management systemDatabase management system
Database management system
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Database Chapter 1
Database Chapter 1Database Chapter 1
Database Chapter 1
 

Destaque

Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
sethu pm
 
Latest trends in database management
Latest trends in database managementLatest trends in database management
Latest trends in database management
BcomBT
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
yhen06
 

Destaque (20)

Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
History of Database
History  of DatabaseHistory  of Database
History of Database
 
Database Management System (DBMS) | Computer Science
Database Management System (DBMS) | Computer ScienceDatabase Management System (DBMS) | Computer Science
Database Management System (DBMS) | Computer Science
 
IT webinar 2016
IT webinar 2016IT webinar 2016
IT webinar 2016
 
Transform Your DBMS to Drive Application Innovation
Transform Your DBMS to Drive Application InnovationTransform Your DBMS to Drive Application Innovation
Transform Your DBMS to Drive Application Innovation
 
Database Architectures and Hypertable
Database Architectures and HypertableDatabase Architectures and Hypertable
Database Architectures and Hypertable
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Applications of DBMS in Film Industry
Applications of DBMS in Film IndustryApplications of DBMS in Film Industry
Applications of DBMS in Film Industry
 
Dbms_class _14
Dbms_class _14Dbms_class _14
Dbms_class _14
 
Version1 database-managed-services-brochure
Version1 database-managed-services-brochureVersion1 database-managed-services-brochure
Version1 database-managed-services-brochure
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
IBM Power Systems: Designed for Data
IBM Power Systems: Designed for DataIBM Power Systems: Designed for Data
IBM Power Systems: Designed for Data
 
Overview of Database and Database Management
Overview of Database and Database ManagementOverview of Database and Database Management
Overview of Database and Database Management
 
02010 ppt ch01
02010 ppt ch0102010 ppt ch01
02010 ppt ch01
 
Amazon Aurora for the Enterprise - August 2016 Monthly Webinar Series
Amazon Aurora for the Enterprise - August 2016 Monthly Webinar SeriesAmazon Aurora for the Enterprise - August 2016 Monthly Webinar Series
Amazon Aurora for the Enterprise - August 2016 Monthly Webinar Series
 
Db trends final
Db trends   finalDb trends   final
Db trends final
 
Dbms ii mca-ch1-ch2-intro-datamodel-2013
Dbms ii mca-ch1-ch2-intro-datamodel-2013Dbms ii mca-ch1-ch2-intro-datamodel-2013
Dbms ii mca-ch1-ch2-intro-datamodel-2013
 
DBMS
DBMSDBMS
DBMS
 
Latest trends in database management
Latest trends in database managementLatest trends in database management
Latest trends in database management
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
 

Semelhante a Database Management Systems

Database Management System For A Company
Database Management System For A CompanyDatabase Management System For A Company
Database Management System For A Company
Jessica Myers
 
Data base management system
Data base management systemData base management system
Data base management system
Navneet Jingar
 

Semelhante a Database Management Systems (20)

Database management system
Database management systemDatabase management system
Database management system
 
Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
 
Database Computer presentation file .pptx
Database Computer presentation file .pptxDatabase Computer presentation file .pptx
Database Computer presentation file .pptx
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
Database management system
Database management systemDatabase management system
Database management system
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
HRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptxHRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptx
 
jose rizal
jose rizaljose rizal
jose rizal
 
Data base management system
Data base management systemData base management system
Data base management system
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
 
Database Management System For A Company
Database Management System For A CompanyDatabase Management System For A Company
Database Management System For A Company
 
Dbms
DbmsDbms
Dbms
 
DBMS PART 1.docx
DBMS PART 1.docxDBMS PART 1.docx
DBMS PART 1.docx
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Database
DatabaseDatabase
Database
 
Data base management system
Data base management systemData base management system
Data base management system
 
SQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptxSQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptx
 
SQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptxSQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptx
 

Mais de We Learn - A Continuous Learning Forum from Welingkar's Distance Learning Program.

Mais de We Learn - A Continuous Learning Forum from Welingkar's Distance Learning Program. (20)

PGDM in Supply Chain Management
PGDM in Supply Chain ManagementPGDM in Supply Chain Management
PGDM in Supply Chain Management
 
PGDM in Rural & Agribusiness Management
PGDM in Rural & Agribusiness ManagementPGDM in Rural & Agribusiness Management
PGDM in Rural & Agribusiness Management
 
PGDM in E-Commerce Management
PGDM in E-Commerce ManagementPGDM in E-Commerce Management
PGDM in E-Commerce Management
 
PGDM in Service Excellence
PGDM in Service ExcellencePGDM in Service Excellence
PGDM in Service Excellence
 
PGDM in International Management
PGDM in International ManagementPGDM in International Management
PGDM in International Management
 
PGDM in IT Project Management
PGDM in IT Project ManagementPGDM in IT Project Management
PGDM in IT Project Management
 
Distance Learning PGDM in E-Business Management
Distance Learning PGDM in E-Business ManagementDistance Learning PGDM in E-Business Management
Distance Learning PGDM in E-Business Management
 
Distance Learning PGDM in Business Administration
Distance Learning PGDM in Business AdministrationDistance Learning PGDM in Business Administration
Distance Learning PGDM in Business Administration
 
PGDM in Finance Management
PGDM in Finance ManagementPGDM in Finance Management
PGDM in Finance Management
 
PGDM in Marketing Management
PGDM in Marketing ManagementPGDM in Marketing Management
PGDM in Marketing Management
 
PGDM in Operation Management
PGDM in Operation ManagementPGDM in Operation Management
PGDM in Operation Management
 
Marketing Management
Marketing ManagementMarketing Management
Marketing Management
 
PGDM in Media & Advertising
PGDM in Media & AdvertisingPGDM in Media & Advertising
PGDM in Media & Advertising
 
We School HR Management
We School HR ManagementWe School HR Management
We School HR Management
 
WE SCHOOL TRAVEL & TOURISM MANAGEMENT
WE SCHOOL TRAVEL & TOURISM MANAGEMENTWE SCHOOL TRAVEL & TOURISM MANAGEMENT
WE SCHOOL TRAVEL & TOURISM MANAGEMENT
 
Personal budgeting
Personal budgetingPersonal budgeting
Personal budgeting
 
Maintaining the financial health of businesses through financial accounting
Maintaining the financial health of businesses through financial accountingMaintaining the financial health of businesses through financial accounting
Maintaining the financial health of businesses through financial accounting
 
Asset Management Case Sstudy
Asset Management  Case SstudyAsset Management  Case Sstudy
Asset Management Case Sstudy
 
Team management’ scored on the football
Team management’ scored on the footballTeam management’ scored on the football
Team management’ scored on the football
 
Mc donalds Recruitment Case Study
Mc donalds Recruitment Case StudyMc donalds Recruitment Case Study
Mc donalds Recruitment Case Study
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Database Management Systems

  • 1. I.T. for Management Chapter 8 Database Management Systems
  • 2. Database Management Systems A database management system (DBMS) is computer software designed for the purpose of managing databases. Typical examples of DBMSs include Oracle, DB2, Microsoft Access, Microsoft SQL Server, MySQL, 4th Dimension and FileMaker. DBMSs are typically used by Database administrators in the creation of Database systems.
  • 3. Database Management Systems A DBMS is a complex set of software programs that controls the organization, storage and retrieval of data in a database. A DBMS includes: 1.A modeling language to define the schema(relational model) of each database hosted in the DBMS, according to the DBMS data model. The three most common organizations are the hierarchical, network and relational models. A database management system may provide one, two or all three methods. Inverted lists and other methods are also used. The most suitable structure depends on the application and on the transaction rate and the number of inquiries that will be made.
  • 4. Database Management Systems The dominant model in use today is the ad hoc one embedded in SQL, a corruption of the relational model by violating several of its fundamental principles. Many DBMSs also support the Open Database Connectivity API that supports a standard way for programmers to access the DBMS. Data structures (fields, records and files) optimized to deal with very large amounts of data stored on a permanent data storage device (which implies very slow access compared to volatile main memory).
  • 5. Database Management Systems 1.A database query language and report writer to allow users to interactively interrogate the database, analyse its data and update it according to the users privileges on data. It also controls the security of the database. Data security prevents unauthorised users from viewing or updating the database. Using passwords, users are allowed access to the entire database or subsets of it called subschemas. For example, an employee database can contain all the data about an individual employee, but one group of users may be authorized to view only payroll data, while others are allowed access to only work history and medical data
  • 6. Database Management Systems 1.A transaction mechanism, that ideally would guarantee the ACID properties, in order to ensure data integrity, despite concurrent user accesses (concurrency control), and faults (fault tolerance). oIt also maintains the integrity of the data in the database. The DBMS can maintain the integrity of the database by not allowing more than one user to update the same record at the same time. The DBMS can help prevent duplicate records via unique index constraints; for example, no two customers with the same customer numbers (key fields) can be entered into the database. See ACID properties for more information (Redundancy avoidance).
  • 7. Database Management Systems Relational DBMS Edgar Codd worked at IBM in San Jose, California, in one of their offshoot offices that was primarily involved in the development of hard disk systems. He was unhappy with the navigational model of the Codasyl approach, notably the lack of a "search" facility which was becoming increasingly useful when the database was stored on disk instead of tape. In 1970, he wrote a number of papers that outlined a new approach to database construction that eventually culminated in the groundbreaking A Relational Model of Data for Large Shared Data Banks.[1]
  • 8. Database Management Systems In this paper, he described a new system for storing and working with large databases. Instead of records being stored in some sort of linked list of free-form records as in Codasyl, Codd's idea was to use a "table" of fixed-length records. A linked-list system would be very inefficient when storing "sparse" databases Where some of the data for any one record could be left empty. The relational model solved this by splitting the data into a series of normalized tables, with optional elements being moved out of the main table to where they would take up room only if needed
  • 9. Database Management Systems In the relational model, related records are linked together with a "key".
  • 10. Database Management Systems For instance, a common use of a database system is to track information about users, their name, login information, various addresses and phone numbers. In the navigational approach all of these data would be placed in a single record, and unused items would simply not be placed in the database. In the relational approach, the data would be normalized into a user table, an address table and a phone number table (for instance). Records would be created in these optional tables only if the address or phone numbers were actually provided
  • 11. Database Management Systems Features Shared database with concurrency Control: This means that the DBMS allows many users to access the data at the same time which is very essential for on line systems Application of business rules: In a situation where many people are simultaneously updating database ,it is essential that all users go through same checks & controls .for example user may access to particular table for viewing & not updating
  • 12. Database Management Systems Features Role based access : The DBMS allow the database administrator to create user roles whereby he can define to what each user can do to the database. Views: DBMS allows creation of ‘views’ A view is a query written in SQL which provides a subset of the database Transaction control: One of the main purpose of a DBMS is to help implement business transaction ……. Cont
  • 13. Database Management Systems Features Data independence: With changing business needs it is important that we are are able to add more columns or change the properties of a column Platform independence: Many DBMS are available for a wide variety of operating systems& hardware.Thus data can be migrated from on environment to another since DBMS allow import & export of database. Cont……..
  • 14. Database Management Systems Features Support for various language interface: Though DBMS use SQL business data processing requires more complex manipulation & presentation of reports& user friendly screen Updating the database are embedded in commonly used languages such as Cobol, java etc. Referential integrality: The DBMS ensures that if record is deleted all corresponding child records are deleted
  • 15. Database Management Systems Features Growth : DBMS are highly sensitive systems DBMS software such as oracle,Sybase,SQL server etc can handle very high volumes of data & transactions.Thus database can span across several disks,distributed over several database servers Distributed Database: DBMS allow users to execute transactions which access & update information from any location
  • 16. File & various types of Database Originally all data on computers was in the form of flat files.These file were : Serial files:each record was stored after the other in a serial order Sequential files:each record was stored after another based on some sequence such as customer code which made it easier to access Random files:data could be accessed randomly Index files: Here two file are kept one file contains data which is any order other file contains index
  • 17. Disadvantages of desecrate files The programmer who develops an application need to know a lot about files,where it is stored How it is accessed What Is Structure. Each programmer writes different structure,different formats. Thus there is duplication of same data In case data is required in sequential order files have been sorted & used The flat file system do not offer any security,Integrity and transaction control
  • 18. How does the DBMS Store information A DBMS maintains the following information Business Data Meta Data More information about data Business &integrity rules User related information Who are the authorized user Which tables & columns can they acce Are they restricted to specific time of d ………..cont
  • 19. How does the DBMS Store information When we create a database we have to take holistic view of all users of the database & there needs A database consists of schema or layout consisting of various pieces of information grouped together in the form of entities. Apart from master tables we need to define transaction tables.Transaction tables are those where transaction information is stored Once the database is created the transaction has been created thru application software
  • 20. Database languages There are three types of database languages used Data Definition languages: A language to define & alter the structure of the database Data manipulation language: A language or set of commands to query,add ,or delete records in database. Data control language: A language which helps to define user rulesto access data
  • 21. SQL Data Manipulation commands SQL Data Manipulation commands Data manipulation requires four basic functions Select Insert Update Delete SQL performs these tasks very efficiently.
  • 22. Database languages Typical SQL Commands create table phone_numbers ( email varchar(100) not null references mailing_list, number_type varchar(15) check (number_type in ('work','home','cell','beeper')), phone_number varchar(20) SQL> insert into phone_numbers values ('ogrady@fastbuck.com','work','(800) 555- 1212');
  • 23. Types of Database DBMS are of atleast 4 types Hierarchical DBMS Network DBMS Relational DBMS Object DBMS
  • 24. Types of Database Hierarchical DBMS Store information in the form of a Hierarchy of records ie parent child formation Thus a hierarchical structure is created with the links pointing from parent records to child records. Network DBMS Network DMBS overcome some of inflexibilities of Hierarchical DBMS the data administrator by allowing pointers ……Cont
  • 25. Types of Database Relational Database (RDBMs) The concept of RDBMS revolutionaries the DBMS & widely accepted all over A relational database is a big spreadsheet that : several people can update simultaneously. A request might be "create a table", "insert a row into a table", "update an existing row in a table", "give me a report of the information contained in all the rows in a table that meet the following criteria...". ……….Cont
  • 26. Types of Database Relational Database (RDBMs) Each table in the database is one spreadsheet. You tell the RDBMS how many columns each row has. For example, in our mailing list database, the table has two columns: name and e-mail. Each entry in the database consists of one row in this table. An RDBMS is more restrictive than a spreadsheet in that all the data in one column must be of the same type, e.g., integer, decimal, character string, or date. Another difference between a spreadsheet and an RDBMS is that the rows in an RDBMS are not ordered.
  • 27. Types of Database Relational Database (RDBMs) Entities & Tuples Each table represents information which is related to the entity such as employee All data related to an entity (employee) is stored in one row also known as Tuples in RDBMS The unique identifier for an entity (employee code ) Is known as primary key The primary key uniquely identifies a row in a database
  • 28. Types of Database Advantages of Relational Database (RDBMs) Conceptually simple mathematically rigorous Very flexible since We can query on any column The database can grow very easily since any number of records can be added to a table. The database is very expandable since we can add columns to existing table As a result databases like Oracle,Sybase,SQL server have become very popular
  • 29. Types of Database Object DBMS The success of DBMS system depends upon its ability to represent the data which is very close To that in real life For instance if there is a column containing information about temperature in degrees centigrade ,it will be helpful if it is converted in Fahrenheit along with the column in the metadata DBMS allow such features are known as object DBMS
  • 30. Database Management Systems End of Chapter 8