You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried moving the subquery into a CTE but that seems to cause the "json" to turn into a regular string.
Interestingly it seems that CTEs can be defined at any level or moved around, even if the "variables" are not exactly in scope at that level.
Similar to this Postgres example: https://www.pgcasts.com/episodes/generating-json-from-sql
We can build a nested JSON response in sqlite something like this:
The result will look like:
The text was updated successfully, but these errors were encountered: