|
|
|
|
|
by bradford
738 days ago
|
|
To be clear, I don't find SQL difficult to understand. I've used it for 20+ years and I can always get the query to generate my desired output. But I often find that the language is a hindrance, and that I can more efficiently reach my desired output using modern languages. for example, here's the KQL equivalent to the 'average of sums' query: purchases
| summarize total_per_customer=sum(amount) by customer
| summarize avg(total_per_customer)
I find this more elegant, and I'd prefer authoring it over any of the equivalent SQL solutions previously mentioned. |
|