I have a SQL query where I\'m joining three tables that have information about employees, their departments, their schedules, if they are in vacations or not and reasons why