Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Three level report
Message
De
27/07/2013 13:35:11
 
 
À
27/07/2013 11:54:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01579298
Message ID:
01579302
Vues:
64
>>Three tables contain the following data:
>>
>>Table 1: One transaction per record
>>Table 2: One date per record (child of transaction)
>>Table 3: One atribute per record (child of date)
>>
>>Table 1 records may have zero, one, or many children in Table 2
>>Table 2 records may have zero, one, or many children in Table 3
>>
>>Report should show all records from table 1, one per line
>>Under each item from table 1, report should show all its children from table 2, one per line
>>Under each item from table 2, report should show all its children from table 3, one per line
>>
>>The question: What is the easiest way to create the necesary cursor(s) to generate report
>>
>>TIA,
>>
>>Alex
>
>
>select   Table1.*, ;
>            Table2.*, ;
>            Table3.* ;
>       from Table1 ;
>               left join Table2 on (Table2.FK == Table1.PK );
>               left join Table3 on (Table3.FK == Table2.PK ) ;
>      order by Table1.Field1, Table2.Field2, Table3.Field3 ;
>      into cursor tmp
>
Thanks for the reply Gregory. I will try it, but I am not sure it will do what I need. I'll report back. Thanks.

Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform