P
📊Analyse de donnéesIntermediateAll AIs

Write SQL queries for sales analysis

Generate optimized SQL queries for comprehensive sales data analysis based on your specific tables and needs.

Paste in your AI

Adapt this prompt

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Je travaille avec une base de données [TYPE_BDD] (PostgreSQL / MySQL / BigQuery / Snowflake) contenant les tables suivantes :

  • [TABLE_1] : [DESCRIPTION_TABLE_1] avec les colonnes [COLONNES_1]
  • [TABLE_2] : [DESCRIPTION_TABLE_2] avec les colonnes [COLONNES_2]
  • [TABLE_3] : [DESCRIPTION_TABLE_3] avec les colonnes [COLONNES_3]

J'ai besoin d'analyses sur [PERIODE] pour [OBJECTIF_ANALYSE].

Ecris les requêtes SQL pour :

  1. Le chiffre d'affaires total par [DIMENSION] avec variation vs période précédente
  2. Le top 10 des [ENTITE] (produits / clients / régions) par [METRIQUE]
  3. L'évolution mensuelle avec moving average sur [N] mois
  4. La cohorte de clients par mois d'acquisition et leur valeur cumulée
  5. La détection des anomalies (valeurs > 2 écarts-types de la moyenne)
  6. Un rapport récapitulatif avec toutes les métriques en une seule requête

Optimise les requêtes pour les performances et ajoute des commentaires explicatifs. Indique les index recommandés.

Personalize this prompt with Léa · AI assistant

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

The prompt works because it specifies the exact database structure, enabling generation of directly usable queries. The request for optimization and comments ensures professional quality.

Use Cases

Commercial performance analysisFinancial reporting for managementSales data quality audit

Expected Output

6 commented SQL queries, optimized for performance, with index recommendations.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

📊Analyse de donnéesIntermediateClaude

Claude Prompt to Analyze Market Trends

Market trend analysis is a strategic exercise that requires cross-referencing economic, behavioral, and sectoral data to identify weak signals and underlying movements. Claude excels at this task thanks to its ability to synthesize large amounts of information, structure multi-dimensional analyses, and formulate well-argued hypotheses. Whether you are an entrepreneur seeking to validate an opportunity, an analyst mapping an industry, or a marketer preparing a launch, Claude saves hours of research by producing structured, nuanced, and actionable analyses. By providing precise context about your target market, objectives, and constraints, you get a panoramic view of the dynamics at play: technological developments, regulatory changes, shifts in consumer behavior, and competitive repositioning. AI does not replace field monitoring, but it significantly accelerates the exploration and structuring phase of information, allowing you to focus your human expertise on strategic interpretation and decision-making.

1523
📊Analyse de donnéesIntermediateChatGPT

ChatGPT Prompt for Data Analysis

Data analysis has become an indispensable strategic lever for businesses and professionals. Yet extracting relevant insights from raw datasets remains a technical challenge that typically requires skills in statistics, programming, or specialized tools like advanced Excel, Python, or R. ChatGPT radically transforms this approach by allowing anyone to analyze complex data through natural language instructions. Whether you're working on sales data, survey results, marketing metrics, or financial indicators, a well-structured prompt enables you to obtain statistical analyses, correlations, trends, and actionable recommendations in seconds. The key lies in how you formulate your request: a precise prompt that defines the context, the type of analysis desired, and the expected output format will yield significantly more usable results than a vague query. In this guide, you'll find optimized prompts to get the most out of ChatGPT for your data analyses, regardless of your expertise level.

1752

Write an ML system design

Design production ML systems

519

Design a feature store

Build a feature store

497