Closed

I need a php sql query very fast for solve a problem

Posted Feb 10, 2020 0 bids 1,400 views Job #71617

Job details

The brief
I need a query that do :
I need to update the favorite music genre (is associated a number to the genre) when the user listen songs. If the user lister 3 times the rock music and 2 times the pop music, the new favourite genre is the rock.

listened song are in listened
I use this query to export all the listened song for the user :
"SELECT DISTINCT * FROM albums WHERE id = ANY (SELECT album FROM Songs
WHERE id = ANY (SELECT played
FROM listened WHERE userhistory ='$nome')))
ORDER BY Rand() LIMIT 6");



Skills required

Attachments

Bids (0)

No bids yet. Be the first to send one.

Questions

Public, answered by the buyer
Budget Up to $5 / project
  • Delivery1 day
  • Seller level neededLevel 1+
  • Bids0

About the buyer

marxmusic
marxmusic
Level 1 · Offline ·
  • Orders placed112
  • Ratings78
  • Response2 hours
  • JoinedJun 12 2015