Is there a way that a query will check that if a value is not included in a particular field? Like for example, in Company ABC only those people are allowed to use that value "Company ABC" and vice versa. So when Xyrus choose Company ABC, it should be added in the query which will result to incorrect Company choose. If they choose correct company, no data will be generate in the query. Is that possible?

Company ABC
Anna
Bodhi
Carla


Company XYZ
Xyrus
Yna
Zachari