Home Forums SQL Server 2005 T-SQL (SS2K5) GREATEST and LEAST function RE: GREATEST and LEAST function
corallo.d
SSC-Addicted
Points: 404
More actions
April 24, 2008 at 8:06 am
#806597
Thanks for the fast reply. What I need is not the MAX and MIN. I need a function like COALESCE(field1, field2) which return one of the two fields. The snippet you post it should do the job.
Kind Regards,
D.