Good morning ... I have this query
select Numeros.n ,coalesce(Numeros.IdPaciente, datos.IdPaciente) IdPaciente, FechaAnalitica,GlucosaPre,Sodio,Calcio from Numeros
left join
(
select ROW_NUMBER () over (order by IdPaciente asc) Row#,
IdPaciente,FechaAnalitica,GlucosaPre,Sodio,Calcio
from ANA_BIOQUIMICA where IdPaciente = 2450
)datos
on Numeros.n = datos.Row#
this returns the following result:
But I need, that the column "Patient Id" does not return null, but returns the same value as the records above ...
How can I achieve this?
Thank you for sharing your experience ..