SHARE
TWEET

Untitled

a guest Jul 17th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     COUNT(*)
  3. FROM
  4.     myTable
  5. WHERE
  6.     AccountID NOT IN (SELECT
  7.                           RIGHT('000000000' + CAST(Col1 AS VARCHAR(9)), 9)
  8.                       FROM
  9.                           #A) -- Returns records in myTable that no longer exist
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top