c# - select query returning more rows than the parameter passed -
earlier tried one
string query = "select top " + traineesperblock + @" * traineedetail subbr = '0' order maxm desc" ;
in traineesperblock when value passesd 69 giving 110 record, should give 69 only.. maxm double field, there records having same maxm value. solution?
first of all, i’d try find out whether trouble because of development environment or database. execute script in dbms shell, replace traineesperblock numbers 69,70. execute same operation in studio. also, if traineesperblock int, try cast string explicit.
Comments
Post a Comment