close
SELECT A.name, COUNT(B.call_id)AS'outgoing call count'FROM
   EmployeeTable A 
   LEFTJOIN(SELECT call_from_name, call_id FROM CallTable
   WHERE call_type LIKE'outgoing'AND voice_mail ='0'AND/* other CallTable filters */) B
   ON A.name = B.call_from_name
WHERE/* only EmployeeTable A filters */GROUPBY A.name 
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 amychang2014 的頭像
    amychang2014

    工作需要筆記

    amychang2014 發表在 痞客邦 留言(0) 人氣()