I have table table
Car:
Id
Name
ProductionCountry
Containers :
ID (GUID)
CarId
I want to get containers, where are cars from different countries
So:
Cars:
1 BMW X5 DE
2 BMW X3 DE
3 AUDI A6 MX
4 AUDI A1 FR
5 VOLVO S40 FR
Containers
Guid1 1
Guid1 2
Guid1 3
Guid2 4
Guid2 5
So in result I get Guid1 because in this container are cars from different countries.
How to write query to get it?