You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15097.up

4 lines
260 B

use provisioning;
update provisioning.voip_dbaliases set is_primary = 1 where username in (select distinct(concat(vn.cc,vn.ac,vn.sn)) from billing.voip_numbers vn, billing.voip_subscribers vs where vs.primary_number_id = vn.id and vs.status != 'terminated');