Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excluding almost duplicates from a UNION
Message
From
29/06/2001 11:29:21
 
 
To
29/06/2001 11:22:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00524751
Message ID:
00525212
Views:
20
Hmmmm... Well, maybe for debugging it helps to do it twice, but speed is important and it seems that having it in one select would be faster.

Thanks,

Michelle


>Sometimes it is easier - among others, for debugging purposes - to separate a single SQL - SELECT command into several.
>
>
>SELECT ... (union goes here) ... into cursor Tmp nofilter
>SELECT * from Tmp into cursor Tmp group by MyField
>
>
>Yes, you can (usually) send the result from cursor Tmp back into cursor Tmp! However, again for debugging purposes, you may want to keep a separate cursor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform