R
RichW
I have a table that contains an email body in a single column/row. I need to
capture specific text from the email body, then drop that text into a new
column.
An example of the text I wish to capture and which is contained in the
current table [Email Body] is:
"....REFERENCES: Thu 5/8/2008 4:46 PM...."
I created the following SQL which successfully captures those rows that have
the noted text in it:
SELECT [Email Body]
FROM MyTableName
WHERE (MyTableName.[Email Body]) Like '*REFERENCES: ??? */*/#### *:## ?M*';
Like I mentioned, the SQL noted above is succesful in capturing and
displaying only those rows that contain the string "REFERENCES: ??? */*/####
*:## ?M"
But, I wish to capture a portion of that string (??? */*/#### *:## ?M) and
store it into a new column, so that the new column only displays, for
example, Thu 5/8/2008 4:46 PM.
Please help.
Thank you,
Rich
capture specific text from the email body, then drop that text into a new
column.
An example of the text I wish to capture and which is contained in the
current table [Email Body] is:
"....REFERENCES: Thu 5/8/2008 4:46 PM...."
I created the following SQL which successfully captures those rows that have
the noted text in it:
SELECT [Email Body]
FROM MyTableName
WHERE (MyTableName.[Email Body]) Like '*REFERENCES: ??? */*/#### *:## ?M*';
Like I mentioned, the SQL noted above is succesful in capturing and
displaying only those rows that contain the string "REFERENCES: ??? */*/####
*:## ?M"
But, I wish to capture a portion of that string (??? */*/#### *:## ?M) and
store it into a new column, so that the new column only displays, for
example, Thu 5/8/2008 4:46 PM.
Please help.
Thank you,
Rich