SQL is one of the most widely used computer languages for accessing databases. It is not difficult to learn. Although there are ways to use ChatGPT to analyze data from databases directly using English commands, using SQL directly is better. You or your
database administrator would have to change the setting for ChatGPT to directly access a database table on database management systems, such as SQL Server, MySQL, Oracle, etc.
Personally identifiable data (PID) should not be used with ChatGPT. ChatGPT is not secure and trains itself with what you give it, including confidential information such as social security numbers, student or employee ID’s and student names.
However, you can use ChatGPT to help write and debug queries, but it is the SQL queries that you use with your database, as you did long before AI tools existed.
The first example below will show how ChatGPT can be used to debug a query. Other