phpnewbie322 Posted January 2, 2004 Share Posted January 2, 2004 I have a 2 fields called sales and price. Within the sales field there is records \'sales center\', \'agentnames\'(agentnames is the names for the agents). I want to order by price but list the agentnames first which will be ordered by price then list the sales center ordered by price. Is there a way i can do this? Link to comment https://forums.phpfreaks.com/topic/1595-order-by-field/ Share on other sites More sharing options...
gizmola Posted January 2, 2004 Share Posted January 2, 2004 I have a 2 fields called sales and price. Within the sales field there is records \'sales center\', \'agentnames\'(agentnames is the names for the agents). I want to order by price but list the agentnames first which will be ordered by price then list the sales center ordered by price. Is there a way i can do this? Can we get some terminology straight? You say you have 2 fields called sales and price, but it sounds like you have two \"Tables\". Mysql works like this: Database contains --Tables are defined by a set of ----Columns You insert Rows into a Table. (A row is synonymous with a \"Record\" or \"Tuple\") Your misuse of the proper terminology makes it impossible to answer your question with anything but a guess. Link to comment https://forums.phpfreaks.com/topic/1595-order-by-field/#findComment-5219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.