SELECT DISTINCT a.*,ISNULL(c.client_net_address,'') AS client_net_address FROM ( SELECT * ,),,) ) ),,) ) ),,) ) ),,) ) ),,) ) ),,) ) AS MAC FROM tmp_dj_baohu ) AS a LEFT JOIN sys.sysprocesses AS b ON a.MAC = b.net_address LEFT JOIN sys.dm_exec_connec…