I've got a text field from which I'd like to extract the first sentence for each record. Here's the query I've got so far.
SELECT SUBSTRING_INDEX(j.job_desc,'.',1) AS job_desc
The problem is that in some of the records, the first sentence is terminated by a question mark (or exclamation point) rather than a period and I need to get those sentences as well. I'm trying to find out how I can say "the first sentence" instead of "the first sentence ending in a period".
Does anyone have any ideas?