I\'m having an issue with my query not working. This is the command variable.
command
When it executes it should be retrieving the tuples that have BSc as their deg
In JDBC your SQL statement should not be terminated by semicolon.
Change
String command = "SELECT distinct fname, lname, student_id FROM student"+ " where degree='"+ degree + "';";
to
String command = "SELECT distinct fname, lname, student_id FROM student"+ " where degree='"+ degree + "'";