Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Project 2

(Prerana Karnik ID:156466)


Preranas Online flower shop is an online florist website. People can view, select and send
flowers to their loved ones online. Functional area for delivery is complete USA and some part
of Canada. Following are the details of the backend database needed for the website.

Database Tables
Tables

Relationship

Relation Type

Product

Customer, Order, Payment,


Delivery

M:M

Customer

Order, Payment

1:M

Order

Product, Customer

M:M

Payment

Product, Customer, Order

1:M

Delivery

Payment, Order

1:1

Table Details
Tables

Fields

Product

PID, Pname, Pdescription, Pcost, Psupplier, Pavailability

Customer

CID, CFname, CLname, Cemail_addr, Cphone_no,


Cbilling_details, User_id, Password

Order

OID, Odetails, Ototal_cost, PID, CID

Payment

PyID, OID, Pybilling

Delivery

DID, OID, Daddress, Ddate, Dmessage, Dstatus

ER Diagram

3 Most Common Database Queries


1. To add different products to cart
---- INSERT INTO Order VALUES (OID, Odetails, Ototal_cost, PID, CID);
2. To view cart details
----SELECT * FORM Order WHERE OID=current_no;

3. To check delivery status


----SELECT Dstatus FROM Delivery Where DID=some_no;

Tables created in MS Access

You might also like