Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 11 months ago.
Improve this question
I want to display the only the highlighted values (They are 9 digits). Can we do this using RegExp?
You can use regexp_substr(column1, '[0-9]{9}'). Below is an example:
select regexp_substr(column1, '[0-9]{9}') nine_digits
from (values
(';**260488570**;1;13.25;20339=22.99')
,('1293=::info::0,;**297100755**;1;2.86;20339=4.49')
,('1293=::info::0,;**338010030**;3;6.71;20339=2.69')
,('1293=::info::0,;**260142941**;1;2.38;20339=4.59')
,('1293=::info::0,;**370039059**;1;2.86;20339=3.79')
);
Result:
COL2
260488570
297100755
338010030
260142941
370039059
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
In the email input field before "#" need to fix that character 6 - 32. How to fix this issue?
I tried Regex validations but it won't work what I expect!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
On Synapse Analytics how do we - Convert a Time datatype column with values from hh:mm:ss.ffffff to hh:mm:ss:ff
Here are the samples:
Actual
00:00:00.9900000
00:26:10.0200000
00:00:03.9800000
00:22:41.0400000
00:00:00.9800000
00:22:09.0300000
00:00:00.9900000
00:25:34.0200000
00:19:26.9800000
00:03:45.0200000
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
Trying to add address fields with comma at the end of the field , but if any one of the field is missing i am getting multiple comma's
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
How to make sparse array c language without condition i !=0 ??
I tried i!=0 condition but teacher doesn't want that
Teacher wants another path ??
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Here is my code:
(select top (1) (dbo.get_xml_value(xml_data,''))
from t_Order_Detail_Form_Data
where t_Order_Detail_Form_Data.order_detail_id = t_Order_Detail.Order_Detail_ID) as DOM
And the field I want
<Showings_Since_Listed>25</Showings_Since_Listed>
I want to return the 25
I think I am on the right path but I am unsure.
Any help is greatly appreciated.
Take a look at this:
http://msdn.microsoft.com/en-us/library/ms178030.aspx
answer to my issue
(select top (1) (dbo.get_xml_value(xml_data,'/PS_FORM/MONTHLY_STATUS_REPORT/Offer_Amount'))
the only way i can get it to work is by using the entire xpath, so much for security.