Update inventory set price = price*.75 where not exists (select * from invoice_details i where inventory.item_no = i.item_number and inv_no in (select inv_no from invoices where inv_date> = getdate()-30)); The purpose of the above given query is Tables: Invoice_details(item,number,price,invoice_dat,inv_no) Inventory(item_no,price,inv_date,....) Invoices(inv_no,inv_date,....)
Reveal answer
Fill a bubble to check yourself