Doing it again with no bold or underline, which can get lost in translation.
On 1/2/2020 2:10 PM, Joe Pluta wrote:
with maxstat as (
select gs1, max(status) status from table
where ts between ts1 and ts2
group by gs1)
select status, count(*) from maxstat
group by status order by status
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.