Currently is there any way to transpose rows to columns like crosstab() in PostgreSQL?
I didn't see anything in the documentation at https://knexjs.org that would do exactly this but maybe there is some group of functions that could achieve this result.
Current result: 1
Desired transposed result: 2