looks good to me too, but you might want to use an alias for the max field.
SELECT max(ACTLOGID) as maxLogIn, JobNum
-- Bruce
> -----Original Message-----
> From: Chad Gray [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 29, 2000 2:50 PM
> To: CF-Talk
> Subject: Query Question
>
>
>
>
> I would like to get all the data with a value of 1234 in the field
> JobNum. Once i collect these records i would like to get the Record with
> the highest ACTLOGID value.
>
> Can you do a :
>
> SELECT max(ACTLOGID), JobNum
> FROM activitylog
> Where Jobnum='1234'
>
> Or something like that in the query itself? I dont know if Max is a valid
> term... but it was my best guess :)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
> http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists