Return a custom dataset from select #224
-
Hey, |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Sep 29, 2021
Replies: 1 comment 2 replies
-
See https://bun.uptrace.dev/playground/ db.NewSelect().
ColumnExpr("Shippers.ShipperName").
ColumnExpr("COUNT(Orders.OrderID) AS NumberOfOrders").
TableExpr("Orders").
Join("LEFT JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID").
GroupExpr("ShipperName") |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sagr4019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://bun.uptrace.dev/playground/