Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT TOP 1 B.Id
- FROM B
- WHERE
- B.c1 = A.c1 OR B.c2 = A.c1 OR B.c3 = A.c1 OR B.c4 = A.c1 OR
- B.c5 = A.c1 OR B.c6 = A.c1 OR B.c7 = A.c1 OR B.c8 = A.c1 OR
- B.c1 = A.c2 OR B.c2 = A.c2 OR B.c3 = A.c2 OR B.c4 = A.c2 OR
- B.c5 = A.c2 OR B.c6 = A.c2 OR B.c7 = A.c2 OR B.c8 = A.c2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement