EDIT: `mincash` is the minimum amount of copper coins which will drop from a given loottable
Perhaps it's considered sloppy writing to not encapsulate columns with accented quotes. Point taken.
Ah, thanks for the tip. The warning I was was receiving was based directly from the result being signed and datatype being unsigned. Need to get my hands on a graphing app to conceptualize better.
I'm pretty close to resolution. I reworded my searches and found something that seems to work at a general level.
Updated query
Code:
update (select `level`,loottable_id,race,name from npc_types order by `level` asc) npc
join loottable_copy loot on loot.id = npc.loottable_id
set `mincash` = abs(floor(0.2 * (pow(`level`,2)) - 3 * `level` +5))
where npc.loottable_id = loot.id and loot.mincash != 0
and npc.level < 21 and npc.name regexp'(^a\_|^an\_)' and race = 60;
I think this can count as resolved. I need to tweak a few things and analyze results but, this part is exclusive to what I'm doing.
Thanks Shendare