Advertisement
bytecoded

Untitled

Mar 28th, 2019
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. INSERT INTO #Ta751a31e0b7549d491a75b1e9b0db325
  2. VALUES(SELECT ALLOWED
  3. CurTable.ID
  4. FROM
  5. Reference88 CurTable
  6. INNER JOIN #Ta751a31e0b7549d491a75b1e9b0db325 TT1
  7. ON CurTable.ParentID = TT1.REFFIELD
  8. LEFT JOIN #Ta751a31e0b7549d491a75b1e9b0db325 TT2
  9. ON CurTable.ID = TT2.REFFIELD
  10. WHERE TT2.REFFIELD IS NULL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement