Re: order by ( bug or undocumented feature )

2001-01-22 Thread Sinisa Milivojevic
Mark Papadakis writes: > Hi all, > > I was wondering what's wrong with a query like this: > > select itemlist , sum(field1), count(*) as cnt from table where where conditions >group by id having cnt=2 order by field_x, field_y desc limit 10 > > I am expecting to get the requested r

Re: order by ( bug or undocumented feature )

2001-01-21 Thread Bob Hall
>Hi all, > >I was wondering what's wrong with a query like this: > >select itemlist , sum(field1), count(*) as cnt from table where >where conditions group by id having cnt=2 order by field_x, field_y >desc limit 10 > >I am expecting to get the requested rows order by field_x. Those >with s

order by ( bug or undocumented feature )

2001-01-21 Thread Mark Papadakis
Hi all, I was wondering what's wrong with a query like this: select itemlist , sum(field1), count(*) as cnt from table where where conditions group by id having cnt=2 order by field_x, field_y desc limit 10 I am expecting to get the requested rows order by field_x. Those with same value (