Name ID StartDate EndDate James 232 2005 2015 James 232 2001 2006 Joe 600 1982 2005 Lord 608 2003 2005 Lord 608 2006 2012 Lord 608 1999 2004 Lee 122 2001 2003 Lee 122 2002 2006Condition is I need the name whose startdate is equal or less than 2005 **ONLY** *AND* Enddate is equal or Greater than 2005 **ONLY** So the output like this Because james and joe have fullfill this condition only Name ID StartDate EndDate James 232 2005 2015 James 232 2001 2006 Joe 600 1982 2005