Dieter, The datatype for the column is output of an expression (col1*col2* and sumthing lyk dis).
The result has almost 55Mill distinct values, so i am not sure where it is failing and still if u want i can post some sample data?
Also i checked the max and min in the resultset it is well within the range of decimal(38,2); Also i casted them individually and it works fine too!
I am not sure whehter it will help or not : When i tried to create a volatile table with "with data" and this select statement inside, The table is being created with Number Datatype.
Dieter,
The datatype for the column is output of an expression (col1*col2* and sumthing lyk dis).
The result has almost 55Mill distinct values, so i am not sure where it is failing and still if u want i can post some sample data?
Also i checked the max and min in the resultset it is well within the range of decimal(38,2); Also i casted them individually and it works fine too!
I am not sure whehter it will help or not : When i tried to create a volatile table with "with data" and this select statement inside, The table is being created with Number Datatype.