I realize this may be a really newbie question and I’m totally missin something , but I want to test out using MIN with strings (in MSSQL):
MIN('d3d742ce-f12e-4402-9a0e-8a05066f6bed',
'03f8d7a7-9feb-4375-b7ff-04c187d46009',
'1c180a55-ce67-4ab4-afe5-9d9907ed1c21' )
But it tells me:
Msg 174, Level 15, State 1, Line 5 The MIN function requires 1
argument(s).
And that makes sense to me now, but I want to do something like that if possible.
Is there a way to do something like this, without using a specific table?
That’s it: (Works starting from SQL Server 2008)