You are on page 1of 4

CS507

ASSIGNMENT
Solution
Question no.1:

Identify the entities and the related attributes.

Answer:

The entities and their related attributes are as follows:

Company is an entity. Its attributes are company name, business type.

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.

bill is an entity whose attributes are payment mode.

Entity & attributes:

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:

List down the type of attributes in appropriate column of below table.

Answer:

Multi value attributes Derived attributes Composite attributes

Product’s name Product ID Customer’s address

Mobile number(more than 1) Employee ID Product description

Customer ID Company business description

Bill number Customer name (first, last name)


Question no.3:

Design Entity Relationship Diagram (ERD), showing proper relationship among the entities.

Answer:

First Name Customer ID

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

Cash Credit Card

You might also like