Postgresql – How can I filter for the `id`s that satisfies two different SQL database queries, where the same table is queried with both?
I have an SQL query: select * from sval where fid = 994 and val = 'XLON'; that returns id fid val 100 994 's' 102 994 'd' 103 994 'd' 104 994 'd' 110 994 's' 140 994 's'…