What's the difference between 'union' and 'union all' ?
Answer / Sravan Kumar Gautam
UNION removes duplicate rows from the result set, while UNION ALL keeps all the rows. UNION is used when you want a unique list of records combined from multiple queries, whereas UNION ALL is used to combine all records regardless of duplicates.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is cursor and where do you use them?
What are the Different Types of Joins and How do They Work?
What is end users in dbms?
What are views in dbms?
What is data sublanguage?
Is google a database?
How to prevent concurrent access to my data?
Mention a query to calculate the even and odd records from a table
What are the two major subsystems of system r?
What is the easiest database to learn?
What is a relation schema?
Why is data modelling important?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)