Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a view that selects customer details (Name & Address), Products ordered, Quantity ordered and total amount for all Cancelled and Pending orders of

image text in transcribed

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

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

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

NOTE: PLEASE DONT ANSWER CREATE TABLE QUERY , I HAVE TABLES QUERY, JUST WRITE THE QUERY FROM QUESTION GIVEN ABOVE (REFER ER DIAGRAM FOR TABLE DETAILS)

CUSTOMERS CUSTOMER_ID NAME ADDRESS WEBSITE CREDIT_LIMIT REGIONS * REGION_ID REGION_NAME CONTACTS * CONTACT_ID FIRST_NAME LAST_NAME EMAIL PHONE CUSTOMER_ID COUNTRIES * COUNTRY_ID COUNTRY_NAME REGION_ID ORDERS * ORDER_ID CUSTOMER_ID STATUS SALESMAN_ID ORDER_DATE EMPLOYEES 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 * ITEM_ID PRODUCT_ID QUANTITY UNIT_PRICE INVENTORIES PRODUCT_ID * WAREHOUSE_ID QUANTITY WAREHOUSES * WAREHOUSE_ID WAREHOUSE_NAME LOCATION_ID PRODUCTS PRODUCT_ID PRODUCT_NAME DESCRIPTION STANDARD_COST LIST_PRICE CATEGORY_ID PRODUCT_CATEGORIES CATEGORY_ID CATEGORY_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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago