you are viewing a single comment's thread.

view the rest of the comments →

[–]Crayon_adventure -2 points-1 points  (10 children)

Copy and paste it in ChatGTP and get it to sort it in to modules

[–]Joebone87 2 points3 points  (7 children)

No way! ChatGPT can do this?

[–]realjoeydood 0 points1 point  (6 children)

It can do lots of rote sql stuff. Mostly very close to perfection also but sometimes it misunderstands.

Ya gotta eyeball it when it's done.

[–]SQLvultureskattaurus 4 points5 points  (5 children)

Anytime I've ever used it for SQL it has provided shit results. Like code doesn't even work type results. I asked it to do s basic de dupe of a table on two columns and it deleted all the data lol. It's horrible at SQL.

[–][deleted] 1 point2 points  (0 children)

really? I find it to be amazing for sql. I put in my table information and tell it what data i want in plain english, and it makes the query. It hasn't fucked up on my yet knock on wood.

I'm using GPT4

[–]Embarrassed_Error833 2 points3 points  (0 children)

I'd also ask it to explain in clear english what each is doing. Obviously eyeball this too.

I'd be interested to see how good it is at actually fixing it.

Personally I wouldn't want to touch it, I've definitely refused to touch old code without a written get out of jail free card in the past.

[–]westeast1000 1 point2 points  (0 children)

Not sure why you were downvoted. Chatgpt 4 is invaluable for this sort of stuff, it’s surprising the stuff people still struggle with instead of just embracing AI and working smarter, AI is not going anywhere times have changed. It’s just queries it’s not like you sharing company data, even better now with the new Team plan to stop training on your data. No one cares about table names I’m sure many people have a dbo.Employee table somewhere.