-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pivot #41
Comments
Thanks, could you give me please an example of what you want to achieve ? |
Hi PIVOT: I can add the pivot query to a compiled .SQL but it would be nicer as a function. Pivot makes rows to columns. -- Pivot table with one row and five columns |
@ahmad-moussawi we should mention that if the pivoting is a business as usual scenario, that the user create a materialized view function in code as it would likely perform better; as for pivot in general, I need to look at the differences in engines but I'm guessing compiler support is necessary. |
The whole point of the pivot table is that rows can become columns dynamically. |
Yes, actually I did a quick research, it seems that this feature is supported only on SqlServer, and it's hard to emulate it's functionality for others compilers, so I think the best thing is to put it on the back log for now, maybe we provide provider-specific extensions later that support these kind of functionalities |
Ok :-) |
Actually, PIVOT has been part of PL/SQL since Oracle 11g (2007). PostGres supports it thru its tablefunc/crosstab extension: https://www.postgresql.org/docs/current/tablefunc.html While MySql doesn't support it directly, it can be emulated there. https://www.databasestar.com/mysql-pivot/ |
Hi
Great library!
Please tell me. Best way to make a pivot out of the query?
The text was updated successfully, but these errors were encountered: