You will find a random collection of SQL and PL/SQL code here.
Please help yourself: copy, modify, use the code.