MySQL Forums
Forum List  »  Newbie

Re: select if appears twice
Posted by: Amit Sadana
Date: March 24, 2017 03:21AM

you try this

SELECT username, project, COUNT(*) as number_of_roles

FROM userprojects

GROUP BY username, project

HAVING COUNT(*) > 1

Options: ReplyQuote


Subject
Written By
Posted
March 11, 2017 09:18AM
Re: select if appears twice
March 24, 2017 03:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.