Advanced
sql
database
Write an SQL query
Query data correctly. Tuned for Copilot.
Prompt
Write an SQL query for [DATABASE] that [GOAL]. Tables: [SCHEMA]. Explain the query and suggest an index. Use context from my open files and documents.
Replace the [HIGHLIGHTED] parts with your own details.
Example output
A query with joins, grouping and an index tip.
Tips
- Give table and column names exactly.
