Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by clause is missing or invalid
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01120983
Message ID:
01120986
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform