How to build query with Group by Rollup or Cube? #58
-
How can I build a The syntax defined by Postgres is here. Excerpt:
but other databases implement this query syntax too. (SQL Server) Thanks you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, In that case you want to use a Sql expression (like a function call) that is not already mapped in the library, for this case you have the Sql fragments. Hoy can put the Sql fragment in your query or create a reusable function in the DBConnection that generate that fragment for you; and use it as a value in your group by. Let me know if that works for you. |
Beta Was this translation helpful? Give feedback.
Hi,
In that case you want to use a Sql expression (like a function call) that is not already mapped in the library, for this case you have the Sql fragments.
Hoy can put the Sql fragment in your query or create a reusable function in the DBConnection that generate that fragment for you; and use it as a value in your group by.
Let me know if that works for you.