If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

problem with data types in cognos-- source is sql server

Started by srinidhi, 15 Mar 2011 05:51:05 AM

Previous topic - Next topic

srinidhi

hi all,

i have to do an expression which is as follows:

ordate - 1

cognos does not support this because ordate is date data type. subtraction is not allowed between date and int...

source is sql server..

cast and convert are not working. probably i might have given wrong...

Could you please help me...

thanks,
srinidhi

PRIT AMRIT

cast(CONVERT(VARCHAR(10), GETDATE(), 112),integer)

hope helps?

Thanks
Prit