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

When columns are added to existing tables, what do they initially contain?

633


How to delete existing triggers using "drop trigger"?

561


What is the use of commit?

547


What is multilevel indexing?

536


What is database dimension? : sql server analysis services, ssas

626






Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

539


how can u get last observation in an unknown dataset ?

2003


List some major differences between triggers and stored procedures?

524


Can an entity have two primary keys?

533


What is mscorsvw.exe - process - microsoft .net framework ngen?

533


Where views are stored in sql server?

564


Mention the different types of triggers?

553


Why it is recommended to avoid referencing a floating point column in the where clause?

542


Tell me about normalization in DBMS.

584


Why normalization is used?

559