1.convert Information Model To ER Model (With Minimum 3 or More Entites)
1.convert Information Model To ER Model (With Minimum 3 or More Entites)
SHOPPING CART:
INFORMATION MODULE:
A online shopping cart enables us to shop online. As we all know that now-a-
days online shopping has became popular, because of it’s advantages. Online
shopping cart reduces the time for shopping and makes the shopping safe and
convenient for the users. Also, allows easy payment of bills.
1.ER MODEL:
2.convert ER Model to Relational Model.
RELATIONAL MODEL:
CUSTOMER
SHOPPING CART
PRODUCT
D6488w Tv 2
Dyg7399 Fan 4
Dfg7487 Ac 2
Y937493 Computer 2
Normalization:
1.)1 nf:
The first normal form. A table is said to be in 1nf if it satisfies the following
rules:
Ex:
Before 1nf:
1 A 1265,3654 Dbms Os
2 B 4758 Os R
3 C 3647 R Dbms
After 1 nf:
Roll no Name
1 A
2 B
3 C
Roll no Phno
1 1265
2 4758
3 3647
1 3654
2.)2 nf:
Ex:
Before 2nf:
1 Dbms A
1 Os A
2 R B
After 2nf:
Fid Fname
1 A
2 B
Fid Sub
1 Dbms
1 Os
2 R
3.)3 nf:
1.)It should be in 2nf.
Ex:
Before 3nf:
1 A 57788 E Ap
2 B 79899 F Ts
After 3nf:
1 A 57788
2 B 79899
57788 E Ap
79899 F Ts
DDL COMMANDS:
Create:
Alter:
Drop:
DML COMMANDS:
Insert:
Update:
Delete:
Where:
Group by:
Having:
Order by:
Nested query:
In:
Not in:
In:
Like:
Relational operators: