I want to find first and last 20 character after the particular keyword from database. Suppose the keyword is "Account" then I want to find first 20 character before "Account" appear in a line and 20 character after "Account" appear in a line.
Currently I am using this query:
SELECT LEFT(Line1,20), RIGHT(Line,20) FROM minde_candidate_workexp
WHERE minde_candidate_workexp.WorkDesc LIKE '%Accounts%' ;
which will display first 20 character of line in which keyword "Account" appear and last 20 character of the line.