Hi,
Quote:
What I need to do is still to receive all the Provinces, but obviously the count of the consumers would be less, as I am now filtering the data
I'm not 100% sure what you are trying to achieve.
It seems that what you are trying to achieve is both restrict and project on the same criteria, almost like saying 'give me the provinces where [some criteria] and don't give me the provinces where [the same criteria]'.
In your case you have restricted the province WC as there are no matches in this province.
Remember that you still retrict tuples that have been outer joined. The join type does not affect how the data is restricted by the where clause.
Hope this helps.
Quote:
I will also need to add constraints onto the consumer, gender and age!
Go for it