Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing from two tables
Message
De
10/03/2009 17:20:12
 
 
À
10/03/2009 16:34:52
Jossue Vega
Healthcare Partners
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01386983
Message ID:
01386989
Vues:
55
>I have a two tables, the parent table with the main information and the child table with the details. Both tables have over 1 million records in them. I created a few programs (2) that will print a report from these tables. In my first program I set a filter on the parent table, indexed the child table and set a relationship from the parent to the child. if the parent record has many child records only one of the child records will print. In my 2nd program i combined the two tables using a SELECT statement. This gave me the correct results but the select takes almost 5 minutes. Is there another method of printing from a one to many relationship?
>
>thank you in advance for your time and efforts

Did you join the tables on indexed column.
I created 2 tables and added 1 million rows each for testing (3 columns each).
The query took too long without using indexes but seconds with indexes.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform