I am trying to select all airlines where has the value 'Air Canada Rouge' for example, in the Airline columns there is sometimes concatenated values such as Air Canada, Air Canada Rouge, Air Transat. An example of the select statement I am currently using is:
select * from crs where Airline LIKE '%airlineName' OR Airline LIKE
'airlineName,%' OR Airline LIKE ',airlineName%';
This only works for rows that have Airlines that include 2 values such as Air Canada, Air Canada Rouge.
But I need the select statement to fetch rows with columns that has values that include 3 or 4 concatenated airlines.
How would I make a select statement to do this?
Thank you