Check out a userscript which highlights deleted posts.
GitHub
79712023
Date:
2025-07-23 13:54:26
Score:
0.5
Natty:
Report link
Use dynamic SQL or IF. Using a variable like that will mess up your query plans.
Reasons:
Low length (1.5):
No code block (0.5):
Single line (0.5):
High reputation (-2):
Posted by:
David Browne - Microsoft