I have a spreadsheet with columns of data that need multiple match criteria to merge (using FeatureMerger) with SQL DB records, then within the spreadsheet, there are 2 columns for Start and End Date ranges, and within the DB records is a specified date/time. What would be the best way to merge the Features from both sources, matching the other criteria as an exact match, but matching the date to a range?
Solved
Merging Features with Date Ranges
Best answer by ebygomm
@jmhomza
The query should be structured something like this, make sure your dates are already formatted correctly
SELECT DateOfServiceEnd, DateOfServiceStart, Enrollment_FirstName, SQL.Service
FROM Excel, SQL
where SQL.FirstName=Excel.Enrollment_FirstName
AND SQL.Service=Excel.Service
AND SQL.DateOfService BETWEEN Excel.DateOfServiceStart AND Excel.DateOfServiceEnd
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.