Check out example codes for "sql server union all example". It will help you in understanding the concepts better.

Code Example 1

SELECT expression1, expression2, ... expression_n
FROM tables
[WHERE conditions]
UNION ALL
SELECT expression1, expression2, ... expression_n
FROM tables
[WHERE conditions];

Learn ReactJs, React Native from akashmittal.com