logoalt Hacker News

system2yesterday at 9:17 PM2 repliesview on HN

I agree. Claude Code writes superb SQL queries for very complex data. I was dealing with PostgreSQL recently, and it improved the query from 30 seconds to 5 seconds. I couldn't figure it out myself.


Replies

rtkweyesterday at 9:21 PM

How do you present the interrelations between the tables when you're dealing with complex table structures?

show 2 replies
baqyesterday at 10:22 PM

sonnet 4.5 was really bad at anything more than simple queries. even GPT 5 was not great. gemini was consistently good even at 2.5; caught multiple bugs in outputs of either. I haven't tested Opus 4.5 properly at SQL yet, but I've got a feeling Anthropic doesn't prioritize it in training and google does.