Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HAVING phrase
Message
De
11/06/2008 10:02:07
 
 
À
11/06/2008 09:55:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01323049
Message ID:
01323074
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform