[web2py] Re: Help with SQL Query without using executesql preferably :)

2014-03-14 Thread brahama von
Thanks Cliff. But i don“t think it is that simple, or perhaps it is, but i can't manage to build the right query. If i use group by, it groups by the id and the having=max is ignored. all ids appear. Probably it needs joins. Will try to do the raw query and see if anyone can translate it. Thanks

[web2py] Re: Help with SQL Query without using executesql preferably :)

2014-03-10 Thread Cliff Kachinske
The DAL chapter of the online Web2py manual explains how to fetch the max value, same as a SQL GROUP BY. On Monday, March 10, 2014 3:54:59 PM UTC-4, brahama von wrote: > > This is the result i get from a simple select like this: > > legacy_db(legacy_db.cursodado.gp_pro_id==course).select() > > cu