Northwinds Final Project Pivot Table

Northwinds Final Project Pivot Table - Total Products...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Total Products Ordered for All Countries select customers.country, categoryname, count(products.productid) TotalProducts from mis235.customers, mis235.orders, mis235.orderdetails, mis235.products, mis235.categories where customers.customerid=orders.customerid and orders.orderid=orderdetails.orderid and orderdetails.productid=products.productid and products.categoryid=categories.categoryid group by customers.country, categoryname Total Products Ordered for Poland, Norway, and Argentina—2nd suggestion select customers.country, categoryname, count(products.productid) TotalProducts from mis235.customers, mis235.orders, mis235.orderdetails, mis235.products, mis235.categories where customers.customerid=orders.customerid and orders.orderid=orderdetails.orderid and orderdetails.productid=products.productid and products.categoryid=categories.categoryid and customers.country in ('Poland', 'Norway', 'Argentina') group by customers.country, categoryname order by country, count(products.productid) desc
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/15/2011 for the course MIS 235 taught by Professor Sunrro during the Fall '08 term at Miami University.

Page1 / 3

Northwinds Final Project Pivot Table - Total Products...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online