Dbms Unit 1 Minors - Part-2
Dbms Unit 1 Minors - Part-2
Dbms Unit 1 Minors - Part-2
• The developers keep away the complex data from the user and
remove the complications so that the user can comfortably
access data in the database and can only access the data they
want, which is done with the help of data abstraction.
• With the help of data abstraction, developers hide irrelevant
data from the user and provide them the relevant data. By
doing this, users can access the data without any hassle, and
the system will also work efficiently.
Level of Abstraction in a DBMS
• This layer contains all the complex data structures and the data
accessing methods defined.
• There is a data center that securely stores the raw data in detail
on hard drives at this level.
Example:
• This layer does not have any information about how the end
user will view the data.
• Users view data in the form of rows and columns. Tables and
relations are used to store data.
• Users can just view the data and interact with the database,
storage and implementation details are hidden from them.
Conclusion
• Data abstraction in DBMS means hiding unnecessary
background details from the end user to make the accessing of
data easy and secure.
• In DBMS, there are 3 levels of data abstraction:
• Physical Level or Internal Level: This is the layer where the
raw data is stored in file format on physical hard drives.
• View Level or External Level: At this level, the end users get
the data depending on the queries. The same data can be
viewed in multiple ways, like tables, graphs, or pie charts.
3 Tier Schema Architecture in DBMS
• In DBMS, the 3-tier architecture is a client-server architecture
that separates the user interface, application processing, and
data management into three distinct tiers or layers.
• At the other end, the database tier is not aware of any other
user beyond the application tier.
• We also have the relations that define the data and their
constraints at this level.
Benefits of 3-Tier Architecture
1.Hardware
2.Software
3.Data
4.Procedures
5.People
Structure of Database Management System
• The database system is divided into three classifications
• Query Processor,
• Disk Storage.
Query Processor :
• It interprets the requests (queries) received from end user via
an application program into instructions.
4. Query Optimizer:
3. Transaction Manager:
• NOT NULL
• UNIQUE
• CHECK
• DEFAULT
• PRIMARY KEY
• FOREIGN KEY
• The following can be guaranteed via constraints
• Data Accuracy
• Data Consistency
• Data integrity
Types of Constraints in DBMS
• Domain Constraints
• Key Constraints
Subclass/Derived Class :
• G R A N T: g r a n t p e r m i s s i o n s t o t h e u s e r f o r r u n n i n g
DML(SELECT, INSERT, DELETE,…) commands on the
table