Jump to content

hnumar7

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hnumar7's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Everyone, I have a question which will probably be very easy to all the experts that are here on this forum. I have a table called lists, and in this table I have 3 columns id, idname, userid what I want to do is create a select statement that will list all the values from idname which contain the same userid is this possible? Thanks in advance for nay help I may receive.
  2. Thanks so much.... I knew this was easy just couldn't figure it out!!... Thanks again for helping out a Newbie
  3. I hope I can explain this well enough for someone to offer me some help. I have a table called rate which has values 1-5 and an ID the table looks like this: rated - ID 5 10 4 10 3 8 2 8 I am attempting to try and get the highest average of any ID based on the values in column rated so in the above example ID 10 would have an average of 4.5 and ID 8 would have an average of 2.5 , so ID 10 would be have the highest average and ID 8 would have the lowest average. Does anyone know what my select statement or php code should look like to accomplish this? I am somewhat comfortable with PHP. Any help or suggestions would be very much appreciated Thanks Henry
×
×
  • 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.