Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with DuckDB
  • Table Of Contents Toc
Getting Started with DuckDB

Getting Started with DuckDB

By : Simon Aubury, Ned Letcher
5 (1)
close
close
Getting Started with DuckDB

Getting Started with DuckDB

5 (1)
By: Simon Aubury, Ned Letcher

Overview of this book

DuckDB is a fast in-process analytical database. Getting Started with DuckDB offers a practical overview of its usage. You'll learn to load, transform, and query various data formats, including CSV, JSON, and Parquet. The book covers DuckDB's optimizations, SQL enhancements, and extensions for specialized applications. Working with examples in SQL, Python, and R, you'll explore analyzing public datasets and discover tools enhancing DuckDB workflows. This guide suits both experienced and new data practitioners, quickly equipping you to apply DuckDB's capabilities in analytical projects. You'll gain proficiency in using DuckDB for diverse tasks, enabling effective integration into your data workflows.
Table of Contents (15 chapters)
close
close

Applying function chaining

In this section, we’ll introduce function chaining, an elegant programming style for calling multiple scalar functions sequentially. Function chaining (sometimes termed method chaining) is a familiar technique in object-orientated programming languages – and DuckDB supports this elegant style to increase the readability of code. This will be familiar to users of Python. So, let’s learn how to use function chaining in DuckDB SQL.

We will be using our skiers table from the previous section. Let’s familiarize ourselves with the data available by querying the two name columns:

SELECT skier_first_name, skier_last_name
FROM skiers;

This returns the string fields shown in the following screenshot:

Figure 10.7 – The name fields of the skiers table

Figure 10.7 – The name fields of the skiers table

Let’s say we want to format the names of our skiers by performing the following steps:

  1. Concatenate skier_first_name and skier_last_name...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Getting Started with DuckDB
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon