I'm really new to sql / stackoverflow in general so bear with me.
I have a distinct select query that returns the following result
Name Surname Name2 Surname2 Status
---- ------- ----- -------- ------
Peter Parker Mary Jane 0
Peter Parker Felicia Hardy 1
Peter Parker Felicia Hardy 0
Peter Parker Jonah Jameson 1
So obviously every query will have different names. What I would like to show is if the first person and second person have only one row, if it's 0 id like to show a finished message , if its 1 -> incomplete and if they have 2 rows (0 and 1) I'd like to show Working message.
Name Surname Name2 Surname2 Status
---- ------- ----- -------- ------
Peter Parker Mary Jane Finished
Peter Parker Felicia Hardy Working
Peter Parker Jonah Jameson Incomplete
How should I go about this one?