Anyone? :(
Aug 17, 2014
14
Level 6
SQL - How to get specific resut in GROUP BY
Hi,
I have a table that is like this
id
value
new
uuid
and i'd like to have a query that gets every result that is new = 1 and all the retults with new = 0 if there is not an new = 1 with the same uuid, like this
id
value
new
uuid
i have tried with GROUP BY but it displays
is it possible to have this avoiding sub queries?
Thank you all!
edit: since tables are not working ( @JeffreyWay ) here is a screenshot http://s18.postimg.org/gyfe1i0jd/Cattweura.png
Please or to participate in this conversation.