Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL 2008 union all numeric column

$
0
0

Hi guys, I'm struggling with an union all. I tried to union a column float with a null column:

SELECTcolumn1,column2,''AS'column 3'FROMtable a
UNION 
SELECTcolumn1,column2,column3FROMtable b

If column 3 is varchar everything ok, if ( as in my case) is numeric I got an error. Any sugegstion guys? Thanks as always


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>