Please see JDBC Datalist Binder (Custom SQL Queries).