Dbms 2023
Dbms 2023
*Presentation Layer: The presentation layer, also known as the user interface layer, is the -it is a high-level conceptual data.
part of the DBMS that is visible to end-users and application programs. It provides a -it specify desired component & relationship among those component.
graphical user interface (GUI) or command line interface (CLI) for users to interact with -it based on data perception in real world that consist set of entity & relationship among
the system. The presentation layer includes forms, screens, reports, and other user those entity.
interface elements that allow users to view and manipulate data. *Entity
*Business Layer: The business layer, also known as the application layer, provides the -they have physical or logical existence.
business logic and rules for processing data in the DBMS. It includes the application -is anything in real world with its physical existence.
programs that access and manipulate data in the database. The business layer also -it may be an object with a physical or logical existence.
includes the middleware that connects the presentation layer to the database layer, -it has its own properties which describes that they known as attributes.
enabling communication and data transfer between the layers. *attributes
*Database Layer: The database layer, also known as the data storage layer, is the lowest -it has own properties which describes that they known as attributes.
layer of the DBMS architecture and deals with the actual storage and retrieval of data. It -attribute value major part of data stored in database .
includes the physical storage devices and database management software that manage -Employee entity may be described by attributes name, age, phone etc.
the data stored in the database. The database layer provides the data persistence and *Relationships
integrity needed to ensure that data is stored and retrieved accurately and reliably. -it is an association among one or more entities.
-Use diamond shape to show relationship.
Database Administrator . -It is recommended to arrange relationship to be read it from left to right or up to down.
*Database Design: -The DBA is responsible for designing the database structure, which
includes defining tables, columns, relationships, constraints, and indexes. Relational Algebra Operation.
*Selection Operation (σ): This operation is used to select a subset of tuples from relation
*Installation and Configuration: -The DBA installs and configures the DBMS software on that meet a specified condition.
servers and client machines. This includes configuring security settings, storage settings, *Projection Operation (π): This operation is used to select specific columns from a
and other system parameters. relation.
*Union Operation (⋃): This operation is used to combine two or more relations into a
*Performance Tuning: -The DBA monitors the system to optimize performance. This single relation. The resulting relation contains all tuples that are present in either of the
includes analyzing performance metrics, identifying performance bottlenecks, and input relations, excluding duplicates.
making changes to the system to improve performance. *Intersection Operator (∩): -The intersection operator returns the tuples that are
common to both input relations.
*Backup and Recovery: -The DBA is responsible for creating backup and recovery plans to *Cartesian Product Operator (×): -The Cartesian product operator combines all possible
ensure that data is not lost due to system failures or disasters. This includes creating pairs of tuples from two or more relations. The resulting relation contains tuples that
backup schedules, testing backup and recovery procedures, and verifying data integrity. have all possible combinations of the attributes from the input relations.
*Join Operation (⨝): This operation is used to combine two or more relations based on a
*Security Management: -The DBA ensure that data is protected from unauthorize access. common attribute or set of attributes. The resulting relation contains tuples that have
This include creating user accounts, assigning roles & permissions, auditing user activity. matching values for the specified attributes in the input relations.
*Difference Operator (-): -difference operator returns the tuples that are present in the
*Maintenance and Upgrades: -The DBA performs routine maintenance tasks, such as first input relation but not in the second input relation.
database defragmentation, index rebuilding, and data archiving. The DBA is also *Rename operation(ρ): -Rename is a unary operation used for renaming attributes of a
responsible for upgrading the DBMS software to new versions or patches. relation. Is is denoted by rho.
Data Definition Language. Explain SQL Arthmetic Function.
-To create database schema and database objects like table Data Definition Language can SQL arithmetic functions are used to perform mathematical operations on numerical data
be used. types such as integers, decimals, and floats. These functions can be used in conjunction
-DDL statements are used to build and modify the structure of your tables and other with SQL queries to calculate values based on data stored in a database.
objects in the databased. *Addition : The addition function is used to add two or more values.
-1. CREATE Statement, 2. ALTER Statement, 3. DROP Statement, 4. RENAME Statement, *Subtraction : The subtraction function is used to subtract two or more values.
5.TRUNCATE Statement. *Multiplication (*): The multiplication function is used to multiply two or more values.
-When you execute DDL statement, it takes effect immediately, it is Auto-committed into *Division (/): The division function is used to divide two or more values.
database. Hence no rollback operation can be performed with these set of commands. *Modulo (%): The modulo function returns the remainder of a division operation.
-Database objects are any data structure created in database. *Power function (POWER): The power function is used to raise a value to a certain power.