How to build query with Group by Rollup or Cube? #58
Answered
by
juanluispaz
fullsailor
asked this question in
Q&A
|
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! |
Answered by
juanluispaz
Nov 23, 2022
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. |
0 replies
Answer selected by
juanluispaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.