SQL prompts for query writing, optimization, schema design, and analytics.
Generate complete full-stack code for a new feature including frontend, backend, database, and tests.
Design optimal database schemas with relationships, indexes, and data modeling best practices.
Generate optimized SQL queries for complex data requirements including joins, aggregations, and CTEs.
Generate safe database migrations with rollback support for schema changes.
Design a complete software architecture including system design, database schema, API design, scalability planning, security considerations, and implementation roadmap. Enterprise-grade technical planning.
Debug and optimize slow database queries
Design API versioning strategies including URL, header, and query parameter approaches with migration paths.
Debug GraphQL queries, mutations, and resolver issues
Debug ORM queries and fix database interaction issues
Plan and execute safe database migrations with zero downtime and data integrity.
Review GraphQL schemas for N+1 resolver issues, query depth attacks, proper nullability design, and DataLoader optimization with production-hardened patterns.
Generate comprehensive documentation for database schemas
Analyze database queries and ORM code for N+1 problems, missing indexes, SQL injection risks, and scalability bottlenecks with optimized query alternatives.
Review search functionality for relevance tuning, query optimization, index design, and user experience features like autocomplete and faceted filtering.
Design a robust data fetching architecture using React Query with proper caching and synchronization.
Implement Redux Toolkit with RTK Query, slices, and modern best practices.
Set up a complete Supabase backend with authentication, database, storage, and real-time features.
Generate a complete SQL database schema with tables, relationships, and indexes
Generate a Go web service with router, middleware, and database patterns
Generate React Query/TanStack Query patterns for data fetching and caching
Design and implement Command Query Responsibility Segregation
Design optimal database architecture for your application needs
Design database sharding strategy for horizontal scaling
Plan optimal indexing strategy for your database tables
Design optimal document schemas for MongoDB or similar databases
Debug SQL queries that return unexpected results
Generate ORM models from database schema or vice versa
Analyze and optimize slow SQL queries for better performance
Design a normalized database schema from requirements
Generate safe database migration scripts with rollback support
Build complex multi-table JOIN queries from natural language
Comprehensive database performance analysis and recommendations
Plan migration from relational to NoSQL database
Write efficient, readable SQL queries and optimize database performance.
The best SQL prompts are specific, structured, and give the AI a clear role, task, and output format. This page collects the highest-rated, most-copied SQL prompts from the FindPrompts library so you can copy and use them instantly.
Yes — you can browse every prompt for free. A one-time $99 lifetime plan unlocks copy, export, and the premium prompts across all 25,000+ in the library.
Open any prompt, copy it, replace the {placeholders} with your details, and paste it into ChatGPT, Claude, Gemini, or your preferred AI tool. Many work as-is.
Go Pro for $19/mo for the full library plus the live AI tools — or own the library for life with a one-time Founding Lifetime. Browse free first.
See pricing