>Basically what I am saying here is:
>1) Certain data types (integer, any type field with null) are impossible to create directly in a select statement.
>2)But you can create a cursor on the fly that contains a field of the right type. Do a join onto this cursor and you get get fields of the type you could otherwise select.
Gar,
So are you saying that there is no way to create Integer field in simple SQL statement without creating cursor prior to select statement?
There is another way to handle this situation:
1) Firstly, make our select statement
2) Secondly, issue ALTER TABLE command to change output structure.
We successfully use this technique to get rid off null values.
If it's not broken, fix it until it is.
My Blog