How can one select only the items he want in the IN list? for example
select * from pagetags where TagID in (1,2,4)
Now I want all the page
SELECT distinct(PageID) FROM pagetags WHERE TagID IN (1,2,4) and PageID in (select distinct(PageID) from pagetags group by PageID having count(TagID)=3) group by PageID