sql - How to extract only numbered rows from a column -
for e.g: have column named "card no", varchar majority of rows contain numbers , few contains alphanumeric numbers. want ignore records not numbers.
below few examples same:
select cardno xx;
result:
cardno: _______ 1234, 5467, 1234/5467, abc 667, efg428
in above result set, want eliminate last 3 values. please advise.
select cardno xx translate(cardno, ' 0123456789', ' ') null
Comments
Post a Comment