Organizational Research By

Surprising Reserch Topic

zend update query

zend update query  using -'php,mysql,zend-framework,sql-update'

How to write below mysql query using zend syntax?

UPDATE core_user_transaction as t
JOIN core_user_transaction_therapy AS cuts ON cuts.tid=t.tid
JOIN therapy_booking AS tb ON cuts.conf_id = tb.conf_id
JOIN therapy_service_fees AS fees ON
JOIN therapy_service_taxes AS tst ON fees.service_id=tst.service_id
JOIN core_tax AS ct ON ct.tax_id = tst.tax_id
    t.amount = (ROUND(t.fee*(ct.tax_value/100),2)+t.fee)
WHERE tb.datetime >= '2015-10-01 00:00:00'
    AND t.state = 'PENDING'
    AND t.status ='ACTIVE'

asked Oct 19, 2015 by rajeevr642
0 votes

Related Hot Questions

Government Jobs Opening