It is sometimes good at building SQL code examples, but almost always needs fine-tuning since it doesn't know the schema specifics.
Having said that one time it gave me code that resulted in an error, then I went back to GPT and said "This code you gave me is giving this error, can you fix it?" and all it would do is say something like "Correct, that code is wrong and will give an error."
Dear God I thought you were about to say Left Shark was 40 years ago and for a brief moment I believed it, time has lost all meaning to me.