U2 7838 then EK 148 at Schiphol
Edinburgh → Amsterdam → Dubai
Timetable, Amsterdam time
14:55U2 7838 from Edinburgh at the gate
14:40EK 148 to Dubai leaves the gate
23 h 45 apart on the timetable, overnight
EK 148 leaves 23 h 45 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.