DATABASE MANAGEMENT SYSTEMS UNIT ONE - TOPIC ONE INTRODUCTION TO DBMS
Database Management System (DBMS)
A Historical Perspective or History of Database Systems
Database Management System (DBMS)
Database System Applications
DATABASE MANAGEMENT SYSTEMS UNIT ONE - TOPIC TWO DATA MODELS
Entity-Relationship Model
Object-Oriented Data Model
DATABASE MANAGEMENT SYSTEMS UNIT ONE - TOPIC THREE LEVELS OF ABSTRACTION AND DATA INDEPENDENCE
View level / External View: (Who)
Benefits of Levels of Abstraction in DBMS
DATABASE MANAGEMENT SYSTEMS UNIT ONE - TOPIC FOUR STRUCTURE OF DBMS
Query Processor contains the following components
It contains the following components -
Four. Application Programmers:
Five. Naïve Users / Parametric Users:
Six. Sophisticated Users:
Seven. Casual Users / Temporary Users:
Data as a Corporate Asset:
Role of a Database in an Organization:
DataBase Administration Function:
DBA skills are be divided into two categories Managerial Role Technical Role
Two. Policies, Procedures and Standards
Three. Data Security, Privacy and Integrity
Four. Data Backup and Recovery
The technical aspects of the DBA's job are rooted in the following areas of operation:
Two. Designing and implementing databases and applications.
Three. Testing and evaluating databases and applications.
Four. Operating the DBMS, utilities, and applications.
Five. Training and supporting users.
Six. Maintaining the DBMS, utilities, and applications.
Database design is the set of procedures or collection of tasks used for organizing the data to implement a database.
The database design process can be divided into six steps. The ER model is most relevant to the first three steps.
Entity-Relationship Model:
Components of ER Diagram:
Example - Strong Entity Set
Attributes are represented with ellipse
Four. Single-valued attribute: As the name suggests, they have a single value.
DATABASE MANAGEMENT SYSTEMS Database Design and ER Model
Many to Many Relationships
Three. Ternary Relationship
ADDITIONAL FEATURES OF THE ER MODEL
Participation Constraints:
Types of Participation Constraints:
Two. Partial Participation
DATABASE MANAGEMENT SYSTEMS Conceptual Design Using the ER Model
One. Entity vs. Attribute
Two. Entity versus Relationship
Three. Binary versus Ternary Relationships
Four. Aggregation versus Ternary relationship
DATABASE MANAGEMENT SYSTEMS SQL - DATA DEFINITION LANGUAGE
Transaction Control Language
Syntax: CREATE Object type Object name;
Syntax: create database database name;
Create Table using Another Table:
ALTER- ADD ALTER- MODIFY ALTER-DROP
To Drop a column from an existing table:
Ex: alter table emp drop column mobile; To modify a column in the Table:
ALTER TABLE table_name MODIFY columnname-1 datatype(size);
Renaming the column name in an existing table:
DATABASE MANAGEMENT SYSTEMS DATA MANIPULATION LANGUAGE
What is Advantages of SQL?
DATA MANIPULATION LANGUAGE
Example: select * from employee;
Syntax to select selected rows and selected columns:
DATABASE MANAGEMENT SYSTEMS Transaction Control Language (TCL) Commands
TCL Commands - Save point Commit and Roll back:
Example: Using Savepoint and Rollback:
DATABASE MANAGEMENT SYSTEMS Data Control Language
Grant Privileges on Table
Revoke Privileges on Table:
REVOKE privileges ON object FROM user_account_name;
Let's look at some examples of how to revoke privileges on tables in SQL Server.
Differences between Grant and Revoke commands:
Disadvantages of DCL commands: