Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 2 of 2 total |
JOIN From different Table |
Wed, Mar 24 2010 4:57 PM | Permanent Link |
Jianfei Xu | Hi,
the laterst version, the following query not return the correct data: Select A.Code As A,B.Code As B, C.Code As C FROM TESTA A INNER JOIN TESTB B ON (A.Code=B.Code) LEFT JOIN TESTC C ON (A.Code=C.Code) AND (B.JOB=C.JOB) looks like join clause not allow to join with more than one table, if I mover join to where clause, it returns correct data: Select A.Code As A,B.Code As B, C.Code As C FROM TESTA A INNER JOIN TESTB B ON (A.Code=B.Code) LEFT JOIN TESTC C ON (A.Code=C.Code) WHERE (B.JOB=C.JOB) Jianfei |
Thu, Mar 25 2010 3:01 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Jianfei,
<< the laterst version, the following query not return the correct data: Select A.Code As A,B.Code As B, C.Code As C FROM TESTA A INNER JOIN TESTB B ON (A.Code=B.Code) LEFT JOIN TESTC C ON (A.Code=C.Code) AND (B.JOB=C.JOB) >> Please send me the data that you're using. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |