Documente Academic
Documente Profesional
Documente Cultură
By
Lalit Jain
What Is Data?
• Data Is A Collection Of Facts, Figures And Statistics
Related To An Object.
• Data Can Be Processed To Create Useful
Information.
• Data Is A Valuable Asset For An Organization.
• Data Can Be Used By The Managers To Perform
Effective And Successful Operations Of
Management.
• It Also Enables The User To Make Better Decision
For Future.
• Data Is Very Useful For Generating Reports, Graphs
And Statistics.
Lalit Jain
Example
• Students Fill An Admission Form When
They Get Admission In College.
• The Form Consists Of Raw Facts About
The Students.
• These Raw Facts Are Student's Name,
Father Name, Address Etc.
• The Purpose Of Collecting This Data Is To
Maintain The Records Of The Students
During Their Study Period In The College.
Lalit Jain
What is Information?
Lalit Jain
Example
Lalit Jain
What Is Database?
Lalit Jain
Database Management System?
Lalit Jain
Concepts Of RDMS
• Relational Database Management System.
• It Is Used To Established Relationships Between The
Data In A Database To Ensure The Integrity Of The
Data.
• These Relationships Enable You To Prevent Users
From Entering Incorrect Data.
• The Data In RDBMS Is Stored In Database Objects
Called Tables.
• A Table Is A Collections Of Related Data Entries And
It Consists Of Columns And Rows.
Lalit Jain
DBMS v/s RDBMS
Lalit Jain
EXAMPLE
Lalit Jain
EXAMPLE
• DBMS Example:
• Oracle
• DB2
• SQL Server
• Access
• RDMS EXAMPLE:
• Oracle
• DB2
• SQL Server
• Access
Lalit Jain
Define Normalization
Lalit Jain
Advantages Of Normalization
• Smaller Database:
– By Eliminating Duplicate Data, You Will Be Able
To Reduce The Overall Size Of The Database.
• Better Performance:
– Narrow Tables: Having More Fine-tuned Tables
Allows Your Tables To Have Less Columns And
Allows You To Fit More Records Per Data Page.
– Fewer Indexes Per Table Mean Faster
Maintenance Tasks Such As Index Rebuilds.
– Only Join Tables That You Need.
•
Lalit Jain
Disadvantages Of Normalization
Lalit Jain
Normalization Rules
• There Are Various Types Of Normalization
Rules Defined Which As Followed:-
Lalit Jain
First Normal Form(1NF)
• This Is The "Basic" Level Of Normalization And
Generally Corresponds To The Definition Of Any
Database, Namely:
– It Contains Two-dimensional Tables With Rows And
Columns.
Lalit Jain
Example On 1NF
• Table Not In 1NF State:
• Table Name: Software_Details
COMPUTER SOFTWARE
1 Word
3 Word , Excel
Lalit Jain
Solution
• To Follow The First Normal Form, We Store One
Type Of Software For Each Record.
• Table Name: Software_Details
COMPUTER SOFTWARE
1 Word
2 Access
2 Word
2 Excel
3 Word
3 Excel
Lalit Jain
Second Normal Form(2NF)
2 Excel
3 Word
3 Excel
Lalit Jain
Solution
• To Eliminate The Redundant Storage Of Data, We Create Two
Tables. The First Table Stores A Reference Softwareid To Our
New Table That Has A Unique List Of Software Titles.
• Table : Software_Details Table: SoftwareId_Details
COMPUTER SOFTWAREID SOFTWAREID SOFTWARE
1 1 1 Word
2 2 2 Access
2 1 3 Excel
2 3
3 1
3 3
Lalit Jain
Third Normal Form(3NF)
• Table: Details
Computer UserName UserHireDate Purchased
Lalit Jain
Solution
Table:Computer_Purchased
Computer Purchased
1 5/1/2003
2 6/15/2004
Table:User_Details Table:Computer_Details
UserHire User Computer
User UserName
Date
1 5/1/2003
1 Lalit 4/1/2000
2 6/15/2004
2 Suresh 9/5/2003
Lalit Jain
Denormalization
Lalit Jain