467,107 Members | 1,237 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,107 developers. It's quick & easy.

SQL or stored proc

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,
Aug 21 '07 #1
  • viewed: 894
Share:

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Wolfgang Kreuzer | last post: by
4 posts views Thread by Nyul | last post: by
5 posts views Thread by Rhino | last post: by
reply views Thread by mirandacascade@yahoo.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.