Finished job-view's sql query