Upcoming SlideShare
×

# Normalization,ddl,dml,dcl

470 views
396 views

Published on

Normalization,ddl,dml,dcl

Published in: Education, Technology, Travel
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
470
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
8
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Normalization,ddl,dml,dcl

1. 1. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
2. 2. Week Target Achieved 1 20 12 2 20 15 3 Typing Speed
3. 3. Jobs Applied # Company Designation Applied Date Current Status 1 2 3
4. 4. Normalization,ddl,dml,dcl Name MOHAMMED NASEEF PP naseefpp92@gmail.com Mohammed naseef pp naseefpp92 in.linkedin.com/in/profilena me 9995614354
5. 5. What is normalization • Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency • Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. • The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database using the defined relationships.
6. 6. • Two goals of normalization process:  Eliminating Redundant Data  Ensuring data dependencies • Main objective:  Isolate data  Reduce the amount of database space  Make database structure flexible  Consistent throughout database
7. 7. Normalization Stages • 1NF • 2NF • 3NF • Boyce-Codd Normal Form (BCNF or 3.5NF)
8. 8. First Normal Form (1NF) • The values in each column of a table are atomic . • Each table has a primary key. • There are no repeating groups.
9. 9. Second Normal Form (2NF) • Should be in 1NF. • Remove subsets of data that apply to multiple rows of a table and place them in separate tables. • Create relationships between tables.
10. 10. Third Normal Form (3NF) • should be 2NF. • Has no transitive functional dependencies. • Remove columns that are not dependent upon the primary key. • To convert 2NF to 3NF, we again divide tables.
11. 11. Boyce-Codd Normal Form(BCNF) • Should be 3NF. • Every determinant must be a candidate key. • All tables can have only one primary key • Candidate Key:  Any attribute or a set of attributes together that has the eligibility to become a primary key.
12. 12. What is ddl? • DDL (Data definition language) defines your database structure. CREATE and ALTER are DDL statements as they affect the way your database structure is organized.
13. 13. What is dml? • DML (Data Manipulation Language) lets you do basic functionalities like INSERT, UPDATE, DELETE and MODIFY data in database
14. 14. What is dcl? • DCL (Data Control Language) controls you DML and DDL statements so that your data is protected and has consistency. COMITT and ROLLBACK are DCL control statements. DCL guarantees ACID fundamentals of a transaction.