Basically this question was asked in an interview and I couldn't answer.
The tables employee is as follows:
id | name | start_date | end_date
1 A 2015-01-09 2018-03-23
2 B 2012-07-21 2019-01-22
3 C 2013-04-07 null
-
-
-
Now I have to find the id,name of all employees who worked during the year 2017.
Can you please help me.