News for hackers. Stuff that matters.
Re:Getting AI to write good SQL by christophilus on Saturday May 17, 2025 @08:24AM (#44013772)
A semantic layer would be great. It should be a structured layer designed to make relational queries easy to write. We could call it “structured data language” or maybe “structured query language”.

In all seriousness, I have some complaints about SQL (I think LINQ’s reordering of it is a good idea), but there’s no need to invent another layer on order for LLMs to be able to wrangle it.

Re:Getting AI to write good SQL by cmrdporcupine on Saturday May 17, 2025 @08:31AM (#44013805)
The semantic layer for database queries is (roughly) the relational algebra.