I want to import data from SQL server into R. I have multiple entry ID for different Dates. I need only active observations (i.e. \'endDate\'<\'lastUpdate\') and for othe