-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I could have swore I'd made a note somewhere along the way about how to crosstab with zq ... but - while it's not that hard, here's a decent SQL way to do it:
SELECT
coalesce(grid_type, 'Total') as _,
SUM(CASE WHEN win = true THEN count ELSE 0 END) AS win,
SUM(CASE WHEN win = false THEN count ELSE 0 END) AS loss
GROUP BY _Metadata
Metadata
Assignees
Labels
No labels