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:
01121016
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
>>
>>
>>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
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