Learning Goal: I’m working on a mysql question and need an explanation and answe
Learning Goal: I’m working on a mysql question and need an explanation and answer to help me learn.
Q1 Add a new row in the ORDERS table with the following data: Order# is 2222, customer# is 2121, and the order date is January 22, 2016. Describe the error raised and explain what causes this error. Write another query with a change that allows it to succeed. You may use any valid data.
Q2 Create a script using substitutions variables that allow the user to set a new retail price for a book based on ISBN. NOTE: Important information regarding substitution variables in this week’s supplemental materials.Run your script for the following values ISBN = 1059831198 and retail = $99.99
Q3 Write a query to create a new price list for books written by the same author. Allow the user to enter only the first 4 letters of the last name and the first letter of the first name, they should be able to get the right author. Ask the user to input a percentage and calculate the new discounted price based on the current retail price minus this percentage. Round the result to cents (two decimals). For your example query, assume the user wants to discount the price of James Patterson books by 20%.