anchor.diff:  					" GROUP BY u.state"+
   					" ORDER BY u.state ASC"+
   					" LIMIT 1 OFFSET "+next_r_offset;
  +			if(category == null || category.equals("all") || category.equals("null"))
  +			{
  +				SQL_3="SELECT s.pid, u.state, SUM(s.quantity*s.price) AS amount"+
  +						" FROM sales AS s, users AS u"+
  +						" WHERE u.state IN (SELECT DISTINCT state FROM users ORDER BY state ASC LIMIT 20 OFFSET "+r_offset+")"+
  +						" AND s.pid IN (SELECT id FROM products ORDER BY name ASC LIMIT 10 OFFSET "+c_offset+")"+
  +						" AND s.uid = u.id"+
  +						" GROUP BY u.state, s.pid";
  +			}
  +			else
  +			{
  +				SQL_3="SELECT s.pid, u.state, SUM(s.quantity*s.price) AS amount"+
  +						" FROM sales AS s, users AS u"+
  +						" WHERE u.state IN (SELECT DISTINCT state FROM users ORDER BY state ASC LIMIT 20 OFFSET "+r_offset+")"+
  +						" AND s.pid IN (SELECT id FROM products WHERE cid='"+category+"'ORDER BY name ASC LIMIT 10 OFFSET "+c_offset+")"+
  +						" AND s.uid = u.id"+
  +						" GROUP BY u.state, s.pid";
  +			}
   			
  -			SQL_3="SELECT s.pid, u.state, SUM(s.quantity*s.price) AS amount"+
  -					" FROM sales AS s, users AS u"+
  -					" WHERE u.state IN (SELECT DISTINCT state FROM users ORDER BY state ASC LIMIT 20 OFFSET "+r_offset+")"+
  -					" AND s.pid IN (SELECT id FROM products ORDER BY name ASC LIMIT 10 OFFSET "+c_offset+")"+
  -					" AND s.uid = u.id"+
  -					" GROUP BY u.state, s.pid";
   		}
   		else
   		{
  
positive.code: 		rs_3.beforeFirst();
  		while(rs_3.next() && !matched)
  		{
  			//System.out.print(rs_2.getString(1) + "==" + rs_3.getString(2) + "\t");
  			//System.out.print(rs.getInt(1) +"=="+ rs_3.getInt(1) + "\n");
  			if(rs.getInt("id") == rs_3.getInt("pid") && rs_2.getString(1).equals(rs_3.getString(2)))
  			{	
  				//System.out.println(rs_3.getInt("amount"));
  
negative.code: 					" GROUP BY u.name,u.id"+
  					" ORDER BY u.name ASC LIMIT 1"+
  					" OFFSET "+next_r_offset;
  			if(category == null || category.equals("all") || category.equals("null"))
  			{
  				SQL_3 ="SELECT s.pid, s.uid, SUM(s.quantity*s.price) AS amount"+
  						" FROM sales AS s"+
  						" WHERE s.uid IN"+
  						" (SELECT id FROM users WHERE age BETWEEN "+age+" ORDER BY name ASC LIMIT 20 OFFSET "+r_offset+")"+
  						" AND s.pid IN (SELECT id FROM products ORDER BY name ASC LIMIT 10 OFFSET "+c_offset+")"+
  						" GROUP BY s.uid, s.pid";
  			}
  			else
  			{
  				SQL_3 ="SELECT s.pid, s.uid, SUM(s.quantity*s.price) AS amount"+
  						" FROM sales AS s"+
  						" WHERE s.uid IN"+
  						" (SELECT id FROM users WHERE age BETWEEN "+age+" ORDER BY name ASC LIMIT 20 OFFSET "+r_offset+")"+
  						" AND s.pid IN (SELECT id FROM products WHERE cid'"+category+"'ORDER BY name ASC LIMIT 10 OFFSET "+c_offset+")"+
  						" GROUP BY s.uid, s.pid";
  			}
  		}
  		else if (selector == 00)
  		{
  