Correlated Sub Queries #327
lloydtabb
started this conversation in
What's Next: Language Proposals
Replies: 2 comments
-
I like this idea! I think it needs some syntax to highlight what's going on, otherwise it just looks like a type error (putting a query inside a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure how I feel about the syntax. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Correlated Sub Queries
Assume the following model.
We have a row for each state and two subtables,
by_facility_type
andby_county
.SQL had a notion of coorlated subquery that will return a scalar value (
dimension:
) and I think the same could work in Malloy.and the SQL
You can only return a single row of data.
Not sure how we handle grouping by an inline record (we'll have to check how bigquery does it).
Beta Was this translation helpful? Give feedback.
All reactions