What is UNION , UNION ALL?5
486 5b5cc7dbe4d2b41977751599
Q: What is UNION , UNION ALL?
- Show Answer
- Workspace
- Discuss
Answer :
Explanation :
Both these are used to combine the results of different SELECT statements. UNION - Selects only distinct values UNION ALL - Selects duplicate values also Syntax: SELECT column_name(s) FROM table1 UNION / UNION ALL SELECT column_name(s) FROM table2; Notice that 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.
Similar Questions
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.