*Use the argument groupby instead of distinct, and you'll get the desired
results.*
*so groupby fieldname2 and retrieve max(time).*
*What does groupby do exactly?*
1– Does it group rows by a certain column's values – *such that repeating
values are hidden*?
2– Does it group rows by a certain column's values – *such that repeating
values are grouped together*?
*How does it differ from distinct exactly, if answer is case 1?*
Thank you, sesenmaister and Niphlod.
*GroupBy works* for my requirements in this case!
So, thanks a lot for reading and helping me out.
*— PRACHI —*
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.