Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Subject SQL MS. -Thanks 1.Use a UNION operator to generate a result set consisting of two columns from the Suppliers table: CompanyName, and Country. If

Subject SQL MS. -Thanks

1.Use a UNION operator to generate a result set consisting of two columns from the Suppliers table: CompanyName, and Country. If the vendor is in USA, the country value should be USA; otherwise, the country value should be Outside USA. Sort the final result set by country.

2.Write a query, using a join, to display the employees last name, the territorys territory description, and the regions region description for each employee in the employee table. Sort the results by the employees last name.

Territories Table

TerritoryID

TerritoryDescription

RegionID

image text in transcribed

Categories CategoryID CategoryName Description Picture Order Details 9 Order 8 ProductID UnitPrice Quantity Discount - CustomerCustomer Demo Customer 8 CustomerTypeID Customers 8 Customer Company Name Contact Name Contact Title Orders y Order Customer Address - Employees ? Employeeld LastName First Name City Region Postal Code Country Phone CustomerDemographics ? CustomerTypelo CustomerDesc Products ProductD EmployeeID OrderDate RequiredDate Shipped Date Ship Via Freight Ship Name ShipAddress Ship City Ship Region Ship Postal Code Ship Country Title TitleOfCourtesy BirthDate HireDate Address City OC Fax Suppliers 8 Suppliers Company Name Contact Name Contact Title Address City Region Postal Code Country Product Name Supplier CategoryID QuantityPerunit UnitPrice kos Region Postal Code Units in Stock Units OnOrder ReorderLevel Country Homcf hot Exclension Phone Photo Discontinued Fax HomePage Shippers ShipperID Company Name Phone Notes Reports To Photo Path

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

10-2 What are the principal e-commerce business and revenue models?

Answered: 1 week ago

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago

Question

=+With whom does the firm have to negotiate?

Answered: 1 week ago