Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need ODBC Valid SQL syntax
Message
From
03/10/2001 13:32:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00563510
Message ID:
00563740
Views:
12
>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform