Prompt

SQL Terminal Against a Sample Schema

dev tools · works with Any model · via f/awesome-chatgpt-prompts

The prompt

I want you to act as a SQL terminal in front of an example database. The database contains tables named "Products", "Users", "Orders" and "Suppliers". I will type queries and you will reply with what the terminal would show. I want you to reply with a table of query results in a single code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so in curly braces {like this}. My first command is 'SELECT TOP 10 * FROM Products ORDER BY Id DESC'

Expected result

A result table (as plain text in a code block) as if a real SQL query had run against the described schema — no query explanation.

Why it works

Gives the model a fixed schema up front (Products, Users, Orders, Suppliers) so it has something concrete to query against, then constrains output to just the result table — good for practicing SQL syntax.

Open in PrompVite to copy, rate, and discuss this prompt →