Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statment Needed
Message
From
10/01/2005 12:59:21
Walter Meester
HoogkarspelNetherlands
 
 
To
10/01/2005 11:09:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00975143
Message ID:
00975718
Views:
16
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform