POD Chapter 1 Notes
POD Chapter 1 Notes
i) Introduction-
Data:
-Data is single piece of information.
-In other words, the input on which different operations are performed is called as
data.
Database:
-Database is collection of data related to specific organization.
-For example: i) College contain information about students, staff.
ii) Railway reservation system contains information about passengers,
railway time-table, reservation details, waiting list etc.
- Sample Database structure:
Student Table
Applications of DBMS:
-Banking: Database isused in bank to store information about customers, accounts,
transaction details, loans etc.
-Airlines: Database is used to store details of reservations, passenger details and
schedule information etc.
-Universities: Database is used to store information about student details, course
details, marks details etc.
-Credit card Transactions: Database is used to store information about purchase on
credit cards and generation of monthly statements.
-Telecommunication: Database plays important role in telecommunication to store
Characteristics of Database:
i) Data Integrity: data integrity means correctness of data. DBMS maintains the
consistency, correctness of data.
ii) Security: DBMS protects data from unauthorized users access.
iii) Data Independence: DBMS provides data independency, i.e. User can access, store or
modify data independently.
iv) Backup: DBMS takes the backup i.e. Storing copies of files on other machine. So
whenever system fails, user can access data from backup copies.
v) Rollback: Whenver system fails, database undo or revert the currently executing
operation so data will be in consistent state. This is known as rollback.
vi) Concurrency control: DBMS provides concurrency control which handle simultaneous
access to data by multiple users.
➢Advantages:
1) Centralized management and control over the data:
- The database administrator having centralized control over the system.
2) Reduction of Redundancies:
- As DBMS has Centralized control of data by DBA, it avoids duplication of data and
reduces total amount of data storage required.
3) Shared Data:
- DBMS allows the sharing of data by any number of application programmers or
users.
4) Integrity:
- Integrity means that the data contained in the database is both accurate and
consistent and DBMS provides integrity by performing adequate checks.
5) Security:
- In DBMS, database administrator is responsible for ensuring authentication of
users.
6) Conflict Resolution:
- As database is under the control of the DBA, he/she should resolve the conflicting
requirements of various users and applications.
7) Data Independence:
- DBA can modify the structure of data. This modification does not affect other
applications.
➢Disadvantages:
1) Cost of operation: DBMS implementation cost is high compared to the file system.
2)Complexity: Database systems are complex to understand.
3) Extra Hardware: A DBMS requires disk storage for the data which may need to
purchase extra storage disks.
4) Requirements of Technical Staff: a team of technically sound people is required for
good understanding of DBMS and company have to pay higher salary to them.
Components of database:
- A database system can be separated into two different modules that deal with all
operations of the overall system.
- The DBMS is made up of many interrelated components like:
1. Hardware
2. Software
3. Data
4. Procedures
5. Database Access Language
ii) Software:
−This is the set of programs used to control and manage the overall database.
−This includes the DBMS software itself, the Operating System, the network software
being used to share the data among users, and the application programs used to access
data in the DBMS.
iii) Data:
−Data is the resource, for which DBMS was designed.
−The motive behind the creation of DBMS was to store and utilise data.
−In a typical Database, the user saved Data is present and meta data is stored.
−Metadata is data about the data. This is information stored by the DBMS to better
understand the data stored in it.
−For example: When I store my Name in a database, the DBMS will store when the name
was stored in the database, what is the size of the name, is it stored as related data to
some other data, or is it independent, all this information is metadata.
vi) Users:
i) Database Administrators:Database Administrator or DBA is the one who manages the
complete database management system. DBA takes care of the security of the DBMS, it's
availability, managing the license keys, managing user accounts and access etc.
ii) Application Programmer or Software Developer:This user group is involved in
developing and designing the parts of DBMS.
iii) End User: End users are the one who store, retrieve, update and delete data.
Data Abstraction:
-Data abstraction is to hide complexity of data from users.
-As many database-systems users are not computer trained, developers hide the
complexity from users through several levels of abstraction, to simplify
userinteraction with the system
-There are 3 levels of data abstraction.
1) Physical level
2) Logical level
3) View level
Database Languages:
-Database languages are used for read, update and store data in a database.
-Types of DBMS languages:
i) Data Definition Language (DDL): DDL is used for specifying the database schema
(Structure). Following tasks are performed under DDL:
• CREATE - used to create objects in the database
• ALTER - used to alters the structure of the database
• DROP - used to delete objects from the database
• TRUNCATE - used to remove all records from a table.
Data Independence:
- It is the ability to modify a schema in one level without affecting schema in another
level.
- There are two types of data independence:
1) Physical data independence: It is the ability to change schema at physical level
without affecting logical or view level. It is the ability to modify the physical schema
without requiring any change in application programs. Physical data independence
separates conceptual levels from the internal levels.
2) Logical data independence: It is the ability to change logical schema without
affecting external schema or application programs. Logical data independence
separates external level from the conceptual view.
Data Integrity:
−Data integrity is the overall completeness, accuracy and consistency of data.
− Integrity constraints provides a way of ensuring that changes made to the database by
authorized users do not result in a loss of data consistency and correctness.
−When creating databases, attention needs to be given to data integrity and how to
maintain it.
−A good database will enforce data integrity whenever possible.
−An integrity constraint can be any arbitrary predicate or condition applied to the
database.
− For example:
− Bank customer age should not be less than 18.
− No two customers can have same customer ID.