MySQL Forums
Forum List  »  Microsoft Access

Re: sql from access-pls analyze this error
Posted by: Bob Field
Date: July 07, 2006 09:25AM

This one is actually quite clean. The parentheses are unnecessary since the normal order of operations is left-to-right.

SELECT t1.ContactAutoID, t1.Referedby AS Referedby1, t1a.Referedby AS Referedby2, t1b.Referedby AS Referedby3
FROM Table1 AS t1
LEFT JOIN Table1 AS t1a ON t1.Referedby = t1a.ContactAutoID
LEFT JOIN Table1 AS t1b ON t1a.Referedby = t1b.ContactAutoID;

My personal preference is to select short mnemonic table aliases for a compact appearance and less typing.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: sql from access-pls analyze this error
1528
July 07, 2006 09:25AM


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.