Guide · 9 prompts
Best ChatGPT prompts for SQL and databases
Every prompt below is tagged as working in ChatGPT. Open any prompt for the full text, fill-in blanks and step-by-step instructions.
This guide is presented by your brandSponsored · open- 1 · Coding Write a SQL query from plain English
Describe what you need and get a correct, explained SQL query. - 2 · Coding Design a database schema for my app
Get tables, relations and indexes for a new app. - 3 · Data Write SQL to answer a business question
From a question to a query that runs. - 4 · Coding Write a migration plan from one database to another
Get a step-by-step, low-risk plan to move data between databases. - 5 · Websites & Apps Build a simple web app with a database
A small CRUD app you can actually deploy. - 6 · Coding Practice SQL on a pretend database
An SQL terminal with example tables (Products, Users, Orders, Suppliers); the AI replies only with query results. - 7 · Data Explain a SQL query in plain English
Explains what a SQL query does for someone who doesn't write code. - 8 · Data · attach file Convert a spreadsheet into a SQL table schema
Get CREATE TABLE statements with types, keys and constraints from a sample file. - 9 · Data Write a Google Sheets QUERY formula
Filter, group and sort a sheet with one QUERY formula, explained step by step.