SQL prompts for query writing, optimization, schema design, and analytics.
Debug and optimize slow database queries
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.
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 GraphQL schemas for N+1 resolver issues, query depth attacks, proper nullability design, and DataLoader optimization with production-hardened patterns.
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
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
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
Comprehensive database performance analysis and recommendations
Plan migration from relational to NoSQL database
Create database triggers for automated data operations
Design comprehensive database backup and recovery strategy
Build advanced SQL queries using window functions
Optimize database connection pool settings for your application
Implement database security best practices and configurations
Build recursive Common Table Expression queries for hierarchical data
Design horizontal scaling strategy with database sharding
Create optimized database views for complex queries
Design API versioning strategies including URL, header, and query parameter approaches with migration paths.
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 30,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