INTERSECT

Returns the common rows between two SELECT statements.

Example:

TABLE1 has one column with the following data: a,b,c,d,e,f,g

TABLE2 contains: c,d,f,x,z,

SELECT * FROM TABLE1 INTERSECT SELECT * FROM TABLE2

Results in the following: c,d,f

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.