I am attempting to create a view in SQL Server 2000 that splits data into individual records from a source table. Source table looks like this:
ShipID, AirlineID, Airport1, Airport2, AirlineID2, Airport3, Airport4, AirlineID3, Airport5, Airport6
My view needs to look like this:
ShipID, Airline, Origin, Destination
So my view needs to split each source record into up to three records in the view
Anyone know how best to do this?
This should set you to your way. Mind added column Transfer. It is here to allow you to sort your flights by timeline.