In a query with two fields using Access. The first field is a date column. The second field is a number from 1-100. <br>
<br>
For each date of the first field there are from 6 to 12 entries with the same date and those dates have corresponding numbers in field 2. <br>
<br>
I would like to assign a number from 1 to 10 with 1 being the max and 12 being the min for the field of numbers. Ranking the numbers in field 2 as a group from 1-12 only as they have the same date. <br>
<br>
ie: field one has 9 rows with the date Dec 26 1998 I need to rank the 9 corresponding numbers in field 2 from<br>
1-9. Next in field one there are 10 rows with the date Dec 27 1998. I need to rank the 10 corresponding numbers in field 2 from 1-10. And so on through out the database. <br>
<br>
How do I write a query in SQl for Microsoft Access to do this?
<br>
For each date of the first field there are from 6 to 12 entries with the same date and those dates have corresponding numbers in field 2. <br>
<br>
I would like to assign a number from 1 to 10 with 1 being the max and 12 being the min for the field of numbers. Ranking the numbers in field 2 as a group from 1-12 only as they have the same date. <br>
<br>
ie: field one has 9 rows with the date Dec 26 1998 I need to rank the 9 corresponding numbers in field 2 from<br>
1-9. Next in field one there are 10 rows with the date Dec 27 1998. I need to rank the 10 corresponding numbers in field 2 from 1-10. And so on through out the database. <br>
<br>
How do I write a query in SQl for Microsoft Access to do this?