DY 940 then DY 2063 at Copenhagen
Oslo → Copenhagen → Riga
Timetable, Copenhagen time
15:10DY 940 from Oslo at the gate
11:55DY 2063 to Riga leaves the gate
20 h 45 apart on the timetable, overnight
DY 2063 leaves 20 h 45 after DY 940 arrives on the timetable: more than half a day, so not a connection we count.