Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Left Join SQL
Message
From
06/03/2013 16:36:18
 
 
To
06/03/2013 16:19:53
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01567660
Message ID:
01567662
Views:
44
>I was under the impression that a left join would display all the records from left side and only the matches of the right.
>
>My sql is missing row number 7
>
>The wqmssrmrxr file has a tailno field and rowindex field. Records are rowindex 5 thru 27
>The wqmssrmrxl file has serialno, tailno, rowno. There is no record for rowno 7.
>
>
>
>Select rowindex, serialno From webprddt1.wqmssrmrxr" +;
>" Left Join webprddt1.wqmssrmrxl On webprddt1.wqmssrmrxl.rowno = webprddt1.wqmssrmrxr.rowindex" +;
>" And webprddt1.wqmssrmrxl.coldesig = 'L'" +;
>" Where webprddt1.wqmssrmrxr.tailno = 'YR756' And webprddt1.wqmssrmrxl.tailno = 'YR756'
>
>
A life saver: http://www.codeproject.com/KB/database/Visual_SQL_Joins/Visual_SQL_JOINS_orig.jpg
Previous
Reply
Map
View

Click here to load this message in the networking platform