Tens of thousands of pupils in Scotland are still being educated in school buildings that are either substandard or overcrowded, according to official data.

Tens of thousands of pupils in Scotland are still being educated in school buildings that are either substandard or overcrowded, according to official data.