I have the below SQL query to retrieve the list of userid and their telephonenumber using Cisco CallManager AXL SQL Toolkit:
sql query="select d.name as deviceName, e.userid, e.telephonenumber from device d
left outer join endUser e on d.fkenduser=e.pkid where e.telephonenumber is not null"
How can I modify the above query to also retrieve the “Directory Number” of the returned results? I'm not sure what table and column to join!