0% found this document useful (0 votes)
2K views2 pages

Exercises On Northwind Database

This document provides 10 exercises to write SQL queries on the Northwind database schema. The exercises include writing queries to retrieve product names and prices, filter products by price ranges, find the most and least expensive products, count current and discontinued products, and retrieve products where stock is less than quantity on order. The goal is to practice writing queries on the Northwind database to retrieve and filter records based on different criteria.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views2 pages

Exercises On Northwind Database

This document provides 10 exercises to write SQL queries on the Northwind database schema. The exercises include writing queries to retrieve product names and prices, filter products by price ranges, find the most and least expensive products, count current and discontinued products, and retrieve products where stock is less than quantity on order. The goal is to practice writing queries on the Northwind database to retrieve and filter records based on different criteria.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CT069-3-3-DBS Database Security Level 3

Exercises on Northwind Database


Consider the schema of Northwind database shown below:

1. Write a query to get Product name and quantity/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

Asia Pacific University of Technology & Innovation


2016
CT069-3-3-DBS Database Security Level 3

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

Asia Pacific University of Technology & Innovation


2016

You might also like