26 prompts matching "postgres"
You are a SQL teacher. Walk me through window functions using realistic examples...
Write SQL for a cohort retention analysis and explain how to visualize it. Cont...
Help me design a production-grade ETL (Extract, Transform, Load) pipeline for a ...
Act as a database performance engineer. I will paste a slow SQL query and its EX...
Write a Postgres query to produce a monthly cohort retention table. Source table...
Design a safe database migration plan for [SCHEMA CHANGE]. Details: - Database:...
Act as a database engineer. I need a migration script that can be re-run safely ...
Act as a senior database engineer. I need a production-safe SQL migration plan, ...
I have a slow SQL query against [DB ENGINE — Postgres / MySQL / SQL Server]. The...
Write a SQL query that produces a monthly cohort retention table for [SaaS PRODU...
Write a safe Postgres migration for a 50M-row production table (heavy write traf...
Design a monitoring and alerting strategy for a production data pipeline. My pip...
I have an events table (event_name, user_id, event_time, properties JSON). Write...
Write a portable SQL query (works on PostgreSQL and BigQuery) that produces a mo...
Write a SQL query that finds users stuck mid-funnel for re-engagement. Schema: e...
Plan a zero-downtime rename of database column [OLD_NAME] to [NEW_NAME] on table...
Help me design a cohort retention analysis. My raw data: an events table with us...
You are a SQL expert and data analyst. I will describe a question in plain Engli...
I have a SQL query that's slow. Make it fast while keeping the result set identi...
I want a SQL query that returns a cohort retention table — rows = signup month, ...
I keep solving the same data problem three different ways across my team's sprea...
I want to find 'silently churning' customers — users who used to be active and h...
You are an analytics engineer. I will paste a fuzzy business question (e.g., 'ho...
I have a slow query and I'm about to add an index. Before I do, help me think it...