“select groupname,username,userID,firstname,lastname,email,supervisornamefull,supervisorEmail,‘Member’ accesslevel,GroupDomain from DataStores.dbo.Activity_Groups” +
"Where GroupName In " + ABCGroupName + " And ABCId In " + ABCIds + " And GroupDomain Not In " + ABCGroupDomain
Above is the query that I am trying to execute but getting below syntax error.
Execute Query: Incorrect syntax near keyword ‘In’.
Thanks in advance for help.