The one column should only have one value, so :
keyvalue = '1' and keyvalue = '6'
This can't work.
keyvalue in ('1', '6')
Is same as :
keyvalue = '1' or keyvalue = '6'
Which is why you get multiple rows. Maybe you have a value like '1,6,7' and so you really want this :
keyvalue = '1,6,7'
You may want to show the actual data and your desired results.
M-1
Main Topics
Browse All Topics





by: mattibuttPosted on 2009-11-07 at 11:06:55ID: 25767602
do group by keyvalue