SQL Query | How to find employees hired in last n months | Datediff

preview_player
Показать описание
In this video tutorial, we learn how to write a SQL Query to find employees hired in last n months using Datediff function.

Please find the Create , Insert statements and SQL query here

SQL Query to find age | Date functions

How to install SQL Server for practice?

Check out the complete list of SQL Query Interview Questions -

Best Data Science / Analytics / SQL courses
Learn SQL Basics for Data Science Specialization

Data Science Fundamentals with Python and SQL Specialization

Python for Everybody Specialization

Google Data Analytics Professional Certificate

Coursera Plus - Data Science Career Skills

Please do not forget to like, subscribe and share.

For enrolling and enquiries, please contact us at
Рекомендации по теме
Комментарии
Автор

This video of yours explaining about the date diff if approximately 3 years back. However, I must admit that it was well explained not just for the sake of answering right to the question but also by making us understand using =, <= Thanks for your efforts and please do continue to make such content ✨

akashhanchatet-
Автор

Excellent explanation madam thank you....!

hariprasad
Автор

I'm in love with your tutorials ❤️

mummz
Автор

my question is who joined on particularly any month like april.so what will be the syntax

saktidey
Автор

the schema and columns are enclosed in squre brackets [] which does not take in mysql workbench ....is there a way to make it work for

sivachaitanya
Автор

Hi can you make a query to get data of table from 16th of last month to end of month if query is hitted on 1 of current month and if we hit the same query on 16 th of current month we got the data of curr month from 1 to 15 . The constrains is only have to make one query for this + query must be independent of year

cryptoskool
Автор

What was an query for date is before one month

surekhakasabe
Автор

I want it weekly. Could you please help me with that.

thegurunetwork
Автор

what if its between 2 months? like jan and seb

eyushiferaw
Автор

WAQTD EMPLOYNAME who hired in even month?

SatishYadav-jzgw