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
Acces table calculated field and query filter
How to enable/disable a succeeding dropdown list if a value is selected on the first drop down list
"The project location is not trusted." error when in XP Mode
Import multiple Excel workbooks into a single Access Table
Append.dif file to Access 2007 table
Finalize a CD using IMAPI CD-Burning COM Service
SharePoint errors sites down then fix themselves.
Logout Button for <asp:LoginStatus> not working
Error Loading sshnas.dll
ADO.NET Insert Command