What Are Three Rules to UseĀ UNION IN SQL SERVER

Answer Posted / saravakumar

UNION RULES
A UNION must be composed of two or more SELECT statements,
each separated by the keyword UNION.
Each query in a UNION must contain the same columns,
expressions, or aggregate functions, and they must be listed
in the same order.
Column datatypes must be compatible: They need not be the
same exact same type, but they must be of a type that SQL
Server can implicitly convert.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exclusive locks?

613


What is raiseerror? What is raiseerror?

737


Can binary strings be converted into numeric or float data types?

643


How do you migrate data from mssql server to azure?

155


Explain comment on transactions?

645






What is role playing dimension with two examples? : sql server analysis services, ssas

673


How will you monitor replication latency in transactional replication? : sql server replication

704


What is the importance of concurrency control?

800


What is TDS(Tabular Data Stream) Gateway?

111


How to create a ddl trigger using "create trigger" statements?

709


What are the types of normalization?

638


What happens if null values are involved in datetime operations?

609


What is the difference between ddl and dml?

671


How to replace given values with null using nullif()?

645


Is sql server 2016 free?

606