1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| With MaTable (ID, [Technical Number], [Last Name], [First Name], [Course Number], Room) as
(
select '00143372', 'FA10012998', '', '', '34445525632', 'Théorique412' union all
select '00143372', 'FA10012998', 'Durand', 'Lucien', '34445525632', ''
)
select ID,
max([Technical Number]) as [Technical Number],
max([Last Name]) as [Last Name],
max([First Name]) as [First Name],
max([Course Number]) as [Course Number],
max(Room) as Room
from MaTable
group by ID;
ID Technical Number Last Name First Name Course Number Room
-------- ---------------- --------- ---------- ------------- ------------
00143372 FA10012998 Durand Lucien 34445525632 Théorique412 |
Partager