Join Simon Allardice for an in-depth discussion in this video Creating user-defined functions, part of SQL Server 2008 Essential Training.
Not only do you have the over 200 functions defined in SQL Server, you can also…define your own, what are referred to as user-defined functions, sometimes…abbreviated to UDFs.…So let's say I've got a piece of SQL here which is doing a sub-query and what…this is doing right now is finding the company name for the customer who has…placed the largest order.…Okay, it's a simple example but this should do the trick.…Let's imagine that I want to get this page of information 25 times a day.…
So I'd like a function that returns it. Well I can start off with this SQL that…I have, but I do need to provide a few more pieces of information for me to…describe what this function is and for a start, I am going to have to give it some kind of name.…Now functions often take parameters.…So I do have to tell SQL Server does this one have any parameters or does…it have no parameters. And then I've also got to say what is returned by the function.…
So most of what I am going to have to write is actually wrapping around the…
- Using T-SQL (Transact-SQL)
- Managing databases with SQL Server Management Studio
- Understanding database normalization
- Using SELECT statements
- Building indexes
- Monitoring database size and integrity
- Backing up and restoring databases
- Creating functions and stored procedures
- Managing database permissions
- Creating and formatting reports
- Adding charts to reports
- Creating and executing a simple SSIS package
Skill Level Beginner
1. Getting Started
2. Installing SQL Server 2008 R2
3. Tools and System Databases
SQL Server system databases2m 22s
4. Creating Databases
5. Importing Existing Data
6. Retrieving Data with SQL
7. Inserting and Updating Data
8. SQL Functions
9. Stored Procedures and Transactions
10. Core Administration Tasks
11. Backing Up and Restoring
12. Security Features
13. Reporting Services
14. Integration Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.