heyinlangley
Programmer
Hi, we've have a very/very large table indexed by STORE, ITEM, DATE and would like to reference the row with the last date less than or equal to an input date.
We currently have a subselect to find the max(date) but the query is very slow due to the large number of rows being matched.
Does anyone have an innovative solution to finding the max row less than or equal to a date without having to write a subselect?
Any help would be much appreciated.
thanks
We currently have a subselect to find the max(date) but the query is very slow due to the large number of rows being matched.
Does anyone have an innovative solution to finding the max row less than or equal to a date without having to write a subselect?
Any help would be much appreciated.
thanks