Ask a Question related to ASP Database, Design and Development.
-
Sarah #1
Help with sorting... please.. :)
I'm trying to sort the output of a query.. and I know you can use the
"order by" clause, but it doesn't work the way I want it to.
I'm trying to sort a list of prices, but when I do it gives me
something like this:
1.15
11.25
2.29
205.79
5.99
529.95
How can I make it so it actually goes from lowest to highest priced?
Thanks in advance!
Sarah
Sarah Guest
-
Sorting array vs sorting paginated array
....pulling in a long list of photos in a gallery, and I have a sort function working within the pages of data fine. I need to bring it back out of... -
sorting
Gary, Please repost WITHOUT the attachment. Many of us use dialup and downloading 1433 lines wastes a lot of our time - especially since very... -
Sorting XML
I have an XML file (see code set below) and I wish to sort by the "title" attribute. Now, I am completely lost on XSLT (XSL). I know there is a XSL... -
Sorting in CGI
Hi, I am writing a form that will list the name in the file namedata.dat in alphabetical order and display in a web page. #!/usr/bin/perl use... -
Sorting in SQL
ORDER BY CASE WHEN ISNUMERIC(client_code) = 1 THEN CAST(client_code AS INT) END, CASE WHEN ISNUMERIC(client_code) = 0 THEN client_code END ... -
Ken Schaefer #2
Re: Help with sorting... please.. :)
It appears that you are storing the values in some kind of text field (which
would explain the ordering), since 200 comes before 5 in such a case.
Change the field type in your database to "decimal", or whatever your
database calls it.
Cheers
Ken
"Sarah" <saralicious@/nospam/hotmail.com> wrote in message
news:te4nhv8f83o2aakuggh1bcdtilr7so52cc@4ax.com...
: I'm trying to sort the output of a query.. and I know you can use the
: "order by" clause, but it doesn't work the way I want it to.
:
: I'm trying to sort a list of prices, but when I do it gives me
: something like this:
:
: 1.15
: 11.25
: 2.29
: 205.79
: 5.99
: 529.95
:
: How can I make it so it actually goes from lowest to highest priced?
:
: Thanks in advance!
:
: Sarah
:
Ken Schaefer Guest



Reply With Quote

