Question

Data Science (EPH 2019-2020) to test end 02 Anterrupted Senaye Myers Activity Query Ashleys father keep track of the activit
x Sample Test User Profle e box (4.6301X NA Data Science K O NA Data Science hackerrank.com/tests/cq6t8mfob/questions/d4p2940

MySQL
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Tables:

mysql> select *from FRIENDS; ---- ---- ---+ | ID NAME ACTIVITY -- -- +- ----===-+- - -----+ 1 | James Smith Horse Riding | 2

Query:

select Activity from FRIENDS group by Activity having count(Activity) <> (select max(count) from (select count(*) as count from FRIENDS group by Activity) as s) and count(Activity) <> (select min(count) from (select count(*) as count from FRIENDS group by Activity) as s);

output:

mysql> select Activity from FRIENDS group by Activity having count(Activity) <> (select max(count) from (select count(*) as c

Note: If you have any questions or queries comment below Thank you.

Add a comment
Know the answer?
Add Answer to:
MySQL Data Science (EPH 2019-2020) to test end 02 Anterrupted Senaye Myers Activity Query Ashley's father...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT