but
a|b is translated in "a, b"
so you can do orderby=db.table.field|db.table.otherfield
Massimo
but that defeats the purpose if I order by all the fields.I've been trying for hours now get the correct way of grouping by ( groupby table.field ) in postgresql.Any help?
--
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/wWdowJGAs7I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
id name surname
1 tywin lannister
2 tyrion lannister
3 eddard stark
4 sansa starkselect count(*), surname from table group by surnamecount(*) surname
2 lannister
2 stark
--
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/wWdowJGAs7I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I am sorry. I am trying to groupby and not orderby.I want to select from 2 tables and groupby the id of one table. This works fine in sqllight but throws an error on postgresql.
--
---
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+un...@googlegroups.com.