Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Short Month

Author  Topic 

Zul
Starting Member

17 Posts

Posted - 2009-06-02 : 22:32:14
Hi All

i have database for analysis service that in the database has field raise_date.
i'm using Dundas for reporting. in dundas if we chose raise date so the display data is april agusustus .... september
can you show me how the raise date can display by month (january, february, march.... desember)

Thanks

Zul

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-03 : 13:36:08
what does raise_date store? month names or month numbers? you should be ordering by month number to get january,febrauary,...
Go to Top of Page

Zul
Starting Member

17 Posts

Posted - 2009-06-03 : 21:52:42
im using raise_date with month numbers. in month field i'm using varchar data type, can varchar type short by month?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-06-04 : 03:16:15

order cast(raise_date as int)

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-04 : 13:27:52
quote:
Originally posted by madhivanan


order by cast(raise_date as int)

Madhivanan

Failing to plan is Planning to fail

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-04 : 13:28:05
or just

order by raisedate*1
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-04 : 14:54:16
or just

order by raisedate+0

SCNR


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-06-05 : 02:13:15
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/07/21/ordering-interger-values-stored-in-varchar-column.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -