Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by clause is missing or invalid
Message
From
11/05/2006 13:31:36
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01120983
Message ID:
01121044
Views:
11
>>>
>>>
>>>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.
>>
>>Thanks for your response. There are some memo fields included. So I have to add an other outer join to the query for these fields to solve it? I didn't think about this...
>
>Yes, you may try to re-write your select this way:
>
>select * from Table1 inner join Table2 on Table1.Pk = Table2.fk ;
>inner join (select Pk, Min(date) as MinDate from Table2 group by 1) ;
>MinDate on Table2.Pk = MinDate.Pk
Naomi, if pk is a primary key, group by is useless
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform