Use the schema field
Biggest accuracy boostPaste your CREATE TABLE statements into the schema field above. The query will use your exact table and column names instead of guessed ones, and the sandbox uses the same schema to build the test database.
For the best result
- Include the tables involved in the query, with their column types.
- Mention the PostgreSQL version or flavor if it matters.
- Describe the expected output columns in your prompt.
- For optimization requests, include the current query and any indexes.