Message
From
11/06/2008 10:02:07
 
 
To
11/06/2008 09:55:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01323049
Message ID:
01323074
Views:
13
Tamar --

I never would have thought of your suggestion, so it's always good to learn new alternatives.

In this case, however, it hardly seems worth the effort. Much easier to just change the field names.

sigh

>>So ... Having 2 # 0
>>
>>????
>
>Sorry, that was a dumb answer. Position works in GROUP BY and ORDER BY. I don't see a solution other than using a different field name. However, if it's important to have the specified field name in the result, do the grouping/having in a derived table and rename the field in the result:
>
>SELECT a as a, b as b, q as c, ... ;
> FROM (SELECT ..., whatever as q .... HAVING q>5)
>
>Tamar
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View