Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding practice questions #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions practice_questions_wk2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
--Practice Questions Week 2 (Answers posted before week 3)

--1. Write a query to get Product name and quantity per unit.



--2. Write a query to get current Product list (Product ID and name).



--3. Write a query to get discontinued Product list (Product ID and name).



--4. Write a query to get most expense and least expensive Product list (name and unit price).




--5. Write a query to get Product list (id, name, unit price) where current products cost less than $20.




--6. Write a query to get Product list (id, name, unit price) where products cost between $15 and $25.




--7. Write a query to get Product list (name, unit price) of above average price.



--8. Write a query to get Product list (name, unit price) of ten most expensive products.



--9. Write a query to count current and discontinued products.



--10. Write a query to get Product list (name, units on order , units in stock) of stock is less than the quantity on order.