I need to run a couple of sql queries to edit some data prior to putting my store online.
For starters, I need to set picture file names for items that do not already have data in the field. starting with the command below, how would I add an argument to only set the picture name where it is currently blank?
UPDATE item SET picturename = itemlookupcode + '.jpg'
Secondly, I would like to set the default weight for items with no weight entered to .04, I am guessing the argument would be the similar.
Finally, Before I go live, I need to set the webitem category to '1' for the items that have a restock point higher than 1.
Any insight would be greatly appreciated. Though I have some basic programming knowledge, I am new to sql.
Chris
*This post is locked for comments