Jump to content

Mysql query problem


krisdmd

Recommended Posts

Hello,

I have a table called profiles.

I have 3 colums, id,property,value

The property has the items name,rating,birthday and the column value holds the value of each property.

Now i want to order my results by the property rating and value Desc.

I'm stuck here how i can do this ? Can anyone helps me with that ?

 

Link to comment
https://forums.phpfreaks.com/topic/278474-mysql-query-problem/
Share on other sites

you can store your data on your server any way you want. it does not matter what format it is received/retrieved as. you store it so that it makes sense for how you are going to use it and trying to efficiently search for properties by it's name, rating, birthday, or value requires that each of those values be stored in separate columns (unless of course your assignment is to show that you can come up with the query necessary to solve this, in which case you should be attempting to do this yourself rather than asking on a help forum.)

Link to comment
https://forums.phpfreaks.com/topic/278474-mysql-query-problem/#findComment-1433479
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.