Re: Select one valuebut not the other

2015-04-28 Thread Olivier Nicole
> SELECT * FROM table WHERE item_number=1; Sorry if my question was not clear: what I am looking for is: SELECT * FROM table WHERE data_value=1 AND "there is not any reccord with the same item_number and data_value=2" Olivier > > On Wed, April 29, 2015 06:30, Olivier Nicole wrote: >> Hi, >> >>

Re: Select one valuebut not the other

2015-04-28 Thread Mogens Melander
SELECT * FROM table WHERE item_number=1; On Wed, April 29, 2015 06:30, Olivier Nicole wrote: > Hi, > > I am sure that it is feasible with MySQl, and I am sure that's a newbie > question, but my SQL skills are limited... > > I have a table where each record is made of one item_number and one > data

Select one valuebut not the other

2015-04-28 Thread Olivier Nicole
Hi, I am sure that it is feasible with MySQl, and I am sure that's a newbie question, but my SQL skills are limited... I have a table where each record is made of one item_number and one data_value. If one item has several values, there are several records with the same item_number and a differe