Advertisement
PhilTee

Owain Jones

Jun 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.48 KB | None | 0 0
  1. // Server-Devices Pane
  2. SELECT //whatever fields you want//
  3. FROM system
  4. WHERE system.new_description = @System
  5.  
  6. // Passwords Pane
  7. SELECT //all your fields//
  8. FROM filterednew_ITCPasswordSystem as PassSys (nolock)
  9. LEFT JOIN
  10.   filterednew_itcpasswordsystemaccountdetails as AccountPasswords (nolock)
  11.   ON AccountPasswords.new_passwordlognumberidname = PassSys.new_passwordlognumber
  12. WHERE PassSys.new_system IN (
  13.   SELECT new_systemid
  14.   FROM system
  15.   WHERE new_description = @System
  16. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement