SELECT BranchID,
( SELECT TOP 1 InstitutionName FROM Institution WHERE Institution.InstitutionID=FIServiceLocation.InstitutionID) InstitutionName
FROM FIServiceLocation
Order By (SELECT TOP 1 InstitutionName FROM Institution WHERE Institution.InstitutionID=FIServiceLocation.InstitutionID)
The feature actually is very useful for me in a project I am working on, since I wanted to be able to sort a computed field.
No comments:
Post a Comment