I am trying to define two conditions for a WHERE clause:
WHERE Date = @date (already implemented)
and
WHERE Type = @currenttype
Code as follows:
string sql = string.Format("SELECT Result FROM {0} WHERE Date = @date", hostnameclear);
Would I use two WHERE clauses, or can I specify two conditions?
try
just remove second “Where” will do you task