Using Sequel I'd like to create an UPDATE statement like the following (from Postgres docs)
UPDATE employees SET sales_count = sales_count + 1 FROM accounts
WHERE accounts.name = 'Acme Corporation'
AND employees.id = accounts.sales_person;
However, looking at the Sequel documentation it's not clear where there's any way to create the FROM clause.
Is there a way to do this?
Thanks!
Sequel::Error: Need multiple FROM tables if updating/deleting a dataset with JOINs
. So now I just need to figure out how to add multiple FROMs – Mailable