Question: Explain the difference between UNION and UNION ALL.Answer: UNION combines and returns unique rows from multiple SELECT statements, while UNION ALL returns all rows including duplicates.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is the difference between SQL and MySQL?
- What is a primary key?
- What is an index in a database?
- What is a foreign key?