jawadfrhad
Programmer
hi all
i have a table inLi1 contain many records...
itemid name uprice
1 ja 9
2 fa 10
1 ko 9
1 ja 20
and i write SQL Statement (MIN):
SELECT inLi1.itemid,inLi1.name,inLi1.uprice as uprice1 FROM inLi1 INNER JOIN;
(select itemid,Min(uprice) as uprice FROM inLi1 GROUP BY itemid)ctmp ;
ON inLi1.itemid=ctmp.itemid AND inLi1.uprice=ctmp.uprice ORDER BY inLi1.itemid INTO CURSOR wv1
the result
itemid name uprice
1 ja 9
2 fa 10
1 ko 9
i need the result
itemid name uprice
1 ja 9
2 fa 10
(OR)
itemid name uprice
1 ko 9
2 fa 10
I need one record in case the name is different, the important thing is itemid
thank you
i have a table inLi1 contain many records...
itemid name uprice
1 ja 9
2 fa 10
1 ko 9
1 ja 20
and i write SQL Statement (MIN):
SELECT inLi1.itemid,inLi1.name,inLi1.uprice as uprice1 FROM inLi1 INNER JOIN;
(select itemid,Min(uprice) as uprice FROM inLi1 GROUP BY itemid)ctmp ;
ON inLi1.itemid=ctmp.itemid AND inLi1.uprice=ctmp.uprice ORDER BY inLi1.itemid INTO CURSOR wv1
the result
itemid name uprice
1 ja 9
2 fa 10
1 ko 9
i need the result
itemid name uprice
1 ja 9
2 fa 10
(OR)
itemid name uprice
1 ko 9
2 fa 10
I need one record in case the name is different, the important thing is itemid
thank you