Jump to content

Recommended Posts

I am getting the result I expected with ORDER BY/GROUP BY queries WITH a troubling EXCEPTION: the data is being IN ORDER from 0 thru 9, but 10 (which in this test sample is my LARGEST quantity) is being inserted between the ONE and 2 quantity. 

Not sure if this will occur with ALL teen values, as well as hundreds.

The column is a SMALLINT field (not sure if that makes a difference)>

Is there a solution for this situation?

Link to comment
https://forums.phpfreaks.com/topic/258944-10-counting-before-number-2/
Share on other sites

Are you sure it is a SMALLINT? That sounds like sorting of a character field that happens to contain "numbers"?

 

Are you doing any manipulations on the field in the query?

 

How about showing us the query? But first, check the column definition.

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.