maybe i'm looking overlooking something plainly obvious but maybe someone can point me in the right direction. in a nutsell i'm trying to find out how many cells in column contain a certain value using the following sql statement:
SQL = SELECT COUNT(column_name) FROM table_name WHERE column_name = 'VALUE';
I've tried the command in access and it works fine. What i'm doing now is passing on a certain value to a javascript function that has that sql command embedded ie
count_function(VALUE);
how do i get it to return whatever value sql server spits out? i was originally thinking something like
my_number = connection_name.execute(SQL)
but that doesn't seem to work real well. Any clues? Thanks!
SQL = SELECT COUNT(column_name) FROM table_name WHERE column_name = 'VALUE';
I've tried the command in access and it works fine. What i'm doing now is passing on a certain value to a javascript function that has that sql command embedded ie
count_function(VALUE);
how do i get it to return whatever value sql server spits out? i was originally thinking something like
my_number = connection_name.execute(SQL)
but that doesn't seem to work real well. Any clues? Thanks!