Query in MSSQL

Query in MSSQL

Would it be possible to have a version of this query for MSSQL?



                        New to ADSelfService Plus?