Hi Guys,
Can you help me with sql or stored proc or function for the requirement I need.
I have a table which has
Departure| Arrival |Via1 |Via2
A |B |C |
D |E |F |G
H |I |J |K
B |A |C |
E |D |G |F
What I mean is if we have Departure and Arrival as LHR to HYD via FRK and if there is a reverse route like HYD to LHR via FRK then I don’t want that 2 rows. I want the rest of the rows this applies for 2 via points as well
LHR-FRK FRK-BOM BOM-HYD and if reverse is HYD-BOM BOM-FRK FRK-LHR then this is reverse I don’t need these rows I want rest.
Dep |Arr |Via1 |Via2
H |I |J |K
Any possible way of doing this??? Any help on this is much appreciated.
Regards,
|