RE: Selecting the row with largest number in a column

2002-01-28 Thread Butch Bean
looking for ==> $fname, $lname, $age\n"; push(@list, [$h[0],$h[1],$h[2]]); } -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 11:28 AM To: [EMAIL PROTECTED]; Richard Morton; DL Neil; [EMAIL PROTECTED] Subject: RE:

RE: Selecting the row with largest number in a column

2002-01-28 Thread Butch Bean
8 AM To: [EMAIL PROTECTED]; Richard Morton; DL Neil; [EMAIL PROTECTED] Subject: RE: Selecting the row with largest number in a column At 10:06 -0500 1/28/02, Butch Bean wrote: >Richard, > >I use this with all kinds of situations. >I am using this function and others like it on tables with

RE: Selecting the row with largest number in a column

2002-01-28 Thread Paul DuBois
At 10:06 -0500 1/28/02, Butch Bean wrote: >Richard, > >I use this with all kinds of situations. >I am using this function and others like it on tables with 100k to 3m >records. >They always work best when the field your looking for info on is indexed. >Order By only causes a second process that se

RE: Selecting the row with largest number in a column

2002-01-28 Thread Butch Bean
Richard Morton [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 6:33 PM To: [EMAIL PROTECTED]; DL Neil; [EMAIL PROTECTED] Subject: RE: Selecting the row with largest number in a column Thanks, but using SELECT MAX(age) FROM contacts only gives me the maximum age, not the person with that a

RE: Selecting the row with largest number in a column

2002-01-27 Thread Richard Morton
January 2002 20:04 To: DL Neil; Richard Morton; [EMAIL PROTECTED] Subject: RE: Selecting the row with largest number in a column The fastest way I found would be: SELECT MAX(age) FROM contacts good luck bb -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday

Re: Selecting the row with largest number in a column

2002-01-26 Thread DL Neil
- Original Message - From: "Butch Bean" <[EMAIL PROTECTED]> To: "DL Neil" <[EMAIL PROTECTED]>; "Richard Morton" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: 25 January 2002 20:03 Subject: RE: Selecting the row with largest number in a column

RE: Selecting the row with largest number in a column

2002-01-25 Thread Butch Bean
The fastest way I found would be: SELECT MAX(age) FROM contacts good luck bb -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 26, 2002 12:14 PM To: Richard Morton; [EMAIL PROTECTED] Subject: Re: Selecting the row with largest number in a column

Re: Selecting the row with largest number in a column

2002-01-25 Thread Paul DuBois
At 17:13 + 1/26/02, DL Neil wrote: >Hello Richard, > > >> I have a simple query, and a problem countless people must have had, I just >> cannot work it out at the moment, I am new to MySQL; I hope you can help. >> >> My current statement looking at the manual. >> SELECT * FROM contacts WHE

Re: Selecting the row with largest number in a column

2002-01-25 Thread DL Neil
Hello Richard, > I have a simple query, and a problem countless people must have had, I just > cannot work it out at the moment, I am new to MySQL; I hope you can help. > > My current statement looking at the manual. > SELECT * FROM contacts WHERE age=MAX(age); > > I started with: > mysql> sel

Re: Selecting the row with largest number in a column

2002-01-25 Thread Joseph Bueno
Richard Morton a écrit : > > Hello, > > I have a simple query, and a problem countless people must have had, I just > cannot work it out at the moment, I am new to MySQL; I hope you can help. > > My current statement looking at the manual. > SELECT * FROM contacts WHERE age=MAX(age); > > I sta

Selecting the row with largest number in a column

2002-01-25 Thread Richard Morton
Hello, I have a simple query, and a problem countless people must have had, I just cannot work it out at the moment, I am new to MySQL; I hope you can help. My current statement looking at the manual. SELECT * FROM contacts WHERE age=MAX(age); I started with: mysql> select * from contacts wher