I want to retrieve data from two tables.
The two tables are related with a foreign key reference.
I've the following two ways to do this. But don't know which one is the better way.
- A stored function call from the query
- Using a join clause
Which will be the better way? I'm using the technologies: Oracle12c, Java, IBatis. So what is the best way to achieve this?