06-23-2018 2:14 PM
Hi Team,
I have gone through some documents on Union and Union all in CDS views,I got to know that about union all but what is about union in CDS is there any example on Union.
Thanks
Murali
06-23-2018 3:29 PM
Hi,
According with this reference Abap CDS
In this page have an example:
https://wiki.scn.sap.com/wiki/display/BI/Union+and+Union+All
Regards,
Enric
06-23-2018 3:29 PM
Hi,
According with this reference Abap CDS
In this page have an example:
https://wiki.scn.sap.com/wiki/display/BI/Union+and+Union+All
Regards,
Enric
05-24-2020 7:42 AM
05-24-2020 10:59 PM
Let me mention that even in the cases when results are the same there can be a difference in SQL elapsed times. When you have UNION the database is responsible for ensuring distinct results and pretty often it goes for a distinct operation.
Especially in cases when the developer knows that there is a field with a different value (or a field combination with always different value combinations) in the branches, UNION ALL can have much better performance.
04-28-2020 6:41 AM
A union - It creates a union of rows in the results sets of 2 select statements. A union results set can itself be the left side of a further union. When using union , it removes the duplicates from the result set.
05-24-2020 7:43 AM
05-24-2020 11:15 AM
I'd hope it's right. It's the same answer given by Enric Castella Gonzalez two years ago...
05-24-2020 8:11 AM