Question: Use SQL Developer to execute the query below. This needs to be done in SQL . Please post the code for each question number. (I
Use SQL Developer to execute the query below. This needs to be done in SQL. Please post the code for each question number. (I have also provided the tables below).
- Write a query to show title and the profit of each book sold to Bonita Morales. Calculate the profit by subtracting the cost from the paideach column in the orderitems table. Use the NATURAL JOIN clause to the join the tables. Use the alias PROFIT for the profit column.





Tables v Relational Tables V ACCTBONUS AMID AMSAL REGION > Constraints > Indexes V ACCTMANAGER AMID AMFIRST AMLAST AMEDATE AMSAL AMCOMM REGION > Constraints > Indexes V ACCTMANAGER2 AMID AMFIRST AMLAST AMEDATE REGION > Constraints > Indexes AUTHOR AUTHORID LNAME FNAME > Constraints > Indexes v BOOKAUTHOR ISBN AUTHORID > Constraints > Indexes V BOOKS ISBN TITLE PUBDATE PUBID COST RETAIL DISCOUNT CATEGORY Constraints > Indexes V CUSTOMERS CUSTOMER# LASTNAME FIRSTNAME ADDRESS CITY STATE ZIP REFERRED REGION EMAIL > Constraints > Indexes ORDERITEMS ORDER# ITEM# ISBN QUANTITY PAIDEACH > Constraints > Indexes ORDERS ORDER# CUSTOMER# ORDERDATE SHIPDATE SHIPSTREET SHIPCITY SHIPSTATE SHIPZIP SHIPCOST > Constraints > Indexes PROMOTION GIFT MINRETAIL MAXRETAIL > Constraints > Indexes V PUBLISHER PUBID NAME CONTACT PHONE > Constraints > Indexes TESTING ID TVALUE DESCRIP > Constraints > Indexes Database structure CUSTOMERS Customer Lastname Firstname Email Address City State Zip Referred Region ORDERS Order# Customer# Orderdate Shipdate Shipstreet Shipcity Shipstate Shipzip Shipcost ORDERITEMS Order# Item# ISBN Quantity Paideach BOOKAUTHOR AUTHOR BOOKS ISBN Author ISBN Authorld Lname Title Fname Pubdate PubID Cost Retail Discount PUBLISHER Category PubID Name PROMOTION Contact Phone Gift Minretail Maxretail
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
