I have an SQL View I am adding these two lines :
AND (NOT((Segment = 7) AND (Type= 'Reserved')))
AND (NOT((Segment>= 6) AND (Type= 'NotReserved')))
The query works, but when I save the View, NOT((Segment = 7) and NOT((Segment>= 6) parts are deleted. When I change order of AND clauses, I mean change query to this :
AND (NOT((Type= 'Reserved') AND (Segment = 7)))
AND (NOT((Type= 'NotReserved') AND (Segment>= 6)))
then (Type= 'Reserved') and (Type= 'NotReserved') are deleted. Why is that? What am I doing wrong? Thanks.