3d |
Show how it possible to get from Sighthill to Craiglockhart.
"Thanks to Sam Lafferty for solution
SELECT a.name Start_At, b.num FirstBus, b.company FBC,
e.name Change_At, f.num SecondBus, f.company SBC,
g.name Arive_At
FROM stops a, route b,
stops c, route d,
stops e, route f,
stops g, route h
WHERE a.id = b.stop
AND c.id = d.stop
AND e.id = f.stop
AND g.id = h.stop
AND b.num = d.num
AND b.company = d.company
AND f.num = h.num
AND f.company = h.company
AND c.name = e.name
AND a.name = 'Craiglockhart'
AND g.name = 'Sighthill'
AND d.pos > b.pos
AND h.pos > f.pos
|
|