0 votes
in Sql by

What is the difference between UNION and UNION ALL SQL syntax?

1 Answer

0 votes
by

UNION SQL syntax is used to select information from two tables. But it selects only distinct records from both the table, while UNION ALL selects all records from both the tables.

Note :- Selected records should have same datatype or else the syntax will not work.

...