Enabling Badge SQL entails security and performance risks so it is not available by default. For more information, see: Enable Badge SQL
This topic became too long to be easily searched and has been broken down into separate topics. If you have any questions about how to write a badge query, or have one to share, please start a new topic in the data & reporting category and tag it with the sql-triggered-badge tag.
More ideas: Some common badge queries