93 prompts matching "sql"
Analyze the following slow SQL query and its EXPLAIN output. Identify the bottle...
I need to write a SQL query that pulls weekly metrics for a dashboard. The sourc...
Act as a head of data preparing for an analyst's last day. I want the metric def...
You are a SQL expert and data analyst. I will describe a question in plain Engli...
Act as a product analyst. Build a cohort retention analysis for [PRODUCT] using ...
Act as a data quality lead. I am onboarding a new data source: [SOURCE NAME], fo...
From the event log table with columns user_id, event_name, occurred_at, build a ...
You are an analytics engineer. I will paste a fuzzy business question (e.g., 'ho...
You are an expert SQL expert. Help me write a correct SQL query and understand e...
I want a SQL query that returns a cohort retention table — rows = signup month, ...
You are a database performance engineer. I will paste a slow SQL query and the t...
I have a SQL query that's slow. Make it fast while keeping the result set identi...
I have a slow query and I'm about to add an index. Before I do, help me think it...
I need to backfill [COLUMN/TABLE] with [LOGIC]. The table has [N] rows. Write th...
I want to find 'silently churning' customers — users who used to be active and h...
I have a query with a correlated subquery that runs once per row to find each cu...
Act as a data platform tech lead. Write me a SQL style guide tailored to a 10-pe...
I have two tables I want to combine and I'll describe the key columns and what e...
Act as a SQL expert. My tables are: [describe tables and key columns]. Write a S...
Act as a SQL expert. I will describe what I want in plain English and you will w...
Act as a database performance engineer. Here is a slow query and its context: [P...