I am trying to create a select statement that checks with two values but checks one with null, i created this so far,
string selectStatement
= string.Format(@"SELECT a, b, c
FROM Table1
WHERE c IS NOT NULL AND a = {0} AND b = {1}",
aValue, bValue);
But I am pretty sure it will not work as we can't have 2 ands in select statement, any idea;s please ?