Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Left Join SQL
Message
De
06/03/2013 16:36:18
 
 
À
06/03/2013 16:19:53
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01567660
Message ID:
01567662
Vues:
45
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform