Community, Any help on this will be of great help! I am not able to understand why these functions return NULL values. Please let me know if I'm missing something. Thanks in Advance Regards, Pavan -- Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html