Hi
Is there any reason you cant use:
SELECT
MIN(ST.BG_DTTM) 'Minim'
FROM
tablename ST
Cheers
Andy
==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe