@ScottPletcher thanks for quick reply with working solution.
You are right the question needs more explanation.
Table1 is a table with FOREIGN KEYs to some information units (Table1.Id1) with appropriate searching tags (Table1.Id2):
Table1
------------------------------------------------------------------------------------
Id1 | Id2
------------------------------------------------------------------------------------
Foreign key to some information1 | Foreign key to search tag3
Foreign key to some information2 | Foreign key to search tag3
Foreign key to some information1 | Foreign key to search tag4
Foreign key to some information2 | Foreign key to search tag5
------------------------------------------------------------------------------------
That is Table1 actually means e.g.
Table1
--------------------------------------------------
Id1 | Id2
--------------------------------------------------
Some information1 | Windows socket
Some information2 | Windows socket
Some information1 | Windows kernel
Some information2 | Windows API
--------------------------------------------------
Table2 is a table with Searching tags for searching some information.
Table2
-----------------------------------
Id1
-----------------------------------
Foreign key to search tag3
Foreign key to search tag4
-----------------------------------
That is Table2 actually means e.g.
Table2
----------------------
Id1
----------------------
Windows socket
Windows kernel
----------------------
Table3 is a result table with FOREIGN KEYs to some information units (Table3.Id1) with the required searching tags (Table3.Id2):
Table3
------------------------------------------------------------------------------------
Id1 | Id2
------------------------------------------------------------------------------------
Foreign key to some information1 | Foreign key to search tag3
Foreign key to some information1 | Foreign key to search tag4
------------------------------------------------------------------------------------
That is Table3 actually means e.g.
Table3
--------------------------------------------------
Id1 | Id2
--------------------------------------------------
Some information1 | Windows socket
Some information1 | Windows kernel
--------------------------------------------------
That is, "Some information2" does not suit us, because in addition to the required search tag "Windows socket", there is an unnecessary tag "Windows API" and there is absence the second required search tag "Windows kernel".
As per the above solution with COUNT might be somewhat error prone in its use for repeated searches with different tags.