I need to create a background job that processes a table looking for rows matching on a particular id with different statuses. It will store the row data in a string to comp
Some people find the following alternative syntax easier to see what is going on:
select t1.value,t2.value from MyTable t1 inner join MyTable t2 on t1.id = t2.id where t1.id = @id