Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redash v5 Quick Start Guide

You're reading from   Redash v5 Quick Start Guide Create and share interactive dashboards using Redash

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788996167
Length 224 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Alexander Leibzon Alexander Leibzon
Author Profile Icon Alexander Leibzon
Alexander Leibzon
Yael Leibzon Yael Leibzon
Author Profile Icon Yael Leibzon
Yael Leibzon
Arrow right icon
View More author details
Toc

Query snippets

Query snippets are parts of a query that often repeat themselves, and hence can be reused.

For example, a join between tables, a large where [not] in, or simply a frequently used constraint.

Use of the query snippets is time-saving, since now you can autocomplete large pieces of SQL code in seconds, and it can be shared between colleagues.

To create query snippets, go to Settings | Query snippets:

On the query snippets screen, you will see all the previously created snippets.

Click on the +New Snippet button to start creating a new snippet.

The new query snippet page is displayed and the following fields need to be filled in:

Trigger: This is the word that will be used to invoke the query snippet. The query editor will suggest auto-completion for this word when the user starts to type in the first few letters.

Description: This includes several words to describe...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image