if your problem is

rs = stmt.executeQuery("SELECT DISTINCT BUSID FROM LNKBUSEXEC WHERE EXECID =8");


Keep in mind that tables/columns/ect. with multi-word names need to be treated differently...