Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Unique_Key A B
  2. ____________________________
  3. ABC 1 2
  4. BCD 5 6
  5. DDD 10 11
  6.  
  7.  
  8. Unique_Key C D
  9. ____________________________
  10. ABC 6 7
  11. BCD 8 9
  12. DDD 100 200
  13.  
  14. Unique_Key A B C D
  15. _________________________________________________
  16. ABC 1 2 6 7
  17. BCD 5 6 8 9
  18. DDD 10 11 100 200
  19.  
  20. select
  21. [A], [C]
  22. from
  23. tableA r with (nolock) join tableB l with (nolock) on r.Unique_Key =
  24. l.Unique_Key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement