DBMSPPT
DBMSPPT
A Presentation on
Advance Database
Management System
3706 Aishwarya Patil
3707 Ajinkya Bhandare
3709 Akash Khandagale
• Modified Er Diagram
• Database Normalization
1NF
2NF
3NF
BCNF
• Advance SQL Queries
1. join operations
2.Set operations
3. Aggregate Functions
4.Nested Subquery
5. Procedures
6. Triggers
Modified Er Diagram
Database Normalization
• Normalization splits the larger table into smaller ones and uses relationships to
connect them.
•First normal form: An attribute (column) of a table cannot hold multiple values.
It should hold only atomic values
• First normal form (1NF) sets the very basic rules for an organized database
• There are no repeating or duplicate fields
• Each cell contains only a single value
• Each record is unique (identified by a primary key)
Unnormalized table :
1NF Normalized Table:
•Storage: More storage is required for data that
are not needed
•SELECT: It is easier to perform. Employees that
1st normal form – speak a specific language are easier
found.
to be
• Second normal form: an entity type is in second normal form (2NF) when it is in
1NF and when every non-key attribute, any attribute that is not part of the
primary key, is fully dependent on the primary key
•A table is said to in second normal form (2NF) if both the following conditions hold:
• Table is in first normal form (1NF)
• No non-prime attribute is dependent on the proper subset of any candidate
key of the table
Unnormalized Table:
Query:
Output:
Summary:
Advance SQL Queries
Task: obtaining the product names for all orders with the order number 01
Query:
Output:
Summary:
Advance SQL Queries
Task: customer purchase history
Query:
Output:
Summary:
Advance SQL Queries
Task: Total sales in different months
Query:
Output:
Summary:
Advance SQL Queries
Task: Trigger to add 10% discount on purchase above 5000
Query:
Output:
Summary: