Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

Sub-string issue on Capture specific dataset

$
0
0

Hi Team,

Currently i'm tried to capture specific data set using Sub String command but still unable to achieve my requirement, Could you please support to capture that data part for your reference here with attached all reference data.

always i need to capture next 5 Digit After the "|LOC=" FROM SL_Reference column, 

Please find the currently tried Query and Result,

Query-

select substring(SL_Reference,  PATINDEX('%|LOC=%',SL_Reference)+5,  PATINDEX('%|LOC=%',SL_Reference)+4),SL_Reference
SL_Reference
  from StmALog
where SL_Table = 'JobConsolTransport' and SL_SE_NKEvent = 'DEP'

 


Viewing all articles
Browse latest Browse all 2729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>