Explains functions in MySQL, walking through a stored function and running it as an example
- [Instructor] If you've ever used a formula in Excel…like sum or vlookup, then you've been using a function.…Now those functions are defined by Excel…when you install the application,…but in sql and most languages you can actually…create your own formulae, and then use them.…The sakilla database comes with three, get customer balance,…inventory held by customer, and inventory in stock.…But you could easily create new functions if you wished.…So a function, just like sum in Excel,…doesn't edit or delete your data,…it doesn't perform an action.…
Generally speaking, it takes an input,…and gives you an output.…So it normally calculates something.…And we're going to have a look at…inventory,…held by customer,…function.…And that terminology there, show, create, function,…is specific to my sql, as is all that follows,…but you can do functions in most versions.…So the create function statement,…the bit that we're interested in,…really is this section, down to end.…
And I've popped that into atom,…so that we can take a bit of a closer look at it.…
Join Emma Saunders as she shows you how to design and write simple SQL queries for data reporting and analysis. Review the different types of SQL, and then learn how to filter, group, and sort data, using built-in SQL functions to format or calculate results. Learn a bit about data types and database design. Discover how to perform more complex queries, such as joining data together from different database tables. Last but not least, Emma shows how to save your queries as views, so you can run them again and again.
- Using different versions of SQL
- Retrieving data with SELECT statements
- Filtering and sorting your results
- Transforming results with built-in SQL functions
- Grouping SQL results
- Merging data from multiple tables
- Identifying data types, and how to make sense of your database design
- Saving SQL queries
Skill Level Intermediate
Data Visualization for Data Analystswith Bill Shander1h 31m Beginner
1. Use SQL to Report Data
Data types in SQL databases5m 47s
2. Group your SQL Results
3. Merge Data from Multiple Tables
4. Advanced Features and Taking Your Learning Forwards
- 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.