Am creating a function that will be able to sort date from a table that is over 400,000 rows. I want to pass variables from a java application am running but I can't able to do so. Please help on how to pass a variable from an application to a function so that I can speed up my select queries. Waweru ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings