oracle query string builder (limit fix for other dbs)