fetch

Sql function to get number from string

0:00
↔️ ↕️

Timecodes:

[Music]

hey guys

i'm venkat and in this video we'll

discuss

two common tasks that are usually asked

in a sql interview

write a sql query to extract only

alphabets

from a given alphanumeric string

similarly

write a sql query to extract only

numbers from a given

alphanumeric string this database table

has only one column

and it contains both numbers and

alphabets

now the task at hand is to write a query

that extract numbers and letters into

separate columns

as you can see here if you want to

follow along here is the sql script


Related queries:


how to extract number from string in oracle sql
how to extract numbers from alphanumeric string in sql
how to get integer value from string in sql server
how to fetch substring from string in sql
how to extract date from string in sql
how to get the number from string in sql
is fetch available in mysql
query to fetch top 5 records