![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() Using the INTERSECT Set Operator |
![]() |
The set operator INTERSECT does both of the following:
|
Table 1 | |
Table 2 |
Let’s see how INTERSECT works when used alone and with the keywords ALL and CORR.
|
proc sql; select * from one intersect select * from two; |
One
|
Two
|
X | A |
3 | v |
Tables One and Two have only one unique row in common and this row is displayed in the output. (This is the same row that was eliminated in the earlier example that contained the EXCEPT operator.) |
![]() |
![]() |
|
Copyright
© 2003 SAS Institute Inc.,
Cary, NC, USA. All rights reserved. Terms of Use & Legal Information | Privacy Statement |