Your SlideShare is downloading. ×
Introduction to database
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Introduction to database

502
views

Published on

This gives the introduction of what n how the database system is

This gives the introduction of what n how the database system is

Published in: Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
502
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. DATABASE MANAGEMENT SYSTEM
  • 2. Overviewn Introduction to DBMSn Purposen Problems with conventional systemsn Advantages of databasen Different Data Models n Hierarchical n Networks n Relational n Object Oriented n Object Relational
  • 3. Data n Is any name,place,animal or thing n Two types of data are stored within a database: n User data: Data that must be stored by an organization. n System data: Data the database needs to manage user data to manage itself. This is also termed metadata, or the data about data.
  • 4. What Is A Database?n “A set of information held in acomputer”n “One or more large structured sets ofpersistent data, usually associated withsoftware to update and query the data”n “A collection of data arranged for easeand speed of search and retrieval”
  • 5. Database Systemsn A database system consists of n Data (the database) n Software n Hardware n Users
  • 6. Database ManagementSystemsn A database management system (DBMS) manages the data in a database.n A DBMS is a collection of programs that enables the users to create and maintain a database.n A DBMS also enables data to be shared; information system users and managers can get more information value from the same amount of data when data sharing occurs.
  • 7. Database Management Systemsn A database is a collection of informationn A database management system (DBMS) is the software than controls that informationn Examples: n Oracle n DB2 (IBM) n MS SQL Server n MS Access n Ingres n PostgreSQL n MySQL
  • 8. Purpose of Database SystemsDatabase management streamlinesapplication development.n Reduces data redundancyn Ensures data integrity
  • 9. Problems with conventionalsystemsn No sharingn Data isolationn Diffused responsibilitiesn Poor coordinationn Data redundancyn Weak integrity
  • 10. DBMS While in Action naive casual users users programmers DBAcanned schema appl.program query command program DBMS Operating System
  • 11. Advantages of the DatabaseApproachn Control of data redundancyn Data consistencyn Greater informational gain, more information from the same amount of datan Sharing data, organizational resource (i.e., shared resource)n Improved data integrity, validity and consistencyn Improved access and securityn Enforcement of standards
  • 12. Advantages of the DatabaseApproachn Economy of scale, centralization and consolidationn Balancing of conflicting requirements, DBA oversees data and data definitionsn Improved data accessibility and responsivenessn Increased productivityn Improved maintenance through data independencen Increased currencyn Improved backup and recovery services
  • 13. The Foundationn of any database environment is a robust database designn the design uses data models to specify the designn data independence requirement stipulates typically three modelsn three `classical’ models have been very popularn two more are emerging as strong contenders
  • 14. 1. Hierarchical ModelTree Structure Diagram course record type link module studentfaculty book test assign perf attend fee session
  • 15. Hierarchical Modeln The hierarchical data model organizes data in a tree structuren Data in a series of records, which have a set of field values attached to it. It collects all the instances of a specific record together as a record typen To create links between these record types, the hierarchical model uses Parent Child Relationships
  • 16. Hierarchical Database pgdst95 pgdst95 record instances pgdst95 pgdst95 trees pgdst95 db db XX db db XXX dbps ps korth test1 asgn1 korth test1 asgn1 65 65 1-Y 3600 1-Y 3600 ps ps korth test1 asgn1 korth test1 asgn1 65 65 1-Y 3600 1-YY 3600 ps korth test1 asgn1 65 1- 1-Y 3600s1 s1 s1 s1 Database s1
  • 17. 2. Network (CODASYL) Model record typeData Structure Diagram course set type c_m c_s module student m_f s_f faculty m_b m_t m_a fee f_s test assign book s_p s_a m_s t_p a_p perf session ss_a attend
  • 18. Network Modeln In 1971, the Conference on Data Systems Languages (CODASYL) formally defined the network model.n A set consists of an owner record type, a set name, and a member record type.n the network model permitted the modeling of many-to-many relationships in data
  • 19. Network Database record instances course course course course course set instances c_m c_s student student module module module student student student studentfaculty modulefaculty facultyfaculty faculty m_f s_f faculty m_t m_a fee fee m_b fee fee fee f_s test assign book book test test assign s_p assign s_a book m_s test t_p assign a_p perf perf perf session session session perf perf Database session session ss_a attend attend
  • 20. 3. Relational Modeltable course module student attributesfaculty book test assignperf attend fee session
  • 21. Relational Modeln A relational database allows the definition of data structures, storage and retrieval operations and integrity constraints.n In such a database the data and relations between them are organised in tables.n A table is a collection of records and each record in a table contains the same fields.
  • 22. Relational Databasecourse module student tuplesfaculty book test assign perf attend fee session
  • 23. 4. Object-Oriented Model object databases attributes methods messages
  • 24. Object-Oriented Modeln Object DBMSs extend the semantics of the C++, Smalltalk and Java object programming languages to provide full-featured database programming capability, while retaining native language compatibility.n A major benefit of this approach is the unification of the application and database development into a seamless data model and language environment.
  • 25. 5. Object Relational Model object-relational databases
  • 26. Object Relational Modeln Object/relational database management systems (ORDBMSs) add new object storage capabilities to the relational systems at the core of modern information systems.n These new facilities integrate management of traditional fielded data, complex objects such as time-series and geospatial data and diverse binary media such as audio, video, images, and applets.
  • 27. Object Relational Model Faster data integrity enforcementCREATE TABLE Employee New data types (Code code_type, Name CHAR(30), Emp_dept dept_type, Faster join birth_ date date, join_ date date, skills set_of skill_type, method promote(): function prom); Intuitive and natural model
  • 28. Summaryn Databasesn Advantages of databasesn Different Data Models n Hierarchical n Networks n Relational n Object Oriented n Object Relational