Jump to content

Highest 10


ReiOtome

Recommended Posts

I've been dealing with this for a while now...

 

I got a site where people can rate websites...

If you rate a website it is put in the db like this...

Database name is Rating

Rating_id

Website_id

User_id

Rating

 

Now I need to get the 10 highest scores...

The problem is that the user_id can be in the db several times...

If got like 5 times user id 5 in it...

How can I select the user_id's just once... so that I won't get 5 times the same user_id

 

I hope I made some sense... and i hope someone can help me with this...

if somethings unclear I'll try and explain it beter

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.