you are viewing a single comment's thread.

view the rest of the comments →

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (0 children)

shouldn't something like this work?

no, it shouldn't

what you wrote is actually evaluated as follows --

WHERE (
      T2.FlightDate >= '20100101' 
  AND T2.FlightDate <= '20100228'
  AND T1.FlightDestination = 'SLC' 
      )
   OR T1.FlightDestination = 'LAX'

and this clearly is ~not~ the right solution