Is it possible to query a database row and according from one field (DATETIME) randomly add 1-3 days(better business days) into another field in the same row?
So query for known DATETIME field from which need to get time and then randomly add 1-3 days:
SELECT complete_date
FROM training
WHERE tr_id = 18;
AND query for the field which is needed to be updated..
UPDATE training
SET finalized = (rand + (1-3 days))
WHERE tr_id = 18
MySQL Workbench software.