I need to convert the First() function to work the same way
in SQL * Server. As there is no equivalent in MS-SQL Server.
We need to retrieve the records matching the condition and
select the first record in that group.
Has anybody converted the First() function to purely work with SQL Server ?