Professional Documents
Culture Documents
ASSIGNMENT
Solution
Question no.1:
Answer:
Customer is an entity. Its attributes are first name, last name, mobile no, email ID, home address,
city, password.
Product is an entity whose attributes are product id, product name, product description and
product price.
Login:
1. First name
2. Last name
3. Email ID
4. Password
5. City
6. Address
7. Mobile No
Customer:
1. Customer ID
2. Name
3. Password
4. City
5. Address
6. Mobile No
7. Email ID
Registration:
1. Name
First Name
Last Name
2. Email ID
3. Password
4. City
5. Address
6. Mobile No
Bill:
1. Bill ID
2. Name
3. Mobile No
4. City
5. Address
6. Payment
Cash
Credit Card
Product Info:
1. Product ID
2. Name
3. Description
4. Price
Question no.2:
Answer:
Design Entity Relationship Diagram (ERD), showing proper relationship among the entities.
Answer:
Name
Last Name
1
Customer Password
Email ID
Register
M 1 1
1 Email ID
Password
Registration
City
1
Mobile No
Can Address
Login to Purchases
system
City
Mobile No
Provides
Address Product ID
M
1 Name
Login ID Product Info
1
Login
Pay Description
Email ID
Price
Password 1
Bill
Bill ID Address
Name
City
Mobile No Payment