I have the following Table which has sequence number and Station codes. I want to bring list of stations between two stations.
If i do
select Station Code from Table1 where Station Code BETWEEN 'BWI' and 'PHL' It should give me stations based on the sequence like this -> (BWI,BAL,WIL,PHL).
Whereas it is giving my the following stations -> (BWI,PHL,NWK,NYP).
Please let me know who do i bring the desired values? I have added the sample Data in Table1 below.
Table1
Sequence Number Station Code 1 WAS 2 BWI 3 BAL 4 WIL 5 PHL 6 NWK 7 NYP