i am trying to get this from a query by adding from the same table and using case. Unfortunately I cannot get the desired result. Where am I wrong? thanks.
+-