From the course: Database Foundations: Database Management
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Add programming elements to the database
From the course: Database Foundations: Database Management
Add programming elements to the database
- [Instructor] Functions and stored procedures are two additional types of database objects that are supported across the majority of RDBMS platforms. They'll be useful when you want to integrate more traditional programming routines into your databases and will greatly expand the capabilities of these systems that you design. Functions are the simpler of the two objects. They typically take some input values that are passed in by a user, and then the function processes that value and returns a new value. For instance, a function could be written that processes date values. The user sends in a calendar date to the function, and the function returns the corresponding day of the week. Now, if you've ever used a spreadsheet app like Excel, then you've almost certainly used functions before. Like Excel, relational database management systems come with dozens of built-in functions that can handle common tasks, and if those aren't enough, you can create and save your own custom functions…
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)
Add programming elements to the database3m 54s
-
(Locked)
Create a function4m 51s
-
(Locked)
Create a stored procedure in PostgreSQL4m 30s
-
(Locked)
Create a stored procedure in SQL Server3m 6s
-
(Locked)
Challenge: Write a stored procedure58s
-
(Locked)
Solution: Write a stored procedure8m 7s
-
(Locked)
-