News for hackers. Stuff that matters.
Re:Codd almighty! Has it been half a century of SQL already? by bradford on Wednesday June 05, 2024 @05:26PM (#40590822)
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.

There are no comments on this comment yet.