Question: 3. Write a pl/sql block that will select orders from A2order table based on the following condition The price of the order is higher than
3. Write a pl/sql block that will select orders from A2order table based on the following condition The price of the order is higher than the order that was immediately made before this order and lower than the order that was immediately made after the order. Then Insert the selected row to A2Myorder Table Below is the creation scripts for the tables CREATE TABLE A2order (Order_ID VARCHAR2(12) PRIMARY KEY, Order_Date DATE Order_Price NUMBER(5,2). Order_category VARCHAR2(12)); CREATE TABLE A2myorder (OrderID NUMBER PRIMARY KEY Order_Date DATE Order_Price NUMBER(5,2)); 3. Write a pl/sql block that will select orders from A2order table based on the following condition The price of the order is higher than the order that was immediately made before this order and lower than the order that was immediately made after the order. Then Insert the selected row to A2Myorder Table Below is the creation scripts for the tables CREATE TABLE A2order (Order_ID VARCHAR2(12) PRIMARY KEY, Order_Date DATE Order_Price NUMBER(5,2). Order_category VARCHAR2(12)); CREATE TABLE A2myorder (OrderID NUMBER PRIMARY KEY Order_Date DATE Order_Price NUMBER(5,2))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
