Course
Writing Functions and Stored Procedures in SQL Server
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Prerequisites
Functions for Manipulating Data in SQL ServerTemporal EDA, Variables & Date Manipulation
User Defined Functions
Stored Procedures
NYC Taxi Ride Case Study
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
What is the difference between user-defined functions and stored procedures in SQL Server?
The course explains both tools in depth. UDFs return values and are used in queries, while stored procedures perform actions and can include complex logic. Chapter 3 compares appropriate scenarios for each.
What real-world datasets are used in this course?
You work with the Washington DC BikeShare transactional dataset for temporal analysis and the New York City yellow taxi dataset for a final case study on taxi utilization by borough.
Which types of user-defined functions will I learn to create?
Chapter 2 covers scalar functions, inline table-valued functions, and multi-statement table-valued functions. You learn when to use each type and associated best practices.
What SQL date and time functions does the course cover?
Chapter 1 covers DATEDIFF, DATENAME, DATEPART, CAST, CONVERT, GETDATE, and DATEADD. You apply these to perform temporal exploratory data analysis on bike-sharing data.
What business problem does the NYC taxi case study solve?
You identify average fare per distance, ride count, and total ride time for each borough by day of the week, then determine which pickup locations should be assigned to each driver shift.
Join over 19 million learners and start Writing Functions and Stored Procedures in SQL Server today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.