Questions tagged [variable]
The variable tag has no usage guidance.
1
question
0
votes
1
answer
39
views
Count how many variables equal a target value
Is there a smart way to count how many variables equal some target value (in SQL Server)?
For example, if I have:
declare @a int = 1;
declare @b int = 2;
declare @c int = 1;
declare @target int = 1;
...