Buon giorno.
Questa query estrapola tutti quei record che hanno nel campo PosNews valore da 1 a 10
In questo modo, in visualizzazione ho soltanto i 10 record come sopra descritto.codice:SELECT * FROM TB_NEWS WHERE ('2017-11-10 08:00:00' BETWEEN dDataIns AND dDataScad) AND (bStatus=1 OR PosNews>0) AND Intranet=1 ORDER BY bStatus DESC, PosNews ASC, dDataNews DESC LIMIT 0, 15
Però vorrei visualizzare anche i restanti 5 che hanno come valore 0.
In pratica
Titolo - Posizione
A - 1
B - 2
M - 10
N - 0
O - 0
ecc. ecc.
Come posso fare?
Grazie a tutti.