codice:SELECT * FROM ( select id1 AS ID, punteggio1 as Punteggio from tb_calendario where id1 = 1 UNION SELECT id2 AS ID, punteggio2 as punteggio FROM tb_calendario where id2 = 1 ) TX ORDER BY punteggio DESC
codice:SELECT * FROM ( select id1 AS ID, punteggio1 as Punteggio from tb_calendario where id1 = 1 UNION SELECT id2 AS ID, punteggio2 as punteggio FROM tb_calendario where id2 = 1 ) TX ORDER BY punteggio DESC