I want to know the position of the data which doesn't start with 0. Like below example, in first row first digits are 00 and it returns the 3 position as non zero values start from 3 position
member_id values
008507743 3
017521344 2
040324598 2
SQL CODE:-
select member_id,patindex('%[^0]%',MEMBER_ID)as Index_value from tablename
The above thing in sql and I just want the same in hive and unable to find out the solution for the same. Any help would be appreciable. Thanks