Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select with GROUP BY - much slower than without
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01110065
Message ID:
01110296
Views:
15
>What about
SELECT * FROM cursor1
>UNION
>SELECT * FROM cursor2
>
>BTW, I don't think you need ';' in the textmerge SQL SELECT.

select cTrans_pk, yBalance, cUserID, cUsGrLink_pk from cursor1
union
select cTrans_pk, yBalance, cUserID, cUsGrLink_pk from cursor2

would not work, since cUsGrLink_pk is going to be different.

; is removed in RunSQL function, but it helps if I want to test SQL separately.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform