This content has been marked as final.
Show 3 replies
-
1. Re: custom finder problem
redhonda Apr 26, 2002 9:26 AM (in response to redhonda)I have spent a lot of time on this problem. Anyone has any insights?
Thanks -
2. Re: custom finder problem
shogun Apr 27, 2002 7:07 AM (in response to redhonda)I think you have to remove MY_TABLE befor the column names, because you are working only into this table, called MY_TABLE and you aren't using other tables (Joins).
Maybe you can also remove the id = ... . Try it. -
3. Re: custom finder problem
davidjencks Apr 27, 2002 3:08 PM (in response to redhonda)did you try running the generated query in an sql tool? I dont think your subquery makes any sense, and I think the table names are 100% ambiguous.
Group by normally needs to be a non-aggregated field present in the result set. max(x) ... group by x doesn't make any sense.
try
MY_TABLE.id = (select max(a.id) from MY_TABLE a)