Q: One of the purchasing managers is interested in the impact of product
One of the purchasing managers is interested in the impact of product prices on the sale of products of each brand. Write a query to display the brand name, brand type, average price of products of ea...
See AnswerQ: The purchasing manager is still concerned about the impact of price on
The purchasing manager is still concerned about the impact of price on sales. Write a query to display the brand name, brand type, product SKU, product description, and price of any products that are...
See AnswerQ: Create a trigger named trg_line_total to write the
Create a trigger named trg_line_total to write the LINE_TOTAL value in the LINE table every time you add a new LINE row. (The LINE_TOTAL value is the product of the LINE_UNITS and the LINE_PRICE value...
See AnswerQ: Create a trigger named trg_line_prod that will automatically
Create a trigger named trg_line_prod that will automatically update the product quantity on hand for each product sold after a new LINE row is added. Use the Ch08_SaleCo2 database
See AnswerQ: Write the query that will generate a combined list of customers (
Write the query that will generate a combined list of customers (from tables CUSTOMER and CUSTOMER_2) that do not include the duplicate customer records. Only the customer named Juan Ortega shows up i...
See AnswerQ: Create a stored procedure named prc_inv_amounts to update
Create a stored procedure named prc_inv_amounts to update the INV_SUBTOTAL, INV_TAX, and INV_TOTAL. The procedure takes the invoice number as a parameter. The INV_SUBTOTAL is the sum of the LINE_TOTAL...
See AnswerQ: Write the SQL code required to list all employees whose last names
Write the SQL code required to list all employees whose last names start with Smith. In other words, the rows for both Smith and Smithfield should be included in the listing. Assume case sensitivity....
See AnswerQ: Create a procedure named prc_cus_balance_update that
Create a procedure named prc_cus_balance_update that will take the invoice number as a parameter and update the customer balance. (Hint: You can use the DECLARE section to define a TOTINV numeric vari...
See AnswerQ: Modify the MODEL table to add the following attribute and insert the
Modify the MODEL table to add the following attribute and insert the values shown in Table P8.23. Table P8.32 The New Attribute for the MODEL Table Attribute name Attribute Description Attribute ty...
See AnswerQ: Write the queries to update the MOD_WAIT_CHG attribute
Write the queries to update the MOD_WAIT_CHG attribute values based on problem 32. Details from problem 32: Table P8.32 The New Attribute for the MODEL Table Attribute name Attribute Description At...
See Answer