Hi,
I'm having trouble getting a query converted to SQLServer.
I've the following query in MSAccess:
The alias part is not the same, or not possible at all in SQLserver. If split up I have two queries:
Which is stored as vwTmp
And:
I would like to combine this in one query. How can that be done?
EasyIT
"Do you think that’s air you're breathing?
I'm having trouble getting a query converted to SQLServer.
I've the following query in MSAccess:
Code:
UPDATE ZIS0181_import INNER JOIN [SELECT ZIS0181_import.contractrekening
FROM ZIS0181_import
WHERE (((ZIS0181_import.Status2) Like "*X*")) OR (((ZIS0181_import.Status1) Like "*X*"))
]. AS AliasName ON ZIS0181_import.contractrekening = AliasName.contractrekening SET ZIS0181_import.CR_mark_tgv_EL31 = True;
The alias part is not the same, or not possible at all in SQLserver. If split up I have two queries:
Code:
SELECT contractrekening FROM dbo.ZIS0181_import WHERE (Status2 LIKE '%X%') OR (Status1 LIKE '%X%')
And:
Code:
UPDATE dbo.ZIS0181_import
SET dbo.ZIS0181_import.CR_mark_tgv_EL31 = -1
FROM dbo.ZIS0181_import, vwTmp
WHERE dbo.ZIS0181_import.contractrekening = vwTmp.contractrekening
I would like to combine this in one query. How can that be done?
EasyIT
"Do you think that’s air you're breathing?