you can use the TIUSER table twice and left outer join it to CONTACTCALLDETAIL both times (once on ID and once on phone)...
You would have to write a command as one version of the table to deal with your dashes issue (if you do not have rights to creating a stored proc or view in your db).
the command would essentially replace one of the TIUSER tables needed and create a new field that strips out the dashes so you can do your join
SELECT *, REPLACE(PHONE, '-', '') AS Phone_Updated
FROM TIUSER
then outer join this command on the Phone_updated field
Edited by DBlank - 22 Dec 2010 at 9:18am