Steven Lass | Does the SQL statement work correctly if you run it from the CLI, ie:
admin:run sql select devicepool.name,device.name from numplan,devicenumplanmap,devicepool,device where devicenumplanmap.fkdevice=device.pkid and devicenumplanmap.fknumplan=numplan.pkid and numplan.dnorpattern='48269' and device.fkdevicepool=devicepool.pkid
Does it work correctly if you rename the columns?
select devicepool.name as dp_name, device_name as dev_name ...
-steve |
| Please sign in to flag this as inappropriate. |