0% found this document useful (0 votes)
599 views14 pages

Unit - 1

The document defines key database terms like data, information, database, DBMS, metadata, data dictionary, field, and record. It then explains some disadvantages of file processing systems compared to database management systems, such as data redundancy, data inconsistency, difficulty accessing data, limited data sharing, integrity problems, atomicity problems, and concurrent access anomalies. Finally, it lists some applications of DBMS, including use by airlines, railways, banks, schools, telecommunications, and for credit card transactions.

Uploaded by

JAYPALSINH GOHIL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
599 views14 pages

Unit - 1

The document defines key database terms like data, information, database, DBMS, metadata, data dictionary, field, and record. It then explains some disadvantages of file processing systems compared to database management systems, such as data redundancy, data inconsistency, difficulty accessing data, limited data sharing, integrity problems, atomicity problems, and concurrent access anomalies. Finally, it lists some applications of DBMS, including use by airlines, railways, banks, schools, telecommunications, and for credit card transactions.

Uploaded by

JAYPALSINH GOHIL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

BCA SEM – 2 Subject: DBMS – 1 Unit - 1

# Define the following terms:

1. Data:
• Fact that can be recorded or stored.
• E.g. Person Name, Age, Gender and Weight etc.

2. Information:
• When data is processed, organized, structured or presented in a given context so as to make
it useful, it is called information.

3. Database:
• A Database is a collection of inter-related (logically-related) data.
• E.g. Books Database in Library, Student Database in University etc.

4. DBMS (Database Management System):


• A database management system is a collection of inter-related data and set of programs to
manipulate those data.
• DBMS = Database + Set of programs
• E.g. MS SQL Server, Oracle, My SQL, SQLite, MongoDB etc.

5. Metadata:
• Metadata is data about data.
• Data such as table name, column name, data type, authorized user and user access privileges
for any table is called metadata for that table.

6. Data Dictionary:
• Data dictionary is an information repository which contains metadata.
• It is usually a part of the system catalog.

7. Field:
• A field is a character or group of characters that have a specific meaning.
• It is also called a data item. It is represented in the database by a value.
• For Example customer id, name, society and city are all fields for customer Data.

8. Record:
• A record is a collection of logically related fields.
• For examples, collection of fields (id, name, address & city) forms a record for customer.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 1


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# Explain disadvantages of file system (file processing systems) compare to
Database management system.
OR
# Explain disadvantages of conventional file-based system
compared to Database management system.

1. Data Redundancy:
• It is possible that the same information may be duplicated in different files. This leads to data
redundancy. Data redundancy results in memory wastage.
• For example, consider that some customers have both kinds of accounts - saving and current.
In this case, data about customers such as name, address, e-mail and contact number will be
duplicated in both files, saving accounts file and current account file.
• In other words, same information will be stored in two different locations (files). And, it wastes
memory.

2. Data Inconsistency:
• Due to data redundancy, it is possible that data may not be in consistent state.
• For example, consider that an address of some customer changes. And, that customer has both
kinds of accounts. Now, it is possible that this changed address is updated in only one file,
leaving address in other file as it is. As a result of this, same customer will have two different
addresses in two different files, making data inconsistent.

3. Difficulty in Accessing Data:


• Accessing data is not convenient and efficient in file processing system.
• For example, suppose, there is a program to find information about all customers. But, what if
there is a need to find out all customers from some particular city. In this case, there are two
choices here: One, find out all customers using available program, and then extract the needed
customers manually. Second, develop new program to get required information. Both options
are not satisfactory.
• For each and every different kind of data access, separate programs are required. This is neither
convenient nor efficient.

4. Limited Data Sharing:


• Data are scattered in various files.
• Different files may have different formats. And these files may be stored in different folders
(directories) may be of different computers of different departments.
• So, due to this data isolation, it is difficult to share data among different applications.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 2


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

5. Integrity Problems:
• Data integrity means that the data contained in the database is both correct and consistent. For
this purpose, the data stored in database must satisfy certain types of constraints (rules).
• For example, a balance for any account must not be less than zero. Such constraints are
enforced in the system by adding appropriate code in application programs. But, when new
constraints are added, such as balance should not be less than Rs. 5000, application programs
need to be changed. But, it is not an easy task to change programs whenever required.

6. Atomicity Problems:
• Any operation on database must be atomic. This means, operation completes either 100% or
0%.
• For example, a fund transfer from one account to another must happen in its entirely. But,
computer systems are vulnerable to failure, such as system crash, virus attack. If a system
failure occurs during the execution of fund transfer operation, it may possible that amount to be
transferred, say, Rs. 500, is debited from one account, but is not credited to another account.
• This leaves database in consistent state. But, it is difficult to ensure atomicity in a file
processing system.

7. Concurrent Access Anomalies:


• Multiple users are allowed to access data simultaneously (concurrently). This is for the sake of
better performance and faster response.
• Consider an operation to debit (withdrawal) an account. The program reads the old balance,
calculates the new balance, and writes new balance back to database. Suppose an account has a
balance of Rs. 5000. Now, a concurrent withdrawal of Rs. 1000 and Rs. 2000 may leave the
balance Rs. 4000 or Rs. 3000 depending upon their completion time rather than the correct
value of Rs. 2000.
• Here, concurrent data access should be allowed under some supervision.
• But, due to lack of co-ordination among different application programs, this is not possible in
file processing systems.

8. Security Problems:
• Database should be accessible to users in a limited way.
• Each user should be allowed to access data concerning his application only.
• For example, a customer can check balance only for his/her own account. He/She should not
have access for information about other accounts.
• But, in file processing system, application programs are added in an ad hoc manner by different
programmers. So, it is difficult to enforce such kind of security constraints.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 3


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# Explain advantages (benefits) of DBMS over file management system.
OR
# Explain purpose of database system.
1. Minimal Data Redundancy (Duplication):
• Due to centralized database, it is possible to avoid unnecessary duplication of information.
• This leads to reduce data redundancy.
• It prevents memory wastage and reduces extra processing time to get required data.
2. Shared Data:
• All authorized user and application program can share database easily.
3. Data Consistency:
• Data inconsistency occurs due to data redundancy.
• With reduced data redundancy such type of data inconsistency can be eliminated.
• This results in improved data consistency.

4. Data Access:
• DBMS utilizes a variety of techniques to retrieve data.
• Required data can be retrieved by providing appropriate query to the DBMS.
• Thus, data can be accessed in convenient and efficient manner.

5. Data Integrity:
• Data in database must be correct and consistent.
• So, data stored in database must satisfy certain types of constraints (rules).
• DBMS provides different ways to implement such type of constraints (rules).
• This improves data integrity in a database.

6. Data Security:
• Database should be accessible to user in a limited way.
• DBMS provides way to control the access to data for different user according to their
requirement.
• It prevents unauthorized access to data.
• Thus, security can be improved.

7. Concurrent Access:
• Multiple users are allowed to access data simultaneously.
• Concurrent access to centralized data can be allowed under some supervision.
• This results in better performance of system and faster response.

8. Guaranteed Atomicity:
• Any operation on database must be atomic. This means, operation must be executed either
100% or 0%.
• This type of atomicity is guaranteed in DBMS.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 4


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# List and explain the applications of DBMS.

1. Airlines and railways:


• Airlines and railways use online databases for reservation, and for displaying the schedule
information.

2. Banking:
• Banks use databases for customer inquiry, accounts, loans, and other transactions.

3. Education:
• Schools and colleges use databases for course registration, result, and other information.

4. Telecommunications:
• Telecommunication departments use databases to store information about the communication
network, telephone numbers, record of calls, for generating monthly bills, etc.

5. Credit card transactions:


• Databases are used for keeping track of purchases on credit cards in order to generate monthly
statements.

6. E-commerce:
• Integration of heterogeneous information sources (for example, catalogs) for business activity
such as online shopping, booking of holiday package, consulting a doctor, etc.

7. Health care information systems and electronic patient record:


• Databases are used for maintaining the patient health care details in hospitals.

8. Digital libraries and digital publishing:


• Databases are used for management and delivery of large bodies of textual and multimedia
data.

9. Finance:
• Databases are used for storing information such as sales, purchases of stocks and bonds or data
useful for online trading.

10. Sales:
• Databases are used to store product, customer and transaction details.

11. Human resources:


• Organizations use databases for storing information about their employees, salaries, benefits,
taxes, and for generating salary checks.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 5


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# Explain three levels ANSI SPARC Database System.
OR
# Explain three level Data abstraction.

The ANSI SPARC architecture divided into three levels:

1. External level
2. Conceptual level
3. Internal level

1. Internal Level:
• This is the lowest level of the data abstraction.
• It describes how the data are actually stored on storage devices.
• It is also known as a physical level.
• The internal view is described by internal schema.
• Internal schema consists of definition of stored record, method of representing the data field
and access method used.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 6


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
2. Conceptual Level:
• This is the next higher level of the data abstraction.
• It describes what data are stored in the database and what relationships exist among those data.
• It is also known as a logical level.
• Conceptual view is defined by conceptual schema. It describes all records and relationship.

3. External Level
• This is the highest level of data abstraction.
• It is also known as view level.
• It describes only part of the entire database that a particular end user requires.
• External view is describes by external schema.
• External schema consists of definition of logical records, relationship in the external view and
method of deriving the objects from the conceptual view.
• This object includes entities, attributes and relationship.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 7


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# Explain Mapping.
OR
# Explain external and internal mapping.
OR
# What is mapping? Describe type of mapping.

1. Mapping:
• The process of transforming requests and results between the three levels is called mapping.

2. Types of Mapping:
• Conceptual/Internal Mapping
• External/Conceptual Mapping

(1) Conceptual/Internal Mapping:


• It relates conceptual schema with internal schema.
• It defines correspondence between the conceptual schema and the database stored in
physical devices.
• It specifies how conceptual records and fields are presented at the internal level.
• If the structure of stored database is changed, then conceptual/internal mapping must be
changed accordingly and conceptual schema can remain invariant.
• There could be one mapping between conceptual and internal levels.

(2) External/Conceptual Mapping:


• It relates each external schema with conceptual schema.
• It defines correspondence between a particular external view and conceptual schema.
• If the structure of conceptual schema is changed, then external/conceptual mapping must be
changed accordingly and external schema can remain invariant.
• There could be several mappings between external and conceptual levels.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 8


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 9


BCA SEM – 2 Subject: DBMS – 1 Unit - 1
# Explain Data Independence.

1. Data Independence:
• Data independency is the ability to modify a schema definition in one level without affecting a
schema definition in the next higher level.

2. Types of data independence:


• Physical data independence
• Logical data independence

(1) Physical data independence:


• Physical data independence allows changing in physical storage devices or organization of file
without change in the conceptual view or external view.
• Modifications at the internal level are occasionally necessary to improve performance.
• Physical data independence separates conceptual level from the internal level.
• It is easy to achieve physical data independence.

(2) Logical data independence:


• Logical data independence is the ability to modify the conceptual schema without requiring
any change in application programs.
• Conceptual schema can be changed without affecting the existing external schema.
• Modifications at the logical level are necessary whenever the logical structure of the database
is altered.
• Logical data independence separates external level from the conceptual view.
• It is difficult to achieve logical data independence.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 10


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

# What is a Database Models? Explain different types of Data Models.

• A database model is a type of data model that defines the logical structure of a
database.

• A data model is a conceptual representation of the data structures that are required by
a database.

• To use a common analogy, the data model is equivalent to an architect's building plans.

• It determines how data can be stored, accessed and updated in a database management
system.

• The most popular example of a database model is the relational model, which uses a table-
based format.

• Importance of Data Model:


• Representations, usually graphical, of complex real-world data structures.

• Facilitate interaction among the designer, the applications programmer and the end user.

• End-users have different views and needs for data.

• Data model organizes data for various users.

• Type of Database Models are:


1. Hierarchical Model
2. Network Model
3. Entity-relationship Model
4. Relational Model

1. Hierarchical Model:
• The hierarchical model organizes data into a tree-like structure, where each record has a
single parent or root.
• The hierarchy starts from the Root data, and expands like a tree, adding child nodes to the
parent nodes.
• In hierarchical model, data is organized into tree-like structure with one-to-many relationship
between two different types of data, for example, one department can have many professors
and many students.
• Oldest data base model. (1950’s)
• Tree structure is most frequently occurring relationship.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 11


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

• Advantages:
• Simplicity
• Data security
• Data Integrity
• Efficiency : When contains large no of relations

• Disadvantages:
• Implementation complexity
• Database management problem : maintaining difficult
• Lack of structural independence
• Programming complexity

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 12


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

2. Network Model:
• This is an extension of the hierarchical model, allowing ma many-to-many relationships in a
tree-like structure that allows multiple parents.
• Graph structure.
• Allow more connection between nodes.
• Ex: An employee work for two departments is not possible in hierarchical model, but here it
is possible.

• Advantages
• Conceptual simplicity.
• Can handle more relationships.
• Ease of data access.
• Data integrity.
• Data independence.
• Database standards.

• Disadvantages
• System Complexity
• Absence of structural independence

3. Entity-relationship Model:
• In this database model, relationships are created by dividing object of interest into entity
and its characteristics into attributes.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 13


BCA SEM – 2 Subject: DBMS – 1 Unit - 1

4. Relational Model:
• In this model, data is organized in two-dimensional tables and the relationship is maintained
by storing a common attribute.
• Data in the form of table
• each table = an entity.
• each row = instances of that entity.
• Most popular database model.

• Advantages
• Structural independence
• Conceptual simplicity
• Design , implementation , maintenance and usage ease
• Query capability
• Very powerful
• Flexible

• Disadvantages
• Hardware Overhead
• Can lead to bad database design
• Complex to understand when there is more number of tables.

Compiled & Prepared By: Dr. Jaypalsinh A. Gohil Page 14

You might also like