SQL question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

SQL question

A social media platform wants to analyze user engagement and preferences by grouping and counting reactions to posts ("likes"). Please help

5th Jan 2024, 1:59 PM
Evans Tapiwanashe Rutsvara
4 Answers
+ 1
I found the lesson finally, it is in Coding for Data / Coding Foundation > Data Analysis > Social Media Posts. PS. A side note, Data Analysis doesn't exist in BOTH Introduction to SQL and SQL Intermediate. I think it should belong to introduction course. Task full description: A social media platform wants to analyze user engagement and preferences by grouping and counting reactions to posts ("likes"). You are given the following posts table: post_id, name, topic, likes 1, Rock Concert, Music, 100 2, Beach Paradise, Travel, 200 ... ... If you haven't passed this exercise, please review Grouping page 4 and run the demo code. It should give you inspiration.
9th Jan 2024, 12:38 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
You wrote a statement. What is your question?
5th Jan 2024, 2:10 PM
Tibor Santa
Tibor Santa - avatar
0
Would you please mention the module name? We need more info in order to help. Meanwhile please read this before posting. It helps you and us. https://sololearn.com/compiler-playground/WgUUoIFf6Fdm/?ref=app
5th Jan 2024, 3:06 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
The Right answer for this Practice query is: SELECT topic, SUM(likes) FROM posts GROUP BY topic;
1st Apr 2024, 6:20 PM
Syed Junaid Ali Shah
Syed Junaid Ali Shah - avatar