I have a table from which I want to select the X most recent entries. Usually this is not a problem, I can set the query to select the top X records. My problem is that I want to select more entries based on the number of records in the table. Specifically here is what I want.
1 to 6 records in original table select top 1 record
7 or 8 records = top 2
9 or 10 records = top 3
11 or 12 records = top 4
etc.
Does anyone know of any way to do this.
Thanks in advance
Kevin M. Douglas
kevin@easternresearch.com
1 to 6 records in original table select top 1 record
7 or 8 records = top 2
9 or 10 records = top 3
11 or 12 records = top 4
etc.
Does anyone know of any way to do this.
Thanks in advance
Kevin M. Douglas
kevin@easternresearch.com