Apptio interview question

how can u combine sql and java