Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Orderby decimal as a number MS SQL

LEGEND ,
Jan 20, 2007 Jan 20, 2007

http://www.financeextra.net/creditcards/LowAPR.asp

OK - it should be listing them in numerical order (which it kinda is)
however it doesn't seem to be treating them as a decimal ...

The SQL looks like SELECT * FROM dbo.CreditcardDetails ORDER BY Rate DESC"

Anyone got any advice ?

Cheers Gerry

http://www.FinanceExtra.net


TOPICS
Server side applications
250
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 20, 2007 Jan 20, 2007
Try

SELECT * FROM dbo.CreditcardDetails ORDER BY cast(Rate as float) DESC

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2007 Jan 21, 2007
LATEST

Cheers for that ...



"Julian Roberts" <nospam@charon.co.uk> wrote in message
news:eou7sf$gjd$1@forums.macromedia.com...
> Try
>
> SELECT * FROM dbo.CreditcardDetails ORDER BY cast(Rate as float) DESC
>
> --
> Jules
> http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines