DATABASE SYSTEM CONCEPTS R.Sridevi, Assistant Professor of Computer Science, Bharathidasan Govt. College for Women, Puducherry- 605 003.
Data vs. Information What is the difference? What is data? Freshly collected facts. Unprocessed information. What is information? Processed data Data is converted into information, and information is converted into knowledge. Data Information Knowledge Action
What is a database? A database is any organized collection of data stored with minimum redundancy. Some examples of databases you may encounter in your daily life are: A telephone book Student information system Airline reservation system
Why do we need a database? Keep records of our: Customers Employees Keep a record of activities Develop reports
DataBase Management System (DBMS) Collection of interrelated data & set programs used to access this data. Provides a convenient environment to retrieve & store database information Database System consists of two parts DB Mgmt System DB Application
Advantages of DBMS Redundancy can be reduced Inconsistency can be avoided Data can be shared Security restrictions can be applied Integrity can be maintained
Data Models Entity-Relationship (E-R) model Relational Database model
Basic terms in E-R Model Entity is any object, place, person, concept or activity. Attribute is the Characteristics property of an entity. Relationship is an association among entities.
Symbols used in E-R Model Entity is denoted by Attribute is denoted by Relationship is denoted by
Relational Database Model Dr. E.F Codd first introduced this model in 1970. Allows data to be represented in a simple row-column format (i.e.) table . Each data field is considered as a Column . Each record is considered as a row of a table.
Example of Relational model customer- name Customer- Id customer- street customer- city account- number Johnson Smith Johnson Jones 192-83-7465 019-28-3746 192-83-7465 321-12-3123 Alma North Alma Main Palo Alto Rye Palo Alto Harrison A-101 A-215 A-201 A-217 a Field (Column) a Record (Row)
Advantages of Relational Model Adding & deleting a record to/from the existing table is easy. Adding & deleting a Field to /from the existing table is easy. It is not necessary to build the entire database from scratch.
Examples of RDBMS Packages Sybase Oracle SQL Server