Welcome Guest, Not a member yet? Register   Sign In
trying to summarize a table
#4

I solved this. I used the following:

INSERT INTO weekly_summary_activities (email,campaign, admin_email, type, year, week, business_comp, project, activity, hours) SELECT email, campaign, admin_email, type, year, week, business_comp, project, activity, SUM(hours) FROM activity_log GROUP BY email, campaign, project, business_comp, activity
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trying to summarize a table - by richb201 - 12-27-2018, 08:08 AM
RE: trying to summarize a table - by php_rocs - 12-27-2018, 08:59 AM
RE: trying to summarize a table - by richb201 - 12-27-2018, 04:16 PM
RE: trying to summarize a table - by richb201 - 12-27-2018, 10:17 PM
RE: trying to summarize a table - by InsiteFX - 12-28-2018, 04:27 AM
RE: trying to summarize a table - by php_rocs - 12-28-2018, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB