Shane O’Neill tries something out:
Now, SQL Server doesn’t have the filter option, but we can do some pretty weird things, like a
SELECT...WHERE
statement with noFROM
clause.
SELECT
a,b,c,
[filter?] = (
SELECT
b
WHERE
b > 11)
FROM
z;
GO
It turns out that this works, but when you try to aggregate the results, it doesn’t work the way Shane expected. Using the APPLY operator does help here, so click through to see how that works.