I have the following code snippet:
let whereClause = 'CurLocation =' + GS
+ ' and Datediff(DD,LastKYCVerified,GetDate()) >= 180 and CreditCard = ' + 'ACTIVE ' +
' and ClientId Not In (Select ClientId from KYCChangeInfo(Nolock))';
When executing this query in the database, it is important that GS and ACTIVE are enclosed in single quotes since CurLocation is a string variable. How can I modify the code to add these single quotes?