From the course: Advanced SQL for Data Scientists
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Extending SQL with user-defined functions
From the course: Advanced SQL for Data Scientists
Extending SQL with user-defined functions
- [Instructor] Now we're going to shift our attention to extending SQL. And this is actually one of the more interesting topics with regards to advanced SQL, which is how do we get beyond what is given to us essentially in the box in the Postgres or whatever database we're using. How can we make it even more functional from a data science perspective? Well, the first thing to note is that of course, SQL provides many types of functions for operating on data and we use them all the time. But in terms of the universe of all possible functions we might need to work with from a data science perspective, what SQL provides is a small fraction. So there are many more functions we might want to be working with. So for example, SQL will provide aggregate functions for us, string manipulation functions, pattern matching, date/time, and geometric functions. And these are just a small number of examples. But we sometimes need custom…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Extending SQL with user-defined functions3m 6s
-
(Locked)
SQL query functions8m 40s
-
(Locked)
Function overloading5m 41s
-
(Locked)
Function volatility4m 2s
-
(Locked)
PL/Python functions3m 44s
-
(Locked)
Challenge: Write a user-defined function34s
-
(Locked)
Solution: Write a user-defined function1m 35s
-
(Locked)
-
-