I have a sql table with the below info
Source,year,id,pay,gross (this is the column names)
Delta,89,123,67,4500. (Data below)
Beta,89,123,65,4500
Dept,98,435,87,674
Home,98,435,99,886
What I want to do create a 6th column name category that checks if Id , year and gross are the same then the category should say. Match else no match
I should be able to do a case statement but how do I do this for a table with over 1k records
With mutiple years . The table is created by a union all statement so yu will always have 2 of the same ids on the same year however the gross may or may not be the same . I would prefer a ssrs expression for the category column if not a SQL case statement will do
End result should be
Name,year,Id,pay,gross,category
Delta ,89,123,67,4500,match
Beta,89,123,65,4500,match
Dept,98,435,87,674,no match
Home,98,435,99,886,no match