INSERT INTO sta.sta SELECT CONCAT( replace(IF(a._request_time IS NOT NULL, DATE(FROM_UNIXTIME(a._request_time)), DATE(CONCAT(a.request_year, '-', a.request_month, '-', a.request_day)) ), '-', '') , IF(mem_idx IS NOT NULL, CONCAT('-', mem_idx), '-' ) , IF(uri_idx IS NOT NULL, CONCAT('-', uri_idx), '-' ) , IF(browser_idx IS NOT NULL, CONCAT('-', browser_idx), '-') , IF(host_idx IS NOT NULL, CONCAT..