This illustrates how to choose the right method about teh SQL query.