I want to update all the records in a table that satisfy a criteria on a field in a different related table.
This is probablies a bit of a newbie question. I have tried this:
update contract
set contract.contractceiling = contractceiling * 1.5
where contract.organisationcode = organisation.organisationcode
and organisation.addresscode = address.addresscode
and address.postcodefirstpart = 'NE31'
but it doesnt like having more than one table in the initial statement.
Removing the linking tables just causes an error further down the query (unrecognised tables)
any one help?
This is probablies a bit of a newbie question. I have tried this:
update contract
set contract.contractceiling = contractceiling * 1.5
where contract.organisationcode = organisation.organisationcode
and organisation.addresscode = address.addresscode
and address.postcodefirstpart = 'NE31'
but it doesnt like having more than one table in the initial statement.
Removing the linking tables just causes an error further down the query (unrecognised tables)
any one help?