Intermediate SQL Tutorial | Date Functions in SQL Server

Pubblicato il: 28 dicembre 2023
sul canale di: Value Driven Analytics
358
14

Intermediate SQL Tutorial | Date Functions in SQL Server

In this training video, we highlight some of the most commonly used date functions available in SQL Server (and other SQL platforms), including extracting date parts, creating a date from parts with datefromparts, adding and substracting days and months using dateadd, casting columns in date format, and getting the number of days or months between 2 dates with datediff.

If you'd like to learn more about SQL data manipulation, you can check out our intro to SQL training here, which covers selecting data from a data table, creating new columns, joining tables together, and aggregating and grouping data:    • SQL Tutorial for Beginners | Stock Ma...  

Learn more about joins and unions in SQL here:    • Join and Union Tables in SQL and Pandas  

Learn more about subqueries and CTEs in SQL here:    • Mastering Advanced SQL Techniques | S...  

Learn more about the rank statement in SQL here:    • Intermediate SQL | Using Rank and Par...  

Learn more about the having clause in SQL here:    • Advanced SQL Tutorial | Having Clause  

Learn more about the coalesce function in SQL here:    • Coalesce Function in SQL Server: An I...  

______________________________________________

CHAPTERS:
0:00 What kind of date functions are available in SQL?
1:45 What is a schema in SQL?
1:56 How to create a table in sql
2:20 How to assign data types to columns in a table in SQL
2:50 How to insert rows into a table in SQL
2:59 How to see all rows and columns in a SQL data table
3:27 How to extract data part in SQL Server
3:48 How to extract year from date in SQL Server
4:50 How to extract month from date in SQL Server
5:18 How to extract day from date in SQL Server
5:45 How to create a date from year, month, and day using datefromparts in SQL Server
6:45 How to use datefromparts to create a month start date column in SQL Server
8:00 How to get the current timestamp using getdate()
8:44 How to use the dateadd function in SQL Server to add days to a date
9:52 How to use the dateadd function in SQL Server to subtract days from a date
10:05 How to use the dateadd function in SQL Server to subtract months from a date
11:29 How to use the cast function in SQL Server to change a columns data type
12:18 What is the try_cast function?
12:56 How to cast a timestamp as a date
13:29 How to subtract dates in SQL Server with the datediff function
15:42 Which clauses can date functions be used in?
16:10 How to dynamically filter rows relative to today in SQL Server
18:38 How to get the first date of the current month in SQL Server
19:15 How to get the first date of last month in SQL Server

______________________________________________

ADDITIONAL VIDEOS YOU MAY LIKE:

Please subscribe to get updates on the latest analytics training videos available!
Whether you’re looking for training on technical skills or soft skills, whether you’re an aspiring analyst or an analytics executive, we have the perfect analytics training video for you! Check out our free training videos at https://valuedrivenanalytics.com/comp...

______________________________________________

ABOUT VALUE DRIVEN ANALYTICS:

Value Driven Analytics is your source of rigorous, affordable, and fast analytics consulting and transformation. If you need an interactive dashboard, analysis, data science model build, automated data process, analytics or leadership training, analytics team management, analytics transformation, or 1-hour analytics consultation (troubleshooting, project advice, career advice), give us a call at 1-877-VAL-DRVN (1-877-825-3786) or learn more about our services at https://valuedrivenanalytics.com/serv...

Stay connected with us!
LinkedIn:   / value-driven-analytics  
Twitter:   / vda_consulting  
Facebook:   / 61550273999898  

If you need help troubleshooting code, project advice, or personalized career advice, consider booking a 1-hour analytics consultation with me. You'll be amazed by what we can accomplish in just 1 hour! https://valuedrivenanalytics.com/hour...

If your organization would like customized and more advanced analytics training, you can read more about the Value Driven Analytics analytics & leadership trainings offered here: https://valuedrivenanalytics.com/anal...

______________________________________________

KEYWORDS:
date functions, sql date functions, datefromparts, datefromparts function, year, month, day, year function, month function, data function, getdate, getdate(), getdate sql, get today's date, reference today in sql, sqlserver, sql server, sql tutorial, dateadd, dateadd function, datefromparts function, datefromparts sql, add days sql, add months sql, cast, cast function, cast in sql, datediff, data dtypes, datediff function, subtracting dates in sql, data analytics


In questa pagina del sito puoi guardare il video online Intermediate SQL Tutorial | Date Functions in SQL Server della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Value Driven Analytics 28 dicembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 358 volte e gli è piaciuto 14 spettatori. Buona visione!