Skip to content

Instantly share code, notes, and snippets.

View rizkiandrianto's full-sized avatar
🏠
Working from home

Rizki Andrianto rizkiandrianto

🏠
Working from home
View GitHub Profile
select * from notification
right join
(select distinct on (n.seatrequestid) seatrequestid, n.id from notification as n) as distinctnotification
on notification.id = distinctnotification.id
where notification.seatrequestid is not null
order by update_date;