This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder