Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by clause is missing or invalid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01120983
Message ID:
01120986
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all,
>
>I'm having a group by clause error with the following sql syntax, which I can't solve w/o setting the enginebehavior to 70 :
>
>
>lcSql = [select blogname,author,tblEntries.*, ALLTRIM(SUBSTR(basepath,AT("/",basepath)+1)) as gebruiker ] + ;
>        "from blog_config " +;
>         "left outer join (select max(pk),max(title),max(body),max(abstract),blogpk,MAX(entered) as entered from blog_entries group by blogpk)  tblEntries " +;
>         "on blog_config.pk=tblEntries.blogpk "
>&lcSql
>
>
>How can I change the sql so things works as expected? Thanks beforehand.

In other words, all fields not listed in Group By should have some aggregate function. If these fields are memo fields, then you're out of luck.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform