I am returning a result set that joins across a schools, students, andgrades` tables. I am basically attempting to query for the grades of each student in each university (this is a toy example):
SELECT s.name, s.description, st.name, g.course, g.grade
FROM school s
JOIN students st ON st.school_id = s.id
JOIN grades g ON g.student_id = st.id
The most straightforward join query, basically.
However, for stylistic and formatting purposes, I'd like to be null out repeat (redundant) information. I struggled to articulate this to a colleague verbally, so I'm relying on this visual to explain what I have and what I want:

Notice how many of the cells for School and School Description are nulled out, because they are repeated. I vaguely remember using a PostgreSQL function (perhaps some WINDOW function? Some special form of GROUP BY? A PARTITION BY) a long time ago that did exactly this. However, I've googled around and scoured the PostgreSQL documentation but have yet to find it.
Does anyone know how to implement this in PostgreSQL? I remember it being relatively straightforward, requiring only a few syntax changes - nothing too verbose or intricate.
I'm sorry I can't be more descriptive! Yes, I know this can be done in the application layer. But I'm asking specifically for SQL options to perform this task.