I am thinking a transaction would help me in the following example but I could be wrong. What I am attempting to avoid is making 3 different calls to the database if I dont have too in the following scenerio..
I want to do the following:
- select name, address from employee
- select state from states
- select error from errorTable
In this case I have to call several different selects to get data. What is the best way to approach this scenerio to return all the data I want to read minimizing several calls to the database?
Note: No tables have a relationship between them.