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.

Related questions

0 votes
asked Jan 12 in Sql by GeorgeBell
0 votes
asked Nov 7, 2021 in Sql by rajeshsharma
...