Professional Documents
Culture Documents
---------------
what? Microsoft SQL Server(Database management software) - SQL (Structured query
language)
how? weekend batch - 3hr - 24hr live class (1st half - 15min break - 2nd half)
SQL
HA , HA-DR
Application Layer:
User Interface - HTML, CSS
Applicatation layer - c#, java
Database layer - SQL
-- Command types:
DQL, DDL, DML, DCL
1 --> 25
2 --> 26
3 --> 26
2 --> 26/27
Name: Trupti
-- What is normalization?
Technique to minimize data duplication and increase logical consistency.
-- What is consistency?
there should not be any data mismatch between different acess.
-- what is integrity?
If the data is consistent that means the table maintainded its integrity.
-- what is dependency?
It is the logical relation between two columns in a table.
-- Funtional dependency:
A cell value in a row can uniquely determine the other cell values of the same row
-- Functional dependency
A --> B If for the value of A there is a unique value of B
a1 --> b1
a1 --> b2
Here for the value of A as a1 we are not getting unique value of B
as there two values of B as b1 and b2
1 --> 10
3 --> 10
4 --> 15
4 --> 20
Table(A,B,C,D,E)
A --> B,C,D,E
A,B --> C,D,E
A,B,C --> D,E
Note: All the candidate keys are super key but all the super keys are not candidate
keys.
ID --> Name
ID --> City
ID --> AreaCode
AreaCode --> City
ID --> AreaCode
AreaCode --> City
ID --> City
a --> b
a --> b
a --> b
Example:
PersonDetails(ID, Name, Age, country, nationality)
1, raj, India, Indian
2, Bob, US, American
3, Puja, India, Indian
4, Liza, US, American
country --> nationality
India --> Indian
US --> American
-- Decomposition
Table(a,b,c,d,e,f)
a --> bc -- a,b,c
d --> ef -- d,e,f
Table1(a,b,c)
Table2(d,e,f)
Table1 U Table2
a --> bc
d --> ef
-- If the related columns of any functional dependency present is a table then only
we can retain the dependency
lossless join decomposition --> All the columns should be preserved in the sub
tables
Dependency preserving decomposition --> All the funtional dependencies should be
preserved
-- decompose student table into two sub tables using lossless join decomposition
technique
Student(SID, S_Name, S_Age, S_Address, S_Contact, S_Gender)
-- decompose student table into two sub tables using dependency preserving
technique
Student(SID, S_Name, S_Age, S_Gender, S_AreaCode, S_Address, S_City)
---------------------------Normalization---------------------------------
-- What is normalization?
Technique to minimize data duplication and increase logical consistency.
1, java, music
1, java, Dance
1, java, Writing,
1, java, Books
Table1(eid, cert)
1, java
Table2(eid, hobby)
1, music
1, Dance
1, Writing
1, books
-- Hotel management
-- problem statement
-- requirement gathering
-- requirement analysis
-- design / database design --> ER Diagram
-- database implementation
-- test
-- stage
-- feedback