Sql function to get number from string

  Рет қаралды 70,157

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 32
@zoomtomanav
@zoomtomanav 3 жыл бұрын
This is Awesome!. Thank you sir. From years I have been watching your tutorials and you are always the Best. Again, Thank you for this and all the amazing tutorials.
@vikasverma93
@vikasverma93 3 жыл бұрын
Dear sir, your content is world class..
@Genial_Gouthi
@Genial_Gouthi 3 жыл бұрын
i agree
@KuldeepSingh-nq1vi
@KuldeepSingh-nq1vi Жыл бұрын
Wow Great Explanation Sir, I understood the function correctly...
@AmAddis
@AmAddis Жыл бұрын
Thank you Mr Venkat Big respect Sir. I have done this before watching this . Here is the piece of code . DECLARE @string VARCHAR(32) DECLARE @length INT =1 DECLARE @numbersOnly WHILE PATINDEX (‘%[^0-9]%’ , @string) > 0 BEGIN SET @string = STUFF(@string, PATINDEX (‘%[^0-9]%’ , @string),@string, @length,’ ‘) END SET @numbersOnly = @string SELECT @numbersOnly
@elhammasoudinejad1751
@elhammasoudinejad1751 Жыл бұрын
DECLARE @string VARCHAR(32) ='Di2a3n4a5' DECLARE @length INT =1 DECLARE @numbersOnly VARCHAR(32) ='' WHILE PATINDEX ('%[0-9]%' , @string) > 0 BEGIN SET @numbersOnly = @numbersOnly+ substring(@string ,PATINDEX ('%[0-9]%' , @string),1) SET @string = STUFF(@string, PATINDEX ('%[0-9]%' , @string),@length,'') END select @string , @numbersOnly
@jacksparrowcapitan3232
@jacksparrowcapitan3232 3 жыл бұрын
Great work form interview perspective, waiting for more
@DEEPAKYADAV-rp6rh
@DEEPAKYADAV-rp6rh 3 жыл бұрын
Hello Sir, Please start continuing the Azure tutorial Videos series after #34, ......Eagerly Waiting. You are an awesome teacher.
@AnilKumar-bd2yt
@AnilKumar-bd2yt 3 жыл бұрын
Nice sir. Your big fan. Upload more sql.
@devarakondasankararao3802
@devarakondasankararao3802 3 жыл бұрын
Venkat sir is the great teacher
@sowjanyakamatam4017
@sowjanyakamatam4017 Жыл бұрын
this is perfect!, Thank you for saving the day
@aniketkolte17
@aniketkolte17 3 жыл бұрын
Hello sir, please continue azure tutorial series and include Azure-DevOps also in the series.
@chakravaramranganath9036
@chakravaramranganath9036 3 жыл бұрын
Thank you for the information, appreciate that
@NIRMALA-ts6pf
@NIRMALA-ts6pf 3 жыл бұрын
Thank you so much sir 🙏, it will help us lot.
@ravibathula9105
@ravibathula9105 3 жыл бұрын
sir please do videos on performance tuning /index optimisation/query cost and etc..
@sahej97
@sahej97 3 жыл бұрын
Awesome Tutorial
@mekuriaamu
@mekuriaamu 3 жыл бұрын
you are special. I wish you could do SSAS
@vishalkumargupta5484
@vishalkumargupta5484 3 жыл бұрын
Awesome sir
@dharmeshwarpandey7637
@dharmeshwarpandey7637 3 жыл бұрын
I liked it first sir...love ya...
@PrasannanGachinmani
@PrasannanGachinmani 3 жыл бұрын
We can use ASCII function to extract numbers and alphabets
@raghun2232
@raghun2232 3 жыл бұрын
create function fn_getnumber (@string varchar(100)) returns varchar(100) as begin while patindex('%[^0-9]%')>0 begin set @string=replace(@string,substring(@string,patindex('%[^0-9]%'),1),1,' ') end return @string end by using relace also we can do know sir
@santhoshn3766
@santhoshn3766 3 жыл бұрын
Awesome!!! thanks ..
@georget10i
@georget10i 3 жыл бұрын
Thank You!
@MajidKhan-ln6fs
@MajidKhan-ln6fs 3 жыл бұрын
Thank you
@nikhithareddy2289
@nikhithareddy2289 3 жыл бұрын
Sir, pls make a video on Initcap a string like "iam learning sql server" using sql
@bhargavidutt857
@bhargavidutt857 3 жыл бұрын
Hi Venkat, Thank you for ur detailed explanation. todayI have asked to display the highest occurrence of the character in a string .i tried as "SELECT case when ( REGEXP_INSTR('jhon doe', '[a]+', 1,2)) >0 then 'a' else 'notfound' end "higest_ocuured_charecter" FROM DUAL; can you please help with more generic query for this question Input:- 'jhon doe' output:- 'O'
@SonicVisualGR
@SonicVisualGR Жыл бұрын
Hi, thank you for the great video. One question, - what if @input variable contain non English characters ? What if we don't know what language character comes in the @input variable ? For example lets say @input contain a mix of Greek, English and Numeric characters (for example 'H2ell3oW5or6ldΓει6αΣ7ουΚ8όσ9με' ) ?
@Luth1us
@Luth1us 2 жыл бұрын
What about TRANSLATE() function? It can solve this problem easily.
@itumandal22
@itumandal22 3 жыл бұрын
Too good
@vinays1234
@vinays1234 3 жыл бұрын
What is microservice?
@shubhampatil-sf4km
@shubhampatil-sf4km 3 жыл бұрын
Select TRIM (' Hello World'); How to remove Extra spaces Between "Hello World" And which Function we need to use in MS-SQL?
@Shri-RAM-JaiBajrangBali
@Shri-RAM-JaiBajrangBali 3 жыл бұрын
HI SHUBHAM PLEASE USE THE COMMAND DECLARE @STRING VARCHAR(100)=' Hello World' SELECT REPLACE(REPLACE(REPLACE(@STRING ,CHAR(32),'()'),')(',''),'()',CHAR(32)) AS STRIN_WITHOU_SPACES
Sql server select where in list
4:13
kudvenkat
Рет қаралды 64 М.
How do SQL Indexes Work
12:12
kudvenkat
Рет қаралды 664 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Sql select most repeated value
6:46
kudvenkat
Рет қаралды 98 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 100 М.
Advanced SQL Tutorial | String Functions + Use Cases
13:49
Alex The Analyst
Рет қаралды 184 М.
Sql query to delete from multiple tables
9:57
kudvenkat
Рет қаралды 182 М.
Clustered vs. Nonclustered Index Structures in SQL Server
8:04
Voluntary DBA
Рет қаралды 672 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 252 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН