Jump to content

Help with query


unknown101

Recommended Posts

 

Hi Guys,

 

im trying to workout how to write a query which involves the following table example:

 

ArtistID || TrackID || Rating || UserID

2                    1              3                1

2                    2              3                1

2                    3              2                1

 

This table will have many ratings, but how would I select all artistIDs which have been rated more than 3 times, by the same user and consistenly giving them a rating of 3 or below (as the table above demonstrates).  So for example the only information i have is the user ID, i then need to find out that info - could anyone give me a hand please?

 

Any help appreciated..

 

Cheers

 

 

Link to comment
https://forums.phpfreaks.com/topic/106775-help-with-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.