By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,004 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,004 IT Pros & Developers. It's quick & easy.

SQL or stored proc

P: 1
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.

Aug 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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