title: How to write a function in the H2 database without using Java
body: <p>This question is reference to question <a href="https://stackoverflow.com/questions/3098905/how-to-create-stored-procedure-using-h2-database">"How to create stored procedure using H2 database?"</a> (continuation of the same question).</p>
  
  <p>Is there a way to write a function in H2 without using Java code? My requirement is to translate the functions written in SQL to H2 without using Java code. I found lot of examples in different portals doing the same using Java code. Your help will be greatly appreciated.</p>
  
  <p>Regards
  Arun</p>