Jump to content

Order by field


phpnewbie322

Recommended Posts

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
Share on other sites

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