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
How to embed Ms Access form in C# WinForms application ?
HP only has drivers for Vista, downgraded to XP.
Linked table cannot be modified?
VBA code to customize tab order
Oracle - Connect by Prior - Two times in single query
Is there a way of identifying when a field is used and in which queries
HELP!!! email a .snp report....
Microsoft Access form navigation VBA question - making fields active or inactive
IIS7 and DNS on Server 2008
How do I disable script & execute permission in IIS7 for a specific site subdirectory?