Write and optimize SQL queries for any database with explanations and performance tips.
ChatGPT · Coding
Help me write/optimize this SQL query: **What I need:** [DESCRIBE WHAT DATA YOU WANT TO RETRIEVE OR TRANSFORM] **Database type:** [PostgreSQL / MySQL / SQLite / MSSQL / BigQuery / Snowflake] **Relevant table schemas:** ```sql -- Paste your CREATE TABLE statements or describe your tables ``` **Current query (if optimizing):** ```sql [PASTE EXISTING QUERY OR LEAVE BLANK] ``` **Expected row count:**
Best use case: Data analysts, backend developers, and anyone writing SQL against real databases.
By PromptPortal