Re: extra max() function possibly very useful?

2002-03-05 Thread Michael Widenius
Hi! > "Richard" == Richard Clarke <[EMAIL PROTECTED]> writes: Richard> Because that wouldn't give the correct results. Richard> I want the top 5 rows for EACH id. Richard> A short example would be, Richard> mytable: Richard> IdValHits Richard> 1 a 10 Richard> 1 b

Fw: extra max() function possibly very useful?

2002-03-04 Thread DL Neil
ist'. > > Regards, > =dn > > - Original Message - > From: "Richard Clarke" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: 04 March 2002 19:09 > Subject: Re: extra max() function possibly very useful? > > > > Cor

Re: extra max() function possibly very useful?

2002-03-04 Thread DL Neil
ge - From: "Richard Clarke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 04 March 2002 19:09 Subject: Re: extra max() function possibly very useful? > Correct. > > Richard > > > - Original Message - > From: "DL Neil" <[EMAIL PR

Re: extra max() function possibly very useful?

2002-03-04 Thread Richard Clarke
Correct. Richard - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Richard Clarke" <[EMAIL PROTECTED]>; "Christopher Thompson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 6:34 PM Subject: Re: e

Re: extra max() function possibly very useful?

2002-03-04 Thread Richard Clarke
t; <[EMAIL PROTECTED]> To: "Richard Clarke" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 5:56 PM Subject: Re: extra max() function possibly very useful? > On Monday 04 March 2002 10:50 am, Richard Clarke wrote: > > > > create t

Re: extra max() function possibly very useful?

2002-03-04 Thread Christopher Thompson
On Monday 04 March 2002 10:50 am, Richard Clarke wrote: > > create table mytable (id int, val char(255), hits int); > insert some data... > > select max(5,hits) from mytable group by id; > > This would allow selecting of the top 5 rows for each id according to the > hit column. > > Without this fu

extra max() function possibly very useful?

2002-03-04 Thread Richard Clarke
Hi, What would the plausability of a function like this being implemented in the future. create table mytable (id int, val char(255), hits int); insert some data... select max(5,hits) from mytable group by id; This would allow selecting of the top 5 rows for each id according to the hit column