Microsoft
Software
Hardware
Network
Question : sql statement needed
need a sql statement to show that for each time a car is added to (product table)...inventory is reduced from (part table).
Table name: PRODUCT
PROD_CODE PROD_QOH
car 24
Table name: PART
PART_CODE PART_QOH
Frame 22
Moulding 23
Answer : sql statement needed
begin tran
insert into PRODUCT select ...
if @@ROWCOUNT > 0
UPDATE Part
SET qty = qty -1
WHERE PART_QOH = ???
IF @@Error <> 0
BEGIN
ROLLBACK TRAN
return
END
commit tran
Random Solutions
Windows XP sp3 file c:\windows\system32\driver<wbr />s\atapi.sy<wbr />s is open or in use by another application. close all applications and retry
Exporting Access Query to an Excel Spreadsheet
using OpenCurrentDatabase to open a accdr file
An updateble datagridview in a a Winforms application
Windows xp keeps restarting and wont boot into safe mode.
Exchange 2007 booking a conference room
Automate exporting pivot table from access to excel
Excel - Vlookup Max Value for a series of data
Redirect to page based on credentials
Form Dirty Values Lost on Forms 2.0 Scrollbar Methods :(