If I would build an app with those three languages. It would be a java application that uses nodejs web server to use SQL database.
SQL is used to manipulate data in database. It is used by backend processes written in Java. But for client we show only frontend webpage written in js which communicate with backend.