I apologize if this has already been done but I'm having trouble finding an answer.
I'm trying to clean up some data after rebuilding a database. The database is for an art store. The old way of doing it is we'd have a Product table and the Product Name said the name of the art and then "by so and so"
So for example one product might have the name "Mona Lisa by Leonardo Da Vinci"
Recently we wanted to add functionality to the website to be able to index products by artists. So I created an artist table with it's own name field and I no longer want the Artist Name in the Product Name.
So I want to remove everything from the "by" onward.
So instead of "Mona Lisa by Leonardo Da Vinci" just "Mona Lisa"
How can I do this?