Sample data :
Ebase table : ebid,firstname,lastname, adress,ect..
Employee table:eeideb(foreign key) ,datebeg,dateend,status
when an employee is active, dateend is null
and status ='active'
the query will be run yearly from
Jan. - Dec.
is it clearer for you now?