You are right of course, is hardcoding the needed sql acceptable?