I have just discovered that my favourite function exists in SQL. Select Case is to me, the best thing ever. Elegant, simple and powerful. Makes short work of processing and sorting in most scripts and programs. And today – whilst writing some queries for reports, I have now found that it exists in SQL! My
Continue reading T-SQL Case function