Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: How to select a max value within a group

$
0
0

Hi Abhilash,

 

Thanks for the quick reply. I think modifying my SQL query is probably the way to go.

 

The example above was simplified, and I don't thnk putting a summary in the group header or footer will work, because I actually have multiple records that share the max ID value, and I need all of them returned, which I don't think will work in the group header.


This is more like my actual data:

 

Lease       ID

 

LeaseA    1

LeaseA    2

LeaseA    2

 

LeaseB    3

LeaseB    4

LeaseB    4

 

Desired result:

 

LeaseA   2

LeaseA   2

 

LeaseB   4

LeaseB   4


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>