Quote Originally Posted by Alexz003 View Post
The problem is, my code seems right because when i plug it into the actual SQL query box in MySql it runs perfectly fine.
You're saying that when you do this:

Code:
String sql = "SELECT date, percentChange FROM " + tickerMaster[x] + "WHERE date > " + date + " ORDER BY date ASC LIMIT 1";
System.out.println(sql);
ResultSet RS2 = newConnection.execute(sql);
...and copy the output from the System.out.println(sql) command & paste it directly into the SQL query box in MySql it runs perfectly fine??