You talk about selecting all the records. Remember don't use Select * if you can help it. Never use Select * if you have an inner join as it sends more data over the network than you need (by definition in an inner join at least two columns contaion the same information). Only ask for the minimum columns you need.
Also always try to have a where clause unless you really need all the records. You never want to return more records across the network that you will actually be using at the other end.
Don't get stuck in the trap of many nondatabase programmers of figuring you can reuse code if you select all the columns and records. Code reuse is a bad idea if it makes the database less efficient. In accessing databases, anything that improves even slightly the performance of a query is the way to go, no matter how much extra code you might have to write. Small differnces in how you write code can savce tremendous amounts of database and network resources making the overall system work faster for all theusers. Inthe web arean this is even more critical as you can;t even calculate how many users might be logged on simultaneously.
Sorry for the rant, but it seemed from your question that writing code for databases is new to you and I'm trying to save you from some common traps.
Questions about posting. See faq183-874