ASP.NET, SQL, XNA and More...
DECLARE @sort SMALLINT SET @sort = 1 SELECT * FROM Person.Contact ORDER BY CASE WHEN @sort=1 THEN FirstName ELSE LastName END
No comments:
Post a Comment