Quote (brmv @ Feb 9 2014 11:27pm)
what information on those errors do you have?
how do you get an update on those stock items where the errors are?
The errors are them saying something is in stock, but they don't send it every week so I know they don't have it. Also, we may have 5 of them, but they are out of stock (not their error, but we need to say we have it)
Quote (carteblanche @ Feb 9 2014 11:24pm)
i must have missed something. what's the point of the trigger at all? just change your SELECT for when you read the data.
eg: select sku, nvl(AvailableOveride, IsAvailable) from items;
you can also wrap this in a view for convenience
Forgot a crucial piece of the puzzle. I also have a program at the end that pulls from the db and sends to out. I do not want to change this program either.
My other thought would be to run a program after the web scaper and have that program change IsAvailable to the correct values. I decided this option is less appealing because the data is incorrect for a small window of time.