Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to find digit counts in a number value

user13393409Dec 16 2010 — edited Dec 16 2010
Actually my requirement is check below condition :
If STD ZIP5 is a 5 digit value, then STD CM ZIP is equal to STD ZIP5, else null.
for this i wrote a SQL Statement as

len(TB_MS_DZD_EB_ACCT_CNSL_SCD.STD_ZIP5) = 5 and TB_MS_DZD_EB_ACCT_CNSL_SCD.STD_CM_ZIP is not null then pass else fail.

but my manager told its "Testing for 5 characters, requirements state 5 digits ".

can any one clarify me where i did wrong??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2011
Added on Dec 16 2010
13 comments
3,120 views