0% found this document useful (0 votes)
6 views1 page

310 Final

The document contains 11 queries to retrieve data from various tables in a database. The queries include filtering on fields like shipper ID, supplier ID, product category, total price, date range, city, and retrieving fields like order ID, product name, employee name, supplier name, number of products. Aggregate operations like counts are also included.

Uploaded by

towhid.nabil
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)
6 views1 page

310 Final

The document contains 11 queries to retrieve data from various tables in a database. The queries include filtering on fields like shipper ID, supplier ID, product category, total price, date range, city, and retrieving fields like order ID, product name, employee name, supplier name, number of products. Aggregate operations like counts are also included.

Uploaded by

towhid.nabil
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/ 1

#1 Get a list of orders that were shipped by Shipper ID 1 and 2.

Also, modify the result


with ship regions that are without null values. In the result, just show shipper name,
shipper ID, and order ID. (5 points)

#2 Get a list of number of products that are supplied by supplier ID 11. In the result just
show number of products. (2 points)
#3 Get a list of products of which units in stock is less than 20 and category ID is 7. Just show
product name. (1 point)
#4 Calculate total price for all orders where total price is less than 500. The result must include
order ID and total price for each order ID. (2 points)

#5 Get a list of suppliers who are supplying more than two products. The result must include
supplier ID and number of products. (5 points)
#6 Create a report showing the first name and last name of all employees whose last names start
with a letter between "C" and "D" and working as sales representative. (3 points)

#7 Show company name, contact title and city of suppliers in Singapore. (1 point)
#8 Show a list of orders that were placed between January 1996 to Feb 1997 and freight charge is
less than 200. Only show order ID. (2 points)
#9 Show Full name of all employees who are working in London. (1 point)

#10 Create a report that shows orderID, productID and supplier name. The product ID must be 7
and 11. (5 points)
#11 Show a list of products where units in stock is less than 25. Show product name, category name
and units in stock. (3 points)

You might also like