I have a sql statement
sql += "SELECT user_id,COUNT (*) "+
"FROM cit_main "+
"c WHERE c.user_id in "+
"(SELECT user_id "+
"FROM adm_users a "+
"WHERE a.supervisor in "+
"(SELECT b.user_id "+
"FROM adm_users b "+
"WHERE lower(b.login_userid) = '"+id+"')) "+
"and case_no is null and rvw_disposition='N' GROUP BY user_id";
I want this sql statement to cycle through the Id and the count and create a multidementional array.
What happens is I get the array with only the last row of information how do I not write over the previous results?
sql += "SELECT user_id,COUNT (*) "+
"FROM cit_main "+
"c WHERE c.user_id in "+
"(SELECT user_id "+
"FROM adm_users a "+
"WHERE a.supervisor in "+
"(SELECT b.user_id "+
"FROM adm_users b "+
"WHERE lower(b.login_userid) = '"+id+"')) "+
"and case_no is null and rvw_disposition='N' GROUP BY user_id";
I want this sql statement to cycle through the Id and the count and create a multidementional array.
What happens is I get the array with only the last row of information how do I not write over the previous results?