I have this query:
SELECT COUNT(DISTINCT DIAL) as CALL_SUMMARY,APP,DEST_URI FROM test.dbs PIVOT (COUNT(DIAL) FOR APP IN(phone, mobile)) as log_status_new WHERE ID