Hi,
something, that gets quite near to what I want is:
select a.id, a.value, b.value
from test as a left join test as b on a.id=b.id
group by a.id, a.value having a.value<>b.value;
It spits out the right data, but not the way I want...
+----+-------+-------+
| id | value | value |
+----+-------+-------+
| 2 | b | a |
| 3 | b | a |
| 3 | c | a |
| 3 | d | a |
+----+-------+-------+
Just a little bit closer...
Have a nice thread,
Peter
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php