Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Create a PL/SQL Block that selects customer details (Name & Address), Products ordered, Quantity ordered and total amount for all 'pending' orders of 2015.
4. Create a PL/SQL Block that selects customer details (Name & Address), Products ordered, Quantity ordered and total amount for all 'pending' orders of 2015. [Hint;- total amount can be calculated using Quanity*unit_price]
5.Create a PL/SQL block, using table type, list all the Product names which were ordered so far but not available in stock in any warehouse any more. Make sure product names are unique.
CUSTOMERS CUSTOMER_ID NAME ADDRESS WEBSITE CREDIT_LIMIT ORDERS ORDER ID CUSTOMER_ID STATUS SALESMAN_ID ORDER DATE ORDER ITEMS ORDER_ID ITEM_ID PRODUCT_ID QUANTITY UNIT_PRICE PRODUCTS .PRODUCT_ID PRODUCT_NAME DESCRIPTION STANDARD COST LIST_PRICE CATEGORY_ID ++ CONTACTS CONTACT_ID FIRST NAME LAST NAME EMAIL PHONE CUSTOMER ID EMPLOYEES EMPLOYEE_ID FIRST NAME LAST NAME EMAIL PHONE HIRE_DATE MANAGER ID JOB_TITLE INVENTORIES PRODUCT_ID WAREHOUSE_ID QUANTITY PRODUCT CATEGORIES CATEGORY_ID CATEGORY_NAME +H REGIONS REGION_ID REGION_NAME COUNTRIES COUNTRY_ID COUNTRY_NAME REGION_ID LOCATIONS LOCATION_ID ADDRESS POSTAL CODE CITY STATE COUNTRY_ID WAREHOUSES *WAREHOUSE_ID WAREHOUSE_NAME LOCATION_ID
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started