Generate PostgreSQL window function queries for rankings, running aggregates, percentiles, lead/lag analysis, and NTILE bucketing.
Provide your table schema and describe the analysis goals (rankings, running totals, comparisons). Specify partition and ordering columns.
Initial release
Sign in and download this prompt to leave a review.