Discover the different grouping elements in Presto.
- [Narrator] Presto supports the anti-standard…ways of grouping data, and there might be…some here that you are unfamiliar with…if you've been living in MySQL or Oracle…or any of these other platforms that don't support them.…I thought it was important to dive into these and show…how you can return multiple levels of aggregation…in a single sequel query.…Let's start by logging into Presto,…and we'll just do a query that combines some data…from our MySQL customer table and the nation table in Hive.…
So I'll start with select nat.n_name as nation,…market segment as market,…average account bal as average bal.…Now count of one and count…and we'll start by going from mysql.test.customer,…call that cust.…And then we'll join over to hive.default.nation,…call that nat.…On cust.nationkey = nat.n_nationkey.…
Now I'll add my group by…and I could just group by one of these fields here,…or I'd have to add at least nation and market there,…but if I wanted to return multiple grouping options,…I can add to this grouping sets.…So I'm group by and now I'm giving it grouping sets.…
Data science expert Ben Sullins helps you get up to speed with Presto, and leverage it to accomplish a wide-range of data science and analytics tasks. He uses different interfaces with Presto—such as R and Tableau—and digs into the expressive SQL language that Presto offers for your analysis. At the end of this course, you'll know the key concepts of Presto and how to use them to take full advantage of your modern big data system.
- What does Presto do?
- Running Presto
- Connecting from Tableau and R
- Connecting to Hive, MySQL, and the local system
- Retrieving data
- Combining data sources
- Basic SQL functions
- Advanced SQL functions
- Migrating from Hive
Skill Level Intermediate
SQL: Data Reporting and Analysiswith Emma Saunders2h 16m Intermediate
Advanced SQL for Data Scientistswith Dan Sullivan1h 24m Advanced
Cassandra Data Modeling Essential Trainingwith Dan Sullivan1h 38m Intermediate
1. Introducing Presto
2. Running Presto
4. SQL Syntax
5. Basic SQL functions
6. Advanced SQL Functions
7. Migrating from Hive
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.