adspace


What the difference between UNION and UNIONALL?

Answer Posted / Neha Gautam

{"union": {"description": "The UNION operator combines the result sets of two or more SELECT statements and eliminates duplicate rows based on a common column."},"union all": {"description": "The UNION ALL operator also combines the result sets of two or more SELECT statements but does not eliminate any duplicate rows."}}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a coalesce function?

1283


What is clustered index

1086


Why and when do stored procedure recompile?

1060


What are the different SQL Server Versions you have worked on?

1079


What is normalization and what are the advantages of it?

1055


How efficient you are in oracle and SQL server?

1257


Is it possible to have clustered index on separate drive from original table location?

1040


What is sql or structured query language?

1227


What is sql server query analyzer?

1128


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2295


What is the difference between for xml raw and for xml auto?

1117


How can we solve concurrency problems?

1122


How do I create a trace in sql server?

1120


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1299


Can we shrink data file in sql server?

1128