The league table looks at primary schools across Scotland and assessed them on a number of metrics, with scores out of 100 on listening and talking, numeracy, reading and writing. Across the country, no fewer than 81 schools scored a perfect 400 out of 400.
It also uses neighbourhood deprivation figures which take into account income, jobs, health, education, housing, crime and access to local amenities.
A spokesperson for the Sunday Times said: “We are always careful to clarify that The Times Scotland Primary School League Table is not 'Scotland's schools ranked from best to worst'.
“It presents government data from primary seven, arguably the most important year for pupils preparing for high school, for parents to analyse standards across the 1,250 schools that published reportable results. Our aim is to present data in an easily accessible format that parents can understand.”
Scroll through our picture gallery to which 15 primaries from Edinburgh and the Lothians scored full marks.

5. Blackhall Primary School
Where: 83 Craigcrook Road, Edinburgh EH4 3PH. Scored a perfect 400 out of 400. Deprivation: 10%. Photo: Third Party

6. Dean Park Primary School
Where: 31 Marchbank Gardens, Balerno EH14 7ET. Scored a perfect 400 out of 400. Deprivation: 10%. Photo: Third Party

7. James Gillespie's Primary School
Where: Whitehouse Loan, Edinburgh EH9 1BD. Scored a perfect 400 out of 400. Deprivation: 10%. Photo: Third Party

8. Queensferry Primary School
Where: Burgess Road, Queensferry, South Queensferry EH30 9NX. Scored a perfect 400 out of 400. Deprivation: 10%. Photo: Third Party


