Hey there! 👋 For more interesting content, tutorials, and updates, Feel free to connect with me on Instagram Handles :- @createwithchirag - instagram.com/createwithchirag/ @learn.with.chirag - instagram.com/learn.with.chirag/ LinkedIn: www.linkedin.com/in/chirag-sehgal-9200111b8/ Let's stay connected and keep the creativity flowing! 💡
WITH cte AS ( SELECT requester_id AS id FROM RequestAccepted UNION ALL SELECT accepter_id AS id FROM RequestAccepted ) SELECT id, count(id) AS num FROM cte GROUP BY id ORDER BY count(id) DESC LIMIT 1;
Hey there! 👋 For more interesting content, tutorials, and updates, Feel free to connect with me on
Instagram Handles :-
@createwithchirag - instagram.com/createwithchirag/
@learn.with.chirag - instagram.com/learn.with.chirag/
LinkedIn: www.linkedin.com/in/chirag-sehgal-9200111b8/
Let's stay connected and keep the creativity flowing! 💡
Thanks bhaiya.
bro, u really explained it well ! Best sql series on internet !
Thanks a ton !....Do share with everyone 😄
Nice Work sir! 👍
Glad you liked it.
Keep Supporting 💯
loving you series
@Learn With Chirag why this problem cant be solved using self join plz answer
Thanks
Glad it was helpful to you! 😄
WITH cte AS (
SELECT requester_id AS id FROM RequestAccepted
UNION ALL
SELECT accepter_id AS id FROM RequestAccepted
)
SELECT id, count(id) AS num FROM cte GROUP BY id ORDER BY count(id) DESC LIMIT 1;