AndrewWiggins99
Programmer
Hello,
How can I query:
1) Return the Highest Amount (col1) and return both Amount (Col1) and Amount Date (Col2)
2) Return the two records before that Amount Date (Col2) from Item 1
3) Return the two records after that Amount Date (Col2) from Item 1
There should be 5 records total:
The Highest Amount plus the two records before the highest amount and two records after the highest amount
For 1) I used MAX(col1)... but not sure how to add 2) and 3)
How can I query:
1) Return the Highest Amount (col1) and return both Amount (Col1) and Amount Date (Col2)
2) Return the two records before that Amount Date (Col2) from Item 1
3) Return the two records after that Amount Date (Col2) from Item 1
There should be 5 records total:
The Highest Amount plus the two records before the highest amount and two records after the highest amount
For 1) I used MAX(col1)... but not sure how to add 2) and 3)