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 shoud use this query
select ID,MaskName,Total from Table1 Inner join Table2 on Table1.MaskID = Table2.MaskId where ID = "given value"