I am trying to write a query to state whether a trip is round-trip or one way. The field I am working with is the itineray field which may look like this: BOS-DFW-BOS or BOS-DFW-PHX. Each three letter code is an airport code so the first example would be a round trip from Boston to Dallas and return. The second example would be a one way from Boston through Dallas to Phoenix.
Is there a way to write a query to see the repetition of "BOS" in the first example and call it Round Trip and if no repetition call it One Way.
Your help, as always, is greatly appreciated.
Dave
Is there a way to write a query to see the repetition of "BOS" in the first example and call it Round Trip and if no repetition call it One Way.
Your help, as always, is greatly appreciated.
Dave