Skip to content
Advertisement

Need a MySQL Query out of this diagram

I’d like a query that shows me the tracks that a user doesn’t have in his playlist. The only parameter I’ll be getting is the username of a user.

Is that possible with this diagram? If so, could you provide me with a query?

Database Diagram

I’ve tried a query, but not so succesfull.

Not sure what’s missing here. Maybe I’m just thinking too complicated.

Advertisement

Answer

I didn’t get a chance to try it out actually. But your query should be something like this one —

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement