I need to return only certain rows based on some logic:
(for each sets of episode nbr and mpi id, if there is a ranking of 1, then ONLY show 1) ELSE
(for each episode nbr per mpi id, if there is NO ranking of 1 then just return all rankings no matter what)
Is this case statements?? I want to return all of these columns but just the certain rows...(for this example it happens to be the first and last row)
(for each sets of episode nbr and mpi id, if there is a ranking of 1, then ONLY show 1) ELSE
(for each episode nbr per mpi id, if there is NO ranking of 1 then just return all rankings no matter what)
Is this case statements?? I want to return all of these columns but just the certain rows...(for this example it happens to be the first and last row)