Link to home
Start Free TrialLog in
Avatar of Eric Sherman
Eric ShermanFlag for United States of America

asked on

SQL WHERE Clause Question??

Using the SQL shown below, I'm basically joining the Route tbl to the TempRouteImport tbl and updating a field called AREA.  I generally do this in VBA code and I want to use more SQL in this particular application.  The question is, should a WHERE clause be included (WHERE ROUTE.ROUTE_NUMBER = TempRouteImport.ROUTE_NUMBER) or does the join handle this???  It seems to work properly without the WHERE but I just want to make sure.  


UPDATE ROUTE INNER JOIN TempRouteImport ON ROUTE.ROUTE_NUMBER = TempRouteImport.ROUTE_NUMBER SET ROUTE.AREA = [TempRouteImport]![AREA];


Thanks,

ET
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eric Sherman

ASKER

Much appreciated peter57r.  That explains it and what I needed to confirm.

ET
Appreciate the quick response.