NB! the 'Inv_Security_Groups' table contains upper case values (in 'Group Name' column), so the statement above will not work on case-sensetive SQL.
Use it like this:
AND SG.[Group Name] = N'CN=DEV,OU=GROUPS,DC=GOOGLE,DC=COM'
ps. also, the column size is limited to 255 characters, so if the OU/Group is really long in AD, there will be only 255 first symbols out of it.