Guest User

Untitled

a guest
Dec 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.24 KB | None | 0 0
  1. select Teaches.Pnr, count(*)
  2.     from Teaches
  3.     where Teaches.Coursecode in (
  4.         select Coursecode from Externalcourse
  5.         union
  6.         select Coursecode from Internalcourse
  7.     )
  8.     group by Pnr
  9.     having count(*) > 1;
Add Comment
Please, Sign In to add comment