foreach (string word in allTheseWords)
{
allTheseStringsWhereClause = allTheseStringsWhereClause +
" report=" +
word +
" AND ";
}
The problem is after the loop, the SQL clause has an extra AND
at the end of it.
How do I fix this?