Book description
To help you on the path to becoming a Snowflake pro, this concise yet comprehensive guide reviews fundamentals and best practices for Snowflake's SQL and Scripting languages. Developers and data professionals will learn how to generate, modify, and query data in the Snowflake relational database management system as well as how to apply analytic functions for reporting.
Author Alan Beaulieu also shows you how to create scripts, stored functions, and stored procedures to return data sets using Snowflake Scripting. This book is ideal whether you're new to databases and need to run queries or reports against a Snowflake database, or transitioning from databases such as Oracle, SQL Server, or MySQL to cloud-based platforms.
With this book, you will:
- Generate and modify Snowflake data using INSERT, UPDATE, DELETE
- Query data in Snowflake using SELECT, including joining multiple tables, using subqueries, and grouping
- Apply analytic functions for performing subtotals, grand totals, row comparisons, and other reporting functionality
- Build scripts combining SQL statements with looping, if-then-else, and exception handling
- Learn how to build stored procedures and functions
- Use stored procedures to return data sets
Publisher resources
Table of contents
- Preface
- 1. Query Primer
- 2. Filtering
- 3. Joins
- 4. Working with Sets
- 5. Creating and Modifying Data
- 6. Data Generation, Conversion, and Manipulation
- 7. Grouping and Aggregates
- 8. Subqueries
- 9. From Clause Revisited
- 10. Conditional Logic
- 11. Transactions
- 12. Views
- 13. Metadata
- 14. Window Functions
- 15. Snowflake Scripting Language
- 16. Building Stored Procedures
- 17. Table Functions
- 18. Semistructured Data
- A. Sample Database
- B. Solutions to Exercises
- Index
- About the Author
Product information
- Title: Learning Snowflake SQL and Scripting
- Author(s):
- Release date: October 2023
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098140328
You might also like
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Practical SQL
"Practical SQL is an approachable and fast-paced guide to SQL (Structured Query Language), the standard programming …
book
Snowflake: The Definitive Guide
Snowflake's ability to eliminate data silos and run workloads from a single platform creates opportunities to …
book
SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL, 4th Edition
The #1 Easy, Common-Sense Guide to SQL Queries—Updated with More Advanced Techniques and Solutions Foreword by …