i am completely new to sql , and i`m self teaching so please pardon my ignorance.
I have a table like
name1 group1 value1 name2 group1 value1 name1 group2 value1 name2 group2 value2 name3 group2 value1
if the values in the 3rd col are consistent within a group i want to output the first row, if they are inconsistent within the same group , i want to output the first row with a value that says 'missing'
So my output will look like
name1 group1 value1 name1 group2 missing
How do I compare values within the same group? thanks for helping.