I need to ask something is there any way combine two tables different count of columns like:
Select a,b,c, from x
union
Select d, e from y
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to do something like this
I used ” but you might want to use NULL or 0, NULL will be compatible will all data types, ” will not be
I also used UNION ALL not UNION since it will perform better because it doesn’t have to do a sort operation to get rid of dups
the alias f is not needed here either because the top query determines the name of the columns in the resultset