Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

Žiga Pregelj
Žiga Pregelj
18,126 Points

Combining SQL tables

Hello, i have a problem how to create or update one table with data from another table.

In TABLE1 i have Campaigns, TotalSpend, Spend in TABLE2 i have Campaigns, Conversions, Operator. Now i need to put the same Campaign names from TABLE2 and their Conversions and operators to TABLE 1 where the Campaign name is the same and SUM together the numbers of conversions from TABLE 2 (there is only 1 conversion for same campaign)

Here is picture of both tables: http://imgur.com/a/j1KGe