---
title: "Introducing ShopifyQL: Our New Commerce Data Querying Language"
description: "ShopifyQL is a commerce-focused query language for Shopify Plus merchants that reorders SQL-like syntax (FROM before SHOW, BY instead of GROUP BY) and adds VISUALIZE for direct charting, COMPARE TO for period-over-period analysis without joins or window functions, and DURING for named commerce date ranges like BFCM."
url: "https://swe.quest/articles/introducing-shopifyql-our-new-commerce-data-querying-language-ffb625f9afa12468"
canonical: "https://shopify.engineering/shopify-commerce-data-querying-language-shopifyql"
source: "Shopify Engineering"
published: "2022-06-22"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 11
tags: ["analytics","language-design","sql","ecommerce"]
---

# Introducing ShopifyQL: Our New Commerce Data Querying Language

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-06-22, 11 min read, Announcement. Original: [https://shopify.engineering/shopify-commerce-data-querying-language-shopifyql](https://shopify.engineering/shopify-commerce-data-querying-language-shopifyql)

## Summary

ShopifyQL is a commerce-focused query language for Shopify Plus merchants that reorders SQL-like syntax (FROM before SHOW, BY instead of GROUP BY) and adds VISUALIZE for direct charting, COMPARE TO for period-over-period analysis without joins or window functions, and DURING for named commerce date ranges like BFCM. It runs over purpose-built exploration data models: single flat tables at the lowest domain grain with fully additive metrics and overlapping coverage across products, orders and customers. Merchants use it through ShopifyQL Notebooks, partners through GraphQL APIs, and Shopify plans to power all Admin analytics with it, with pivoting, aggregate filters in WHERE and more chart types on the roadmap.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Language design](https://swe.quest/tags/language-design.md) (Compilers & runtimes)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

ShopifyQL, Shopify Plus, ShopifyQL Notebooks, GraphQL

## Related posts

- [ShopifyQL Notebooks: Simplifying Querying with Commerce Data Models](https://swe.quest/articles/shopifyql-notebooks-simplifying-querying-with-commerce-data-models-518ab97f2ab79e6a.md): Shopify Engineering · 2023-02-14 · Medium · 11 min read · Analytics & OLAP, Data pipelines, E-commerce, Performance engineering
  Shopify built commerce data models behind ShopifyQL Notebooks so merchants can query metrics like sales and view-to-purchase conversion without SQL or joining across departmental datasets.
- [How Shopify Built An In-Context Analytics Experience](https://swe.quest/articles/how-shopify-built-an-in-context-analytics-experience-bced6498ed610bad.md): Shopify Engineering · 2021-05-25 · Medium · 14 min read · Analytics & OLAP, Data pipelines, Product engineering, Stream processing, E-commerce
  Shopify embedded order and fulfillment metrics directly into the admin Orders page instead of keeping them in a separate Analytics section, after research showed merchants bouncing between pages to make decisions.
- [The evolution of SQL-based observability](https://swe.quest/articles/the-evolution-of-sql-based-observability-efbe90d19ed39688.md): ClickHouse · 2024-11-11 · Medium · 22 min read · Observability, Analytics & OLAP, Storage engines, Databases
  ClickHouse's rewritten JSON column type is presented as the key observability advance of the past year.
- [The Complex Data Models Behind Shopify's Tax Insights Feature](https://swe.quest/articles/the-complex-data-models-behind-shopify-s-tax-insights-feature-49623cc993d19aef.md): Shopify Engineering · 2023-02-08 · Medium · 11 min read · Data pipelines, Analytics & OLAP, SQL, Python
  Shopify's Tax Insights feature tells US merchants when they reach sales-tax economic nexus in each state.
- [Double Entry Transition Tables: How We Track State Changes At Shopify](https://swe.quest/articles/double-entry-transition-tables-how-we-track-state-changes-at-shopify-0ad5df995363b923.md): Shopify Engineering · 2022-05-18 · Medium · 8 min read · Data pipelines, Analytics & OLAP, SQL, Python
  Double entry transition tables record each state change as two rows, a -1 row for the previous state and a +1 row for the new state, so counting entities in any state reduces to summing a net\_change column.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
