I am having trouble converting a fairly simple update query to
Sequel's rubyish ways:
update billing_headers bh
set bh.total = (
select sum(bd.extended)
from billing_details bd
where bd.billing = bh.billing
and bd.entry_date <= '#{CUTOFF_DATE}'
)
And anyone help me bust this mental block?
Thanks,
Michael
--
http://ramblings.gibberishcode.net
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.