Airline lookup lab

Hello !
I have two questions:

  1. in the air_alliances collection the airline “KLM” appears with its “iata” abbreviation rather then full airline name. Does it mean that I must take “iata” into account when building a query ?

  2. Are “747” and “380” mutually exclusive in the airplane string, namely is “747 380 …” combination possible as a legal airplane string ?
    Thanks !

Hi @Yury_Yukhananov, welcome to the community. :wave:

It depends on what you are trying to achieve. Are you trying to filter out documents on the basis of that abbreviation or do you want the full name to be compared?
Hint: Regex can help you build the filter easily.

I don’t think so, however, even in a very rare scenario if you get both of them in the same document, consider it among the results.

If you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
MongoDB

Hi !
Thank you for your reply, it has been helpful.
Best regards,
Yury.

1 Like