A new report has found that 84 of Scotland’s primary schools ensure that almost ever primary seven pupil is up to standard in reading, writing, numeracy, listening and talking.
The Sunday Times report used data submitted by schools in each of the four categories to come up with a mark out of a maximum of 400.
Read more: Prestigious international school that claimed steady pupil numbers could shut over falling roll
A total of 1,197 primary schools provided data for the annual Achievement in Curriculum for Excellence Levels publications, with the remaining 729 on the government database not participating, either because no children were up to standard, the school roll was too small or the data was not collected centrally.
Schools with a higher proportion of deprived pupils were weighted to rise up the league table to recognise their achievement in delivering a good education despite the challenges of poverty.
The schools were then placed in a league table according to how well they were performing.
In the area covered by Scottish Borders Council a total of 10 primaries received at least 350 points - with none earning full marks.
Here are the top 10 best performing primary schools in the Scottish Borders.
Make sure you don't miss a moment of breaking news from across Scotland by signing up to our free newsletter here.

9. Tweedbank Primary School
Tweedbank Primary School dropped 20 points in the numeracy category and 30 in the writing category to finish with 350 points out of 400. The school has a pupil-to-teacher ratio of 14.6. | Google Maps

10. Duns Primary School
Duns Primary School completes the list of the best performing primaries in the Scottish Borders. It scored 350 points, dropping 10 marks in each of the listening & talking, numeracy and reading categories and 20 marks in the writing category. The school's 355 pupils are taught by 19 teachers. | Google Maps

