SQL Snippets

Snippets are fragments of SQL code that can be reused in your analysis across your charts.

Creating snippets

Using Snippets in SQL

Let's assume you've created a snippet name "PaidUsers", like so:

is_paid = True

You can now easily use this snippet in your query in the following way:

SELECT id, count(customer_id) FROM customers
WHERE [is_paid];

that gets transformed as:

SELECT id, count(customer_id) FROM customers
WHERE is_paid  = True;

Next Generation SQL Data Analysis Write SQL, visualize data, and share your results. Onboarding forward-thinking teams now:

No spam, ever! Unsubscribe any time. Learn more about the product.