What Are Three Rules to Use UNION IN SQL SERVER
Answer / 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 |
Tell me what is a linked server?
Explain what is use of dbcc commands?
What is the difference between upgrade and migration in sql server?
What are the restrictions while creating batches in sql server?
What is the difference between the following two sql statements select count(*) from <tablename> select count(col_name) from <tablename>
What is SQL Profiler and the use of it?
How do I port a number to sql server?
Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?
List all types of constraints in sql server?
What is a function? Give some example?
What is the difference between for trigger and after trigger?
Which command using Query Analyzer will give you the version of SQL server and operating system?
Oracle (3259)
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)