employer cover photo
employer logo
employer logo

Happiest Minds Technologies

Engaged employer

Happiest Minds Technologies interview question

HOW CAN I WRITE SQL STATEMENT FOR NO. OF DAYS THE EMPLOYEE AS TAKEN LEAVE?

Interview Answer

Anonymous

31 Mar 2024

I went one step deeper and explained that there might be different leaves such as casual, sick, optiona, earned etc. And based on the leave availability and no of leaves takes, I would do a simple calculation by summing total leave and subtracting it from number of working days or total days attended by employee from the total working days (being a better method for orgrnization)