anchor.diff:  			 rs_3=stmt_3.executeQuery(SQL_3);
   			 if(rs_3.next())
   			 {
  -				 amount=rs_3.getFloat(1);
  +				 amount=rs_3.getInt("amount");
   				 out.print("<td><font color='#0000ff'>"+amount+"</font></td>");
   			 }
   			 else
  
positive.code: 		{
  			System.out.println("rows: user - no filters");
  			/** pulls user names, no filters**/
  			SQL_2="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id "+ 
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 20" +"offset "+r_offset+";"; 
  			SQL_21="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id "+ 
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 1" +"offset "+next_r_offset+";"; 
  		}
  		else if(selector == 10) 
  		{
  			System.out.println("rows: user - state filters");
  			/* pulls user names, state filter */ 	
  			SQL_2="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.state='"+ state +"'" + 
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 20" +"offset "+r_offset+";"; 
  			SQL_21="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.state='"+ state +"'" + 
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 1" +"offset "+next_r_offset+";"; 
  		}
  		else if (selector == 01)
  		{
  			System.out.println("rows: user - age filters");
  			/* pulls user names, age filter */ 	
  			SQL_2="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.age between " + age +  
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 20" +"offset "+r_offset+";"; 
  			SQL_21="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.age between " + age +  
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 1" +"offset "+next_r_offset+";"; 
  		}
  		else if (selector == 00)
  		{
  			System.out.println("rows: user - age and state filters");
  			/* pulls user names, age and state filter */ 	
  			SQL_2="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.age between " + age + " AND u.state='"+ state +"'" +
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 20" +"offset "+r_offset+";"; 
  			SQL_21="select  u.name, sum(s.quantity*s.price) as amount from users u, sales s,  products p "+
  					  "where s.uid=u.id and s.pid=p.id AND u.age between " + age + " AND u.state='"+ state +"'" +
  					  "group by u.name "+ 
  					  "order by u.name asc "+
  					  "limit 1" +"offset "+next_r_offset+";"; 
  		}
  	}
  	
  	/* Determine if there are more rows and columns */
  	Statement stmt_11 =conn.createStatement();
  	ResultSet rs_11=stmt_11.executeQuery(SQL_11);
  	boolean moreColumns = false;
  	while(rs_11.next())
  	{
  		moreColumns = true;
  	}
  	Statement stmt_21 =conn.createStatement();
  	ResultSet rs_21=stmt_21.executeQuery(SQL_21);
  	boolean moreRows = false;
  	while(rs_21.next())
  
negative.code: try
  {
  	try{Class.forName("org.postgresql.Driver");}catch(Exception e){System.out.println("Driver error");}
  	
  	/* 	conn = DriverManager.getConnection(
      "jdbc:postgresql://localhost/CSE135?" +
      "user=Bonnie");  */
              
  		conn = DriverManager.getConnection("jdbc:postgresql://ec2-23-21-185-168.compute-1.amazonaws.com:5432/ddbj4k4uieorq7?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory",
      	"qwovydljafffgl", "cGdGZam7xcem_isgwfV3FQ_jxs");
  	stmt =conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
  	stmt_2 =conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
  	stmt_3 =conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
  	
  	System.out.println("=================");
  	
  