I'd like to count distinct over two columns.
In imaginary sql, I'd write the below:
COUNT(DISTINCT col1, col2)
In T-SQL, this is done by having one grouping in a sub query and then a second grouping in the outer query - like this
As far as I know, USQL doesn't have sub queries, so I'm a bit stuck trying to work out how to do this. I suppose I could use two aliased queries, but I was wondering if there was a better way.