I have 2 tables and I need to select the relative information, need some help with the query.
Table 2 has ID, MaskID columns.
ID
MaskID
You may want to use a Join in your sql query. The w3schools site has a page explaining how to use it.