MIS442 Sec 4 Group 8 Doc File
MIS442 Sec 4 Group 8 Doc File
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
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
SQL VIEW:
SELECT Customer_id, Customer_name, Phone
FROM Customer
WHERE Address= "Uttara"
OUTPUT:
SQL VIEW:
SELECT Phone
FROM Customer
Where Customer_id = 2019
OUTPUT:
OUTPUT:
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:
OUTPUT:
SQL VIEW:
SELECT min(Product_quantity)
FROM Inventory
OUTPUT:
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
SQL VIEW
SELECT Product_quantity
FROM OrderTable
WHERE Product_name ="Football"
OUTPUT:
PRODUCT
SQL VIEW:
SELECT Barcode
FROM Product
WHERE Product_name IS NULL
OUTPUT:
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
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