Question
syntax run sql in javascript?
Hi, I have a database table which has a column called "type" and there are 7 different type values. I need to count # of each type when user enters a new record in this table. the result of the counts will then put into another table which allows me to use the pie chart widget.
I'd like to write a javascript service. could you please tell me the correct syntax in javascript for:
1. invoking a raw sql command and query in a javascript?
2. if a sql query result is a infotable, what's the syntax to index each column value? I know how to iterate through each row.
3. do you have any suggestion on how to do this more efficiently?
Thanks,

