Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello guys,
I would like to calculate the number of people who work less than a year.
in my data warehouse I do not have the variable which contains the deference between two dates: deference date of entry date and date of exit
(year([ExitD])-year([EntryD]))*12 +( num(month([ExitD]))-num(month([EntryD])))+1 it's working
now i want to calculate the number of employees who had work less than twelve months.
the SQL query which I want to create with
select count( id_trav) FRom travail where Trunc(Months_Between(ExitD+1,EntryD))<12
thank you but the solution that you proposed doesn't exactly work because there's an exception because there's one employee who has 12 months but it's counting him and is it possible to have indicator without the age function
Thank you for your time 🙂