
































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































































File Oriented approach: The traditional file oriented approach to information processing has for each application a separate master file and its own set of personal file. In file oriented approach the program dependent on the files and files become dependent on the files and files become dependents upon the programs **Disadvantages of file oriented approach:
Data independence is usually considered from two points of views; physically data independence and logical data independence. Physical data Independence allows changes in the physical storage devices or organization of the files to be made without requiring changes in the conceptual view or any of the external views and hence in the application programs using the data base. Logical data independence indicates that the conceptual schema can be changed without affecting the existing external schema or any application program. Disadvantage of DBMS:
The external level is at the highest level of database abstraction. At this level, there will be many views define for different users requirement. A view will describe only a subset of the database. Any number of user views may exist for a given global or subschema. for example , each student has different view of the time table. the view of a student of Btech (CSE) is different from the view of the student of Btech(ECE).Thus this level of abstraction is concerned with different categories of users. Each external view is described by means of a schema called schema or schema. Conceptual level : At this level of database abstraction all the database entities and the relationships among them are included. One conceptual view represents the entire database. This conceptual view is defined by the conceptual schema. The conceptual schema hides the details of physical storage structures and concentrate on describing entities , data types, relationships, user operations and constraints. It describes all the records and relationships included in the conceptual view. There is only one conceptual schema per database. It includes feature that specify the checks to relation data consistency and integrity. Internal level : It is the lowest level of abstraction closest to the physical storage method used. It indicates how the data will be stored and describes the data structures and access methods to be used by the database. The internal view is expressed by internal schema. The following aspects are considered at this level:
Online users : These are users who may communicate with the database directly via an online terminal or indirectly via a user interface and application program. These users are aware of the database system and also know the data manipulation language system. Application programmers : Professional programmers who are responsible for developing application programs or user interfaces utilized by the naĆÆve and online user falls into this category. Database Administration : A person who has central control over the system is called database administrator. The function of DBA are :
responsible of database manager to control the problems occurs for concurrent transactions. query processor: The query processor used to interpret to online userās query and convert it into an efficient series of operations in a form capable of being sent to the data manager for execution. The query processor uses the data dictionary to find the details of data file and using this information it create query plan/access plan to execute the query. Data Dictionary: Data dictionary is the table which contains the information about database objects. It contains information like
access to the data, whereas a file-processing system coordinates only the physical access.
Data model: The data model describes the structure of a database. It is a collection of conceptual tools for describing data, data relationships and consistency constraints and various types of data model such as
Relationship sets: A relationship is an association among several entities. A relationship set is a set of relationships of the same type. Formally, it is a mathematical relation on n>=2 entity sets. If E1,E2ā¦En are entity sets, then a relation ship set R is a subset of {(e1,e2,ā¦en)|e1Š E1,e2 Š E2..,en Š En} where (e1,e2,ā¦en) is a relation ship. customer (^) borro loan Consider the two entity sets customer and loan. We define the relationship set borrow to denote the association between customers and the bank loans that the customers have. Mapping Cardinalities: Mapping cardinalities or cardinality ratios, express the number of entities to which another entity can be associated via a relationship set. Mapping cardinalities are most useful in describing binary relationship sets, although they can contribute to the description of relationship sets that involve more than two entity sets. For a binary relationship set R between entity sets A and B, the mapping cardinalities must be one of the following: one to one: An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A. Eg: relationship between college and principal 1 1 1 1 college (^) has principal One to many: An entity in A is associated with any number of entities in B. An entity in B is associated with at the most one entity in A. Eg: Relationship between department and faculty 11 M 1 Department Works Faculty in
Many to one: An entity in A is associated with at most one entity in B. An entity in B is associated with any number in A. 1 M Course Teach Faculty es Many āto-many: Entities in A and B are associated with any number of entities from each other. 1 M Customer Depos Account it More about entities and Relationship: Recursive relationships: When the same entity type participates more than once in a relationship type in different roles, the relationship types are called recursive relationships. Participation constraints: The participation constraints specify whether the existence of any entity depends on its being related to another entity via the relationship. There are two types of participation constraints Total : .When all the entities from an entity set participate in a relationship type , is called total participation. For example, the participation of the entity set student on the relationship set must āoptsā is said to be total because every student enrolled must opt for a course. Partial: When it is not necessary for all the entities from an entity set to particapte ion a relationship type, it is called participation. For example, the participation of the entity set student in ārepresentsā is partial, since not every student in a class is a class representative. Weak Entity: Entity types that do not contain any key attribute, and hence can not be identified independently are called weak entity types. A weak entity can be identified by uniquely only by considering some of its attributes in conjunction with the primary key attribute of another entity, which is called the identifying owner entity. Generally a partial key is attached to a weak entity type that is used for unique identification of weak entities related to a particular owner type. The following restrictions must hold:
The overall logical structure of a database using ER-model graphically with the help of an ER-diagram. Symbols use ER- diagram: entity Weak entity attribute Multi valued attribute Derived attribute Key attribute 1 1 One-to -one m 1 many-to -one composite attribute Relationship Identifying Relationship 1 m One-to -many m n many-to -many Total participation Partial participation