Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do this using SQL Server. Create the following queries that access the Northwind database. Place them in . txt file. The Company Name, Contact

Please do this using SQL Server. Create the following queries that access the Northwind database. Place them in .txt file.
The Company Name, Contact Name, and City for all customers from France or USA.
The customer id and name of all customers that purchased an item whose category ID is 2.
The product ID and name for all products that were shipped on or after July 16,1996. Place the list in ascending order by shipped date.
The product ID, name, unit price, and units in stock for all products that were purchased by any customer from Germany, Austria, or Sweden. Place the list in alphabetical order by country and then by product ID.
The category ID, category name, product number, product name, units in stock , and units on order for all items that have a zero value in units on order. Place the list in alphabetical order by category name and then by product name.
The order number, company name, city to which the order is shipped, and freight amount for all orders that contain an item supplied by a supplier named Exotic Liquids. You must use the supplier name in your query.
The company name for all customers that purchased an item in the Beverages or Condiments category. List each name only once and place the names in alphabetical order.
The product ID and name for all products that were ordered by a customer named Ernst Handel. Use the name and not the customer ID in the query. Place the list in alphabetical order by product name.
The order ID, customer ID, company name, and destination city for all orders shippedto Mexico or USA. Place the list in alphabetical order by company name.
The product ID, product name, and quantity ordered for all products orderedon an order taken by an employee named Robert King. Place the list in alphabetical order by product name.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago

Question

What is gravity?

Answered: 1 week ago

Question

What is the Big Bang Theory?

Answered: 1 week ago