Occasionally, there may be too many children for the number of places at a school. When this happens, an education authority will allocate places according to a clear set of rules.
They will often do this by looking at how far a child lives from the school and whether they already have a brother or sister at the school.
The Scottish Government booklet 'Choosing a School' explains the school admissions and placing request process.