Hello everyone,
I need help with the rebuild of an excel function in sql for oracle. You find this function below. It is an ADDITION to the Dutch Elfproef .
(see general examples on : Mobilefish.com - Check Dutch bank account number or citizen service number with Eleven test ).
I tried for 2 long times, but get stuck so PLEASE your help.
Ther is an excel version available at: toad - pCloud
In the excel on page examples are some numbers for testing including good/wrong ('=fout'). these numbers are below too.
I would be very glad to have an sql statement / funtion / package to check some thousends of existing numbers in an oracle database. The second goal is to make a constraint.
Again: the REGULAR Dutch Elfproef WON'T fit! I need this specific formula build in Excel.
Thanx al lot in advance! Harry.
note: Formula is in Dutch. Meaning > IF((when(value(part)----
=ALS((ALS(((WAARDE(DEEL(A2;1;1))*9)+(WAARDE(DEEL(A2;2;1))*8)+(WAARDE(DEEL(A2;3;1))*7)+(WAARDE(DEEL(A2;4;1))*6)+(WAARDE(DEEL(A2;5;1))*5)+(WAARDE(DEEL(A2;6;1))*4)+(WAARDE(DEEL(A2;7;1))*3)+(WAARDE(DEEL(A2;8;1))*2)-(AFRONDEN.NAAR.BENEDEN((((WAARDE(DEEL(A2;1;1))*9)+(WAARDE(DEEL(A2;2;1))*8)+(WAARDE(DEEL(A2;3;1))*7)+(WAARDE(DEEL(A2;4;1))*6)+(WAARDE(DEEL(A2;5;1))*5)+(WAARDE(DEEL(A2;6;1))*4)+(WAARDE(DEEL(A2;7;1))*3)+(WAARDE(DEEL(A2;8;1))*2))/11);0)*11))=10;0;((WAARDE(DEEL(A2;1;1))*9)+(WAARDE(DEEL(A2;2;1))*8)+(WAARDE(DEEL(A2;3;1))*7)+(WAARDE(DEEL(A2;4;1))*6)+(WAARDE(DEEL(A2;5;1))*5)+(WAARDE(DEEL(A2;6;1))*4)+(WAARDE(DEEL(A2;7;1))*3)+(WAARDE(DEEL(A2;8;1))*2)-(AFRONDEN.NAAR.BENEDEN((((WAARDE(DEEL(A2;1;1))*9)+(WAARDE(DEEL(A2;2;1))*8)+(WAARDE(DEEL(A2;3;1))*7)+(WAARDE(DEEL(A2;4;1))*6)+(WAARDE(DEEL(A2;5;1))*5)+(WAARDE(DEEL(A2;6;1))*4)+(WAARDE(DEEL(A2;7;1))*3)+(WAARDE(DEEL(A2;8;1))*2))/11);0)*11))))-(WAARDE(DEEL(A2;9;1)))=0;"GOED";"FOUT")
|examples|Resultaat|
|378498277|good|
|303067833|wrong|
|310007859|good|
|380071253|good|
|380041290|wrong|
|380071710|good|
|378561625|good|
|380107922|good|
|380061363|good|
|378602230|wrong|
|380111688|good|