Ho risolto così..
ma l'elaborazione è molto lenta .. missà che opterò per qualche altra soluzionecodice:select * from citta where id_citta <> 0 order by (SELECT COUNT(id) FROM strutture where citta=id_citta) desc LIMIT 8
Ho risolto così..
ma l'elaborazione è molto lenta .. missà che opterò per qualche altra soluzionecodice:select * from citta where id_citta <> 0 order by (SELECT COUNT(id) FROM strutture where citta=id_citta) desc LIMIT 8