O teu SQL deverá estar neste momento:
select
ROW_NUMBER() over(order by year(ede.data)) as 'CLASSIFICAÇÃO',
eee.nome as 'NOME',
sum(ede.valortot) as 'TOTAL A PAGAR',
case
when mtcpl.codcur = 1 then 'DIREITO'
when mtcpl.codcur = 3 then 'MEDICINA'
when mtcpl.codcur = 5 then 'SISTEMAS DE INFORMAÇÃO'
when mtcpl.codcur = 6 then 'NUTRIÇÃO'
when mtcpl.codcur = 7 then 'ADMINISTRAÇÃO'
when mtcpl.codcur = 8 then 'EDUCÃÇÃO FÍSICA'
end as 'CURSO',
max(turma.codtur) as 'TURMA',
isnull(ealunos.telaluno,'-') as 'TELEFONE'
from eee,
mtcpl,
turma,
ede,
fl
where
mtcpl.status = 'MA'
and fl.valorbaixado = 0.0000
and fl.datapag is null
and fl.databaixa is null
and ede.valorpago = 0
and ede.valortot > 0.00
and ede.datapag is null
and mtcpl.mataluno = eee.matricula
and mtcpl.mataluno = ede.mataluno
and mtcpl.perletivo = ede.perletivo
and mtcpl.codcur = ede.codcur
and mtcpl.perletivo = turma.codperlet
and mtcpl.codcur = turma.codcur
and ede.codlanc = fl.idlan
and fl.statuslan not in (0)
group by eee.nome,
YEAR(ede.data),
eee.telaluno,
mtcpl.codcur
