I've tried count(iif(expr)) and multiple variations, but can't seem get this to work.
Table one has 500 lines with a date in each line. Lets say line one = 5/19/15
Table two has a list of dates (holidays, vacation, etc.). This table has 10 dates, say:
1/1/15
2/8/15
5/19/15
...
I'm trying to update my table one line by line showing a count of the dates in Table two that are greater than the Table one. Another expression would be dates less than, and yet another if that date equals a date in table two.
Final Table One (separate columns)
My Date, Greater than My Date, Less than My Date, Equal to My Date
5/19/15, 7, 2, 1
Any help would be great!
Table one has 500 lines with a date in each line. Lets say line one = 5/19/15
Table two has a list of dates (holidays, vacation, etc.). This table has 10 dates, say:
1/1/15
2/8/15
5/19/15
...
I'm trying to update my table one line by line showing a count of the dates in Table two that are greater than the Table one. Another expression would be dates less than, and yet another if that date equals a date in table two.
Final Table One (separate columns)
My Date, Greater than My Date, Less than My Date, Equal to My Date
5/19/15, 7, 2, 1
Any help would be great!