Task_05+_JOINS_.pdf - Q1 Download the file northwind.sql...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Q1. Download the file northwind.sql from resources on slate and run the script. You do not have to create a database yourself, the script will create a database named northwind with the tables shown in the following diagram: 1. Get list of all the orders processed with a specific category name (you can use any category). 2. Get the product name and count of orders processed for that product. 3. Get the list of the employees who processed the orders belongs to his own city. 4. Get the list of the employees who processed the orders doesn’t belongs to his own city . 5. Get the shipper company who processed the order categories “Seafood” . 6. Get category name, count of orders processed by the USA employees. 7. For each order, calculate a subtotal for each Order. 8. For each employee, get their sales amount. 9. Get an alphabetical list of products along with the category and supplier of each product. 10. Get the count of products in each category.
Image of page 1

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

View Full Document Right Arrow Icon
Q2. Consider the following Tables: p_id p_name units
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern