MySQL Forums
Forum List  »  Microsoft Access

convert statement from mysql to ms access
Posted by: Dimitar Tsvetkov
Date: November 24, 2013 04:42PM

Please, people someone tell me how to convert this statement into access statement: UPDATE Inspections
INNER JOIN Components
INNER JOIN ((BridgeTypes
INNER JOIN Bridges ON BridgeTypes.ID = Bridges.BridgeTypeID)
INNER JOIN InspectionDetails ON Bridges.ID = InspectionDetails.BridgeID)
ON Components.ID = InspectionDetails.ComponentID)
ON Inspections.ID = InspectionDetails.InspectionID
SET Inspections.IntervalMonths= IF(Components.ConditionCode>= 3,
IF(Inspections.IntervalMonths> 6,Inspections.IntervalMonths-6,Inspections.IntervalMonths),
IF(Inspections.IntervalMonths+6 <= 36,Inspections.IntervalMonths+6,Inspections.IntervalMonths)),
InspectionDetails.InspectionDate= DATE_ADD(InspectionDetails.InspectionDate, INTERVAL IF(Components.ConditionCode>= 3,
IF(Inspections.IntervalMonths> 6,Inspections.IntervalMonths-6,Inspections.IntervalMonths),
IF(Inspections.IntervalMonths+6 <= 36,Inspections.IntervalMonths+6,Inspections.IntervalMonths)) MONTHS)
WHERE
BridgeTypes.TypeName = 'cable-stayed'
Thank you!

Options: ReplyQuote


Subject
Views
Written By
Posted
convert statement from mysql to ms access
3063
November 24, 2013 04:42PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.