sql server - How to alias union of three sets? -


i need alias union of 3 query this:

select * ( select * union select * b union select * c)t1 

my code appear error.

i don't know how solve it.

please me

first, instead of using select *, name columns; that's error lies. 1 or more of tables (a, b, or c) has more or less columns others.

select  col1, col2    ( select    col1, col2                          union           select    col1, col2                b           union           select    col1, col2                c         ) t1 

if doesn't fix it, post error message received, , rdbms using.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -