Another killer use cases of ChatGPT is writing SQL queries for beginners. Give it the query and the database structure, and there is a high chance it gives you something usable. Especially nice for beginners.