Extract SUB String using SELECT Statement

ria.arora

Registered User.
Local time
Today, 17:03
Joined
Jan 25, 2012
Messages
109
Hi All,

How to extract a portion on based of search criteria from a Column string using SELECT statement.

I have a table with below structure:

Table A Structure
=============
Name
Description
Transaction
Value

Name: James
Description: Redemption: MMTIME AUD, 3.295%, 25.07.12-01.08.12 (90562)
Transaction:Close Loan: Mortgage SGD, 3.2625%, 24.07.12-07.08.12, 264308
Value:$1092

I want to extract 90562 from Description
and 264308 from Transaction

but issue is length of the field is not fixed. First field will be between "()" e.g. (90562)
and second field will be after , e.g. ",264308"

Appreciate your help.
 

Users who are viewing this thread

Back
Top Bottom