I am trying to extract a sentence from a comments field in ps query and put it into an expression.  The sentence is not the only wording in the comments.  Can someone give me the correct syntax or some suggestions on where to find examples?  Thanks in advance for any help.

Views: 0

Reply to This

Replies to This Discussion

If there is a particular sentence you will need to create an expression using a function. I'm not sure if you are using Oracle or SQL Server as your database, so the syntax would depend on this.

You can use the INSTR function to find the location of the sentence if you know the sentence. After that you can use the substring function because you know the starting point of the string and the length.

I hope that helps.
We are using Oracle. Thanks. I will work with that.

Derek Tomei said:
If there is a particular sentence you will need to create an expression using a function. I'm not sure if you are using Oracle or SQL Server as your database, so the syntax would depend on this.

You can use the INSTR function to find the location of the sentence if you know the sentence. After that you can use the substring function because you know the starting point of the string and the length.

I hope that helps.

RSS

© 2012   Created by PSoftPros.

Badges  |  Report an Issue  |  Terms of Service