Is there a better way than this?

2009-12-27 Thread Tim Molter
I'm new to MySQL and I'm looking for some guidance. I have a table A, with two columns X and Y with the following data: | X|Y| 1 24 1 25 2 25 2 26 3 27 I want my SQL query to return "2" following this verbose logic: SE

Re: Is there a better way than this?

2009-12-28 Thread Tim Molter
IN (24) > > Chris W > > > Tim Molter wrote: >> >> I'm new to MySQL and I'm looking for some guidance. I have a table A, >> with two columns X and Y with the following data: >> >> |   X    |    Y    | >>    1          24 >>    1