Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE SOLVE IT SOON AS POSSIBLE ITS URGENT. CUSTOMERS CUSTOMERJID NAME ADDRESS WEBSITE CREDIT LIMIT REGIONS REGION_ID REGION_NAME CONTACTS - CONTACT_ID FIRST_NAME LAST_NAME EMAIL PHONE

PLEASE SOLVE IT SOON AS POSSIBLE ITS URGENT.

image text in transcribed

CUSTOMERS CUSTOMERJID NAME ADDRESS WEBSITE CREDIT LIMIT REGIONS REGION_ID REGION_NAME CONTACTS - CONTACT_ID FIRST_NAME LAST_NAME EMAIL PHONE CUSTOMER_ID COUNTRIES COUNTRY_JD COUNTRY_NAME REGION_ID ORDERS ORDERJID CUSTOMERJID STATUS SALESMANLID ORDER_DATE EMPLOYEES et EMPLOYEE_ID FIRST_NAME LAST_NAME EMAIL PHONE HIRE DATE MANAGER ID JOB_TITLE LOCATIONS - LOCATION_ID ADDRESS POSTAL CODE CITY STATE COUNTRY_ID ORDER ITEMS -ORDER ID -ITEMID PRODUCT_JD QUANTITY UNIT_PRICE INVENTORIES - PRODUCT_ID WAREHOUSE_ID QUANTITY WAREHOUSES - WAREHOUSE_ID WAREHOUSE_NAME LOCATION_D PRODUCTS .PRODUCT_ID PRODUCT_NAME DESCRIPTION STANDARD_COST LIST PRICE CATEGORY_ID PRODUCT_CATEGORIES - CATEGORY_ID CATEGORY_NAME 1. Create a view that selects customer details (Name & Address), Products ordered, Quantity ordered and total amount for all 'Cancelled' and 'Pending orders of 2015. (Hint;- total amount can be calculated using Quanity*unit.price] 2. Using set Operations, list all the Product names which were either ordered or which are not ordered so far but available in stock in any warehouse. Make sure product names are unique. 3. Write a query to display number of customers who are served orders by each employee on each date. Make sure to display subtotals using all possible combinations using sets query 4. Write a Query to print all warehouses and their locations in all regions sorted in descending order of warehouse 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_2

Step: 3

blur-text-image_3

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 Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago