I am creating a table by selecting from another. My understanding is that by doing this, the columns created should be of the same data type as the original source. This is not the case for a couple columns and it is driving me nuts. Two columns in particular. One is a Varchar2(4) and the other a Varchar2(1), but in the created table they both become Varchar2(100). Is there any case where this should happen?
My select query is fairly complicated in that there are 20 Unions, but they all pull from the same single table. There are also 28 columns, so I would rather have this work than create the table and populate it in two steps.
Are unions known to mess up this sort of script?