What problem does it solve?
This Skill helps users write correct, performant, and readable SQL queries across various major data warehouse dialects, simplifying complex data analysis and optimization tasks.
Core Features & Use Cases
- Cross-Dialect SQL Generation: Write SQL compatible with Snowflake, BigQuery, Databricks, PostgreSQL, and Redshift.
- Query Optimization: Improve the performance of slow-running SQL queries.
- Complex Query Construction: Build advanced queries using CTEs, window functions, and aggregations.
- Dialect Translation: Convert SQL queries between different database systems.
- Use Case: You need to write a complex analytical query involving window functions and CTEs to calculate monthly active users for a product, and you need it to run efficiently on BigQuery.
Quick Start
Use the sql-queries skill to write a BigQuery SQL query that calculates the 7-day rolling average of daily active users from a table named 'user_activity'.