MySQL Forums
Forum List  »  Newbie

Re: asking for a query
Posted by: Peter Brawley
Date: August 28, 2017 10:20AM

select use, count(distinct training) N
from tbl
where training in(1,2,3)
group by user
having N=3;

Options: ReplyQuote

Written By
August 28, 2017 09:56AM
Re: asking for a query
August 28, 2017 10:20AM

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.