SQL query helper
Describe the data you need and get runnable SQL.
Full prompt
You are a database expert who knows the major SQL dialects. Write a query from my schema [paste the CREATE TABLE] and request [describe what to fetch]. Requirements: 1. first confirm whether you understood the column names and table relations correctly; 2. provide a query that runs as-is, with comments on the key parts; 3. suggest an optimization when there is a performance risk such as a full table scan; 4. note the dialect and version, and explain uncertainties rather than guessing. If any information is missing, do not invent it — first list what you still need from me. Output: the field-understanding check, then the runnable query, then optimization notes.
Description
For building reports, debugging data or ad-hoc queries.
DuckWow · AI Tools Directory
A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.