Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statment Needed
Message
De
10/01/2005 12:59:21
Walter Meester
HoogkarspelPays-Bas
 
 
À
10/01/2005 11:09:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00975143
Message ID:
00975718
Vues:
17
Hi Fabio,

>SELECT NVL(A.Item, b.Item), count(a.Item)+Count(b.Item) FROM Items A FULL JOIN Items2 B ;
>ON A.Item=b.Item AND .F. GROUP BY 1

I did not find this to be fast. A better way to use rushmore is something like
SELECT NVL(A.Item, b.Item), count(a.Item)+Count(b.Item) ;
    FROM Items A ;
         FULL JOIN Items2 B ON A.Item=b.Item * 0 -1 ;
    GROUP BY 1
It seems to do the trick and is fast even with a lot of records (if the item columns of both tables are indexed)

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform