Read the error
When a query fails, the message says what to change. Read it before you edit.
task
SELECT customer_id, count(*) FROM orders fails. Read the message and fix the query.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
When a query fails, the message says what to change. Read it before you edit.
SELECT customer_id, count(*) FROM orders fails. Read the message and fix the query.