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
Cannot use 'convert' and 'case' in MS Access
MS Access Dates and Selecting a Range Between Two Dates in an Access Report
How automatically Rightfax a report via a MS Access Macro/VBA
How to force Outlook to save contacts into public contacts folder??
What is datatype #9?
ExMerge Not Working
How can I get the windows version from a dos prompt
How to sort complecated text in excel
Microsoft Word doc only show important text when "non-printing characters" is on
MYSQL query syntax, subquery joins alias