Question: MySQL Query 2. Write a SELECT statement that returns these column names and data from the order_instruments table: item_id The item_id column item_price The itemprice

MySQL  MySQL Query 2. Write a SELECT statement that returns these column
Query
names and data from the order_instruments table: item_id The item_id column item_price

2. Write a SELECT statement that returns these column names and data from the order_instruments table: item_id The item_id column item_price The itemprice column discount amount The discount_amount column quantity The quantity column price_total A column that's calculated by multiplying the item price by the quantity discount_total A column that's calculated by multiplying the discount amount by the quantity item_total A column that's calculated by subtracting the discount amount from the item price and then multiplying by the quantity Only retum rows where the item_total is greater than 500. Sort the result set by the item_total column in descending sequence. item id price total Table 1 Quantity 2 discount total item_price 1199.00 item_total discount amount 359.70 1308.84 5 2398.00 719.40 1678.60 3 2517.00 1 2517.00 1308.84 359.70 1 1199.00 1 1199.00 359.70 120.00 1208.16 839.30 679.99 11 1 120.00 799.99 799.99 799.99 799.99 9 240.00 1 240.00 559.99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!