For Example, I have 2 tables.
Table A has Setting/isActive
Table B has Name/Ages/City
So I want to retrieve records from B only when isActive = 1 for Setting ='GetThis' in Table A
something like
if 'GetThis' = 1 from table A
then get records from table B