Independent University, Bangladesh: Serial No Student ID Student Name Contributor Status Marks

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

Independent University, Bangladesh

Submitted By

Serial Student ID Student Name Contributor Status Marks


No
1. 1710740 Mohammad Sharfuddin Ali Group Leader
2. 1810039 Hafsa Selim Member
3. 1711122 Md Tanjil Kader Turag Member
4. 1921476 Sadman Sakib Ruhan Member

SUBMITTED TO:
Name of the Course Md. Aminul Islam, CSCA™
Instructor
Designation Lecturer
Department Department of Management Information System
School School of Business
University Independent University, Bangladesh
Date of Submission: January 13, 2021

Tables:
1.Customer table:

In this table there are 7 entities and 30 records in each entity. There is customer id, customer
name, customer email, customer address, customer phone number, customer since, active or not
as entity. In this table, here shows that all the details of the customers of eorder.com.bd.

2.Logins table:
In this table there are 5 entities and 30 records in each entity. There is login id, username,
password, customer id, email as entity. In this table, here shows that all the details of the
customers login information of eorder.com.bd website.
3.Orders Table:

In this table there are 6 entities and 30 records in each entity. There is order id, product price,
product code, product quantity, order shipped as entity. In this table, here shows that all the
details of the orders of eorder.com.bd including all the prices and quantities of the products.
4.Payment Table:

In this table there are 5 entities and 30 records in each entity. There is Transaction id, payment
date, customer id, payment amount, payment method as entity. In this table, here shows that all
the details of payments of eorder.com.bd including payment amount, payment date and methods
etc.
5.Product table:

In this table there are 5 entities and 30 records in each entity. There is product code, product
type, product quantity available, product sold, product origin as entity. In this table, here shows
that all the details of the products of eorder.com.bd including all the products type, quantity,
origin and overall inventory of eorder.com.bd.
6.Supplier Table:
In this table there are5 entities and 30 records in each entity. There is supplier id, supplier name,
contact number, region, postal code as entity. In this table, here shows that all the details of
supplier of eorder.com.bd including their contact number and all the necessary information.

ER Diagram
Here, in this diagram shows that the relationships of elements within entities among product,
customers, orders, supplier, payment, logins of eorder.com.bd. All of them are interrelated. It is a
visual representation of different entities within this system and they relate to each other. By
defining all the entities, their attributes, and showing the relationships between them and this
diagram illustrates the logical structure of databases.

List Of 20 Quarries:
SQL Codes of 20 quarries:
1.SELECT supplier_name, supplier_id, contact_number, region

FROM supplier

WHERE region="Arizona";

2. SELECT customer_id, payment_method, transaction_id

FROM payment

WHERE payment_method="Bkash";

3. SELECT customer_id, payment_method, payment_date, transaction_id


FROM payment

WHERE payment_method="credit card";

4. SELECT customer_name, customer_since

FROM customer;

5. SELECT supplier_id, contact_number, region

FROM supplier

WHERE region="dhaka";

6. SELECT max(payment_amount)-min(payment_amount)

FROM payment;

7. SELECT max(payment_amount)-min(payment_amount)

FROM payment;

8. SELECT customer_name, customer_since, active_or_not, customer_email

FROM customer

WHERE active_or_not=no;

9. SELECT count(product_price)

FROM orders

WHERE product_price>=5000;

10. SELECT order_id, order_date, order_shipped

FROM orders;

11. SELECT product_code, product_type, product_origin

FROM product

WHERE product_origin="dhaka";
12. SELECT order_id, product_price

FROM orders

WHERE product_price<=500;

13. SELECT order_id, product_price

FROM orders

WHERE product_price>=500;

14. SELECT product_type, product_quantity_available, product_sold

FROM product;

15. SELECT order_id, product_quantity

FROM orders

WHERE product_quantity=5;

16. SELECT customer_name

FROM customer

WHERE customer_name="Sunan Ahmed";

17. SELECT supplier_name, contact_number, region

FROM supplier;

18. SELECT sum(payment_amount)

FROM payment;

19. SELECT sum(product_sold)

FROM product;

20. SELECT username, password

FROM logins;
Output after running the codes:

1.

2.

3.

4.
5.
6.

7.
8.
9.

10.
11.

12.

13.
14.
15.
16.

17.
18.
19.

20.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy