select d.name, d.description, n.dnorpattern, dmap.e164mask from device as d inner join devicenumplanmap as dmap on dmap.fkdevice = d.pkid inner join numplan as n on dmap.fknumplan = n.pkid where dmap.e164mask like '%2081234567' order by d.name
The output will include the device name, device description, DN & external phone number mask of any matching devices & lines:
admin:run sql select d.name,d.description,n.dnorpattern,dmap.e164mask from device as d inner join devicenumplanmap as dmap on dmap.fkdevice=d.pkid inner join numplan as n on dmap.fknumplan=n.pkid where dmap.e164mask like '%2081234567' order by d.name
name description dnorpattern e164mask
=============== =============== =========== =============
SEPF09E636E5656 SEPF09E636E5656 1000 +442081234567
SEPF09E636E5657 SEPF09E636E5657 1001 +442081234567
hi
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThe command is case sensitive, you need to change all appearances of "select" to "SELECT"
ReplyDelete