Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ssn test in SQL/PLSQL
TurkBear wrote in message <38293503.70440237_at_super.news-ituk.to>...
<snip>
>What does 'valid ssn number' mean?
>Bob <bookouri_at_my-deja.com> wrote:
<snip>
>>Does anyone have a procedure/function to test a char field for a valid
>>SSN number. I need to produce a text file which includes SSN for each
>>row, but in rows that do not have valid ssn I need to replace the
>>invalid data with '000000000'.
<snip>
This is actually much harder than you imagine, and you need a fairly large-ish internal table to handle the issued vs. non-issued part. But here are the simple parts:
The SSA will do (5) and (6) for you annually if you send them a file. Public agencies dealing with fraud detection and control have a little more leeway here. The best approach is probably to send SSA a file to determine if you have any problems first.
The SSA web site is a very good resource to get started in this.
I have done this in IBM mainframe batch processing environments, but not in Oracle (yet). Received on Thu Nov 11 1999 - 00:47:38 CST