codice:select *,if(attributo1 = attributo2,true,false) as stato from ( SELECT tab1.attr1 as attributo1, tab2.attr2 as attributo2, ecc... FROM tab1 JOIN tab2 ON id1 = id2) as tab
codice:select *,if(attributo1 = attributo2,true,false) as stato from ( SELECT tab1.attr1 as attributo1, tab2.attr2 as attributo2, ecc... FROM tab1 JOIN tab2 ON id1 = id2) as tab