Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT data from multiple tables into one CURSOR
Message
From
04/11/2002 05:33:26
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00718362
Message ID:
00718396
Views:
13
Hi Elgin!

After of one Join you can do other Join, sample:
I have three table.
TableA -> Fields: CodA, NameA.
TableB -> Fields: CodA, CodB, NameB.
TableC -> Fields: CodB, CodC, NameC.
My Select:
Select A.CodA, A.NameA, B.CodB, B.NameB, C.CodC, C.NameC ;
   From TableA As A Inner Join TableB As B On A.CodA = B.CodA Left Join ;
        TableC On B.CodB = C.CodB ;
   Order By A.NameA, B.NameB, C.NameC
Good Luck!
Bye!
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform