ISIN validation code in PL/SQL
Monday, February 22nd, 2010ISIN = International Securities Identification Number http://en.wikipedia.org/wiki/International_Securities_Identification_Number CREATE OR REPLACE FUNCTION sfCheckISIN(pISIN IN VARCHAR2) RETURN NUMBER IS s number := 0; a number; c number; begin a := case length(pISIN) when 12 then 1 else 2 end; for i in reverse 1..length(pISIN) loop ...