Learn how to write various conditional expressions in Presto.
- [Instructor] In Presto, if you're looking to perform…some "what if" analysis or some conditional logics…such as reassigning market segments,…you can do so using what they call Conditional Expressions,…and if you're familiar with this in the Ansi SQL…language then this will be easy for you,…but if you're new to it, this will be really…helpful for you and will provide you some…really advanced ways of working with your data.…First let's take a look at how to do a "what if"…analysis on our market segment using the "case" function.…
First, let's log into Presto.…In Presto, if you recall, we have data in…mySQL in a customer table, so we can work…with that data by starting with a select statement,…then saying "case" and giving it that market segment,…which is the field that we're interested in,…and when the value for that column there--market segment--…equals FURNITURE, then instead I want you…to return the word HOME.…So we're essentially reassigning that market segment.…Now when it also equals HOUSEHOLD, which is…
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
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.