Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need ODBC Valid SQL syntax
Message
De
03/10/2001 13:32:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00563510
Message ID:
00563740
Vues:
13
>>
>>Brett,
>>Would you try this :
>>
>>SELECT P.Username, P.Phone, C.KidFirstName, C.KidLastName,
>>S.Status, Pr.Priority
>>FROM force Parent P ;
>>left join StatusLookup S on P.StatusKey = S.StatusKey ;
>>left join Child C on P.ItemKey = C.ItemKey ;
>>left join PriorityLookup Pr on C.PriorityKey = Pr.PriorityKey ;
>>WHERE P.Username = "SMITHBOB"
>>
>>Cetin
>
>What does the FORCE do? And why did you convert Parent to P, Child to C etc?

'Force' forces order of joins in the way they're written. I wrote aliased versions (P,C) which is commonly used in order to shorten SQL string + ease of writing. ie: if I had too many fields listed with StatusTable. each field would add 10 bytes to SQL string.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform