Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about INNER/OUTER join ??

Status
Not open for further replies.

ZABADAK

Programmer
Feb 24, 2005
39
US
In the below query I need to do the first 2 SET statements even if the inner join finds no match in tblPriority, is this possible?


UPDATE tblSSRData As D INNER JOIN tblPriority As P ON D.TASK_PRI_CD_1 = P.Code
SET D.CLOSDATE = ED(PRO_FROM,CLS_FROM),
D.COMPDATE = ED(PRO_FROM,CLS_FROM,CAN_FROM), D.PRITARG = P.Target
WHERE (((D.REPORT_FROM_DATE)=#1/1/2005#) AND ((D.REPORT_THRU_DATE)=#1/31/2005#));
 
Hi
I think you would need to use a Left Join.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top