1select tid, pid, process.name as pname, thread.name as tname 2from thread 3left join process using(upid) 4where tid > 0 5order by utid