Hi,
I not a SQL expert, I need to write a query to make these changes...
I have Batch ID's stored in a table.
They have 3 parts separated by colons Recipe:Revision:Unique ID.
I want to update the records with a paticular Recipe and change them to a new recipe name. (changing real customer data for a generic demo application)
I do not know how many characters the Recipe name is but it is always followed by the first colon.
How can I say
Update records from Mixed_Material_Weighments table, BatchID field where characters before first colon = "my old recipe name" replace those characters with "my new recipe name"
As some Recipe names may have common beginnigs I don't want to just say where first 3 characters = AW1, that may be a Recipe name but there could also be one called AW1C
thanks
mark
I not a SQL expert, I need to write a query to make these changes...
I have Batch ID's stored in a table.
They have 3 parts separated by colons Recipe:Revision:Unique ID.
I want to update the records with a paticular Recipe and change them to a new recipe name. (changing real customer data for a generic demo application)
I do not know how many characters the Recipe name is but it is always followed by the first colon.
How can I say
Update records from Mixed_Material_Weighments table, BatchID field where characters before first colon = "my old recipe name" replace those characters with "my new recipe name"
As some Recipe names may have common beginnigs I don't want to just say where first 3 characters = AW1, that may be a Recipe name but there could also be one called AW1C
thanks
mark