I need to create concatenated query will get data with checking data in other tables.
Firstly I declared (and filled it) two tables with list of ID I\'ll check in other t