Question: IN SQL Write an UPDATE statement that uses a subquery to modify the data in theInvoiceTwo table. Modify the following column: CreditTotal = 10.00 Subquery

IN SQL

Write an UPDATE statement that uses a subquery to modify the data in theInvoiceTwo table. Modify the following column:

CreditTotal = 10.00

Subquery portion: (search condition subquery) Use the VendorID in the InvoiceTwo table and search for equivalent VendorIDs in the VendorTwo table where the VendorName starts with Fed (refer to Chapter 3 for pattern matching).

Further filter the update so it only affects records where the InvoiceDate is between 1/16/2016 and 3/31/2016 (no result set for this query- message should appear that says: 4 rows affected).

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!