I have a table which has the following.
fieldmapid | fieldid
------------+---------
2010 | 180
2012 | 90
2012 | 92
2020 | 90
2020 | 92
2020 | 95
20005 | 90
20005 | 92
I want to write a query which first gets the fieldid's of the fieldmapid(assume it's 2012). And then i want to select the fieldmapid's which have the same fieldid's as the ones in 2012. That means, I need fieldmapid's which have only 90 and 92 as their fieldid's and nothing else. so i want 20005 and 2012 as the output of the query. because these are the only two fieldmapid's which have only 90 and 92 as their fieldid's.