0% found this document useful (0 votes)
64 views22 pages

MIS442 Sec 4 Group 8 Doc File

This document contains a project submission for a database creation project on Nike. It includes a cover page with the project details, an ER diagram of the Nike database, and 25 SQL queries on 5 tables - Accounts, Customer, Inventory, OrderTable, Product, and Sales. The queries retrieve information like customer names and details, product prices and quantities, sales amounts and more. It aims to demonstrate proficiency in SQL and working with an example relational database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views22 pages

MIS442 Sec 4 Group 8 Doc File

This document contains a project submission for a database creation project on Nike. It includes a cover page with the project details, an ER diagram of the Nike database, and 25 SQL queries on 5 tables - Accounts, Customer, Inventory, OrderTable, Product, and Sales. The queries retrieve information like customer names and details, product prices and quantities, sales amounts and more. It aims to demonstrate proficiency in SQL and working with an example relational database.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Project Submission

Course Title: Management Information Systems 


Course Code: MIS 442
Section: 4

Project Title: Creation of Database 


Company Name: NIKE
Submitted By:
Sl. Student Student Name Position
No ID Marks
1 2021260 Sadat Ahnaf Group
Leader
2 2020825 SK Atika Rohin Member
Trishila
3 2021155 Monera Bhuiyan Member
Mim
4 1911015 Tunaj Tajrin Member
Submitted To:
Md. Aminul Islam, CSCA
Lecturer
Department of Management Information Systems (MIS)
School of Business and Entrepreneurship (SBE)
Independent University, Bangladesh

Date of Submission: November 27, 2021 at 11.59 PM


ACKNOWLEDGEMENT

We are highly indebted to our respected faculty, Md. Aminul Islam for his guidance and
constant supervision as well as for providing necessary information regarding the project. We are
tremendously thankful to our respected faculty for supporting us to the fullest.

We would also like to expand our appreciation to all those who have directly and indirectly
directed us in writing this assignment. Many people, especially our team members themselves,
have made valuable comments and suggestions on this report, which gave us the motivation to
improve our assignment by a large margin. We thank all the people for their help directly and
indirectly to complete our assignment.
Letter of Transmittal

November 24, 2021


Md. Aminul Islam
Lecturer, Department of Management Information Systems
Independent University Bangladesh.

Subject: Project Report on Database for Nike and SQL Query.

Dear Sir,
We are pleased to submit the report that you asked for & gave us the authorization to work on
“Semester project on SQL Query” this report is an essential part of our course; we tried our best
to work on it carefully and sincerely to make the report informative.
The study we conducted enhanced our knowledge to make an executive report. This project has
given us an exceptional experience that might have immense uses in the future endeavors, and I
sincerely hope that it would be able to fulfill your expectations.

We have put our sincere effort to give this report a better shape and make it as informative and
precise as possible.  We thank you for providing us with this unique opportunity.

Sincerely yours,
Sadat Ahnaf- 2021260
SK. Atika Rohin Trishila- 2020825
Monera Bhuiyan Mim- 2021155
Tunaj Tajrin- 1911015
ER DIAGRAM OF NIKE
Accounts
Q1: Show me the Customers name whose payment method is ‘ONLINE’.

SQL VIEW:
SELECT Customer_name
FROM Accounts
WHERE Payment_method = "ONLINE"

OUTPUT:
Q2: Show me the Customers name whose payment method is ‘COD’.

SQL VIEW:
SELECT Customer_name
FROM Accounts
WHERE Payment_method = "COD"

OUTPUT:
Q3: Show me the Customer name, payment method, transaction id whose order id is 4025.

SQL VIEW:
SELECT Customer_name, Payment_method, Transaction_id
FROM Accounts
Where Order_id = 4025

OUTPUT:

Q4: Show me the Customer name, payment method, order id whose transaction id is 3013.

SQL VIEW:
SELECT Customer_name, Payment_method, Order_id
FROM Accounts
Where Transaction_id = 3013

OUTPUT:
CUSTOMER

Q5: Show me the Customer_id, Customer_name, Phone who lives in “Uttara”.

SQL VIEW:
SELECT Customer_id, Customer_name, Phone
FROM Customer
WHERE Address= "Uttara"

OUTPUT:

Q6: Show me the phone whose Customer_id is 2019.

SQL VIEW:
SELECT Phone
FROM Customer
Where Customer_id = 2019

OUTPUT:

Q7: Show me the Jamal Bhuiyan’s Customer_id, Phone, Address, Email.


SQL VIEW:
SELECT Customer_id, Phone, Address, Email
FROM Customer
Where Customer_name = "Jamal Bhuiyan"

OUTPUT:

Q8: Show me address of Customer_id in ascending order.


SQL VIEW:
SELECT Address, Customer_id
FROM Customer
ORDER by Address ASC

OUTPUT:
Q9: Show me the customer_name and Address by using Customer_name in descending order

SQL VIEW:
SELECT Address, Customer_id
FROM Customer
ORDER by Address DESC

OUTPUT:
INVENTORY

Q10: Show me the difference between highest price and lowest price.

SQL VIEW:
SELECT max(PRICE)-min(PRICE)
FROM Inventory

OUTPUT:

Q11: Show me the highest product price.


SQL VIEW:
Select max(PRICE)
FROM Inventory

OUTPUT:

Q12: Show me the lowest product quantity.

SQL VIEW:
SELECT min(Product_quantity)
FROM Inventory

OUTPUT:

Q13: Show me the inventory table.


SQL VIEW:
SELECT *
FROM Inventory

OUTPUT:

Q14: Show me the product name which product quantity is greater than 340.
SQL VIEW:
SELECT Product_name, Product_quantity
FROM Inventory
WHERE Product_quantity >340

OUTPUT:

Q15: Show me the product name which product quantity is equal or less than 340.
SQL VIEW:
SELECT Product_name, Product_quantity
FROM Inventory
WHERE Product_quantity <=340

OUTPUT:

ORDER TABLE

Q16: Show me the product quantity of football.

SQL VIEW
SELECT Product_quantity
FROM OrderTable
WHERE Product_name ="Football"

OUTPUT:
PRODUCT

Q17: Show me the empty/blank cell of Barcode.

SQL VIEW:
SELECT Barcode
FROM Product
WHERE Product_name IS NULL

OUTPUT:

Q18: Show me the Barcode where product is not null.


SQL VIEW:
SELECT Barcode
FROM Product
WHERE Product_name IS NOT NULL
OUTPUT:
Q19: How many products in our company?

SQL VIEW:
SELECT count(Product_name)
FROM Product

OUTPUT:
Q20: Show me which product will expire in 12/18/2024.

SQL VIEW:
SELECT Product_name
FROM Product
WHERE Expire_date ="12/18/2024"

OUTPUT:

Sales

Q21: Show me the average purchase amount.

SQL VIEW:
SELECT Avg(Amount)
FROM Sales

OUTPUT:
Q22: Show me the total amount.
SQL VIEW:
SELECT SUM(Amount)
FROM Sales

OUTPUT:

Q23: Show me the product quantity where product quantity is 300 or price is more than 500.

SQL VIEW:
SELECT Product_quantity,Price
FROM Sales
WHERE Product_quantity =300 OR Price >500

OUTPUT:

Q24: Show me the product quantity where product quantity is 500 and price is more than 500.
SQL VIEW:
SELECT Product_quantity,Price
FROM Sales
WHERE Product_quantity =500 AND Price >500

OUTPUT:

Q25: Show me the Sales id, Product quantity, Price and Amount of Transaction 10/24/2021.

SQL VIEW:
SELECT Sales_id,Product_quantity,Price,Amount
FROM Sales
WHERE Transaction_date ="10/24/2021"

OUTPUT:

THE END

You might also like