что выше ошибка, пожалуйста, поправьте егоисключение SQL (Неправильный синтаксис около «)»)
string cmd = @"SELECT * FROM [tbl_students] WHERE [email protected]
AND branch_id IN(" + branchId + @")
AND (@firstYrPercent is null OR first_year_percent>[email protected]
AND (@secondYrpercent is null OR second_year_percent>[email protected])
AND (@thirdYrPercent is null OR third_year_percent>[email protected])
AND (@finalYearpercent is null OR final_year_percent>[email protected])
AND (@currentDegeePercentage is null OR current_degree_percent>[email protected])
AND (@passoutYear is null OR passing_year>[email protected])
AND (@currentBacklog is null OR current_backlog<[email protected])
AND [email protected]
AND (@eGap is null OR gapin_education<[email protected])
AND (@highSchoolPercentge is null OR highschool_percentage>[email protected])
AND (@higherSchoolPercentage is null OR ssc_percentage>[email protected])
AND (@grauationPercentage is null OR graduation_percentage>[email protected])
AND (@diplomaPercentage is null OR diploma_percentage>[email protected])
AND (@noOfAtkt is null OR number_of_ATKT<[email protected])
AND (@date is null OR DOB>[email protected])";
Возможный дубликат [просьба исправить меня с помощью SQL-запроса] (http://stackoverflow.com/questions/3499381/pl easy-correct-me-with-the-sql-query) ** И ** http://stackoverflow.com/questions/3499584 – gbn