SQL Query - Employees retiring at the end of the month

SQL Query - How to identify employees retiring at the end of the month

Please find below the SQL Query - Select FirstName, LastName, BirthDate, DATEADD(Year,60,BirthDate) from dbo.DimEmployee WHERE DATEADD(Year,60,BirthDate) <= EOMONTH(Getdate())


In this video, we will learn to write a SQL Query to identify the employees retiring at the end of the month. The SQL functions we will learn are - DATEADD and EOMONTH Please find below the entire series of video tutorials on SQL Interview Queries - https://www.youtube.com/watch?v=AhapksIsHxg&list=PL2-GO-f-XvjBl5fpzdfYaPW28PwsLzLc4

Post a Comment

Previous Post Next Post

Contact Form