sql-queries

Write dialect-aware SQL across Snowflake, BigQuery, Databricks, and PostgreSQL.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/qytay-palo/gen-e2-data-analysis-MOH --skill sql-queries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/qytay-palo/gen-e2-data-analysis-MOH/tree/main/.github/prompts/data-plugin/skills/sql-queries
Command: npx skills add https://github.com/qytay-palo/gen-e2-data-analysis-MOH --skill sql-queries

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing SQL across multiple dialects is error-prone and time-consuming. The skill provides guidance to write correct, efficient SQL that runs across Snowflake, BigQuery, Databricks, PostgreSQL, and more, reducing translation effort and performance pitfalls.

Core Features & Use Cases

  • Cross-dialect guidance for common patterns (CTEs, window functions, aggregations)
  • Dialect-aware best practices and performance tips
  • Use Case: Convert and optimize a query to work in multiple warehouses with consistent results

Quick Start

Provide a cross-dialect query example that returns monthly active users across Snowflake, BigQuery, and PostgreSQL.

Frequently Asked Questions about sql-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write SQL that works correctly across Snowflake, BigQuery, and PostgreSQL?

To write cross-dialect SQL, you must apply dialect-aware syntax and function compatibility rules. This skill guides query translation and enforces best practices to ensure your SQL runs correctly across major data warehouses like Snowflake, BigQuery, and PostgreSQL.

What is the best way to optimize window functions and CTEs for multiple database dialects?

The best way to optimize window functions and CTEs is to apply dialect-aware performance guidance. This skill provides cross-dialect best practices for complex analytic patterns, ensuring efficient query execution across platforms like Databricks and PostgreSQL.

Can I translate an existing PostgreSQL query to Snowflake without manual syntax adjustments?

Yes, you can translate existing queries by applying dialect-aware syntax and function compatibility checks. This skill handles query translation between PostgreSQL, Snowflake, BigQuery, and Databricks, reducing manual conversion effort and syntax errors.

Why does my query performance drop when moving SQL between different data warehouses?

Query performance drops when moving SQL because different dialects handle execution and functions differently. This skill provides dialect-aware performance tips and best-practice guidance to prevent performance pitfalls during cross-warehouse query translation.

Does this approach support complex analytic patterns like aggregations across Databricks and BigQuery?

Yes, this approach supports complex analytic patterns including aggregations, CTEs, and window functions across Databricks and BigQuery. It enforces dialect-aware syntax and function compatibility to maintain consistent query results across different warehouses.