Independent University, Bangladesh: Serial No Student ID Student Name Contributor Status Marks
Independent University, Bangladesh: Serial No Student ID Student Name Contributor Status Marks
Independent University, Bangladesh: Serial No Student ID Student Name Contributor Status Marks
Submitted By
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";
FROM payment
WHERE payment_method="Bkash";
FROM customer;
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;
FROM customer
WHERE active_or_not=no;
9. SELECT count(product_price)
FROM orders
WHERE product_price>=5000;
FROM orders;
FROM product
WHERE product_origin="dhaka";
12. SELECT order_id, product_price
FROM orders
WHERE product_price<=500;
FROM orders
WHERE product_price>=500;
FROM product;
FROM orders
WHERE product_quantity=5;
FROM customer
FROM supplier;
FROM payment;
FROM product;
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.