R4R
Right Place For Right Person TM

How can I use the UNION Operator?

previous previous previous
Question:
How can I use the UNION Operator?

Question:How can I use the UNION Operator?


Answer
The UNION operator is used to combine the result-set of two or more SELECT statements. each SELECT statement within the UNION must have the same number of columns. The columns must also have similar data types. Also, the columns in each SELECT statement must be in the same order. Syntax for UNION : SELECT column_name(e)FROM Table_name1 UNION SELECT column_name(e) FROM table_name2 SQL UNION ALL Syntax SELECT column_name(e) FROM table_name1 UNION ALL SELECT column_name(e) FROM table_name2

By:UMANG
Date:

How can I use the UNION Operator?

Post Your Answers


User Name:
Answers:

Related Links

  1. How can i use INTO Statement ?
  2. HOw can i create the Database?
  3. How do we use NOT NULL Constraint?
  4. How can I create the Index?
  5. What is the use of FIRST() Function?
  6. What is the use of LAST() Function?
  7. What is the use of UCASE() Function?
  8. What is the use of LCASE() Function?
  9. What is the use of MID() Function?
  10. what is the use of LEN() Function?
  11. HOW can i use the ROUND() Function?
  12. How can i use to the NOW() Function?
  13. How can i use to the FORMAT() Function?

Question:How can I use the UNION Operator?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R