I have the following tables:
A: id, name, url
B: Aid, number
number can be any int (Aid is the id from table A)
I want to select the name, url from table A and the SUM(B.number) So the results will be something like:
name, url, SUM(B.number)
name, url, SUM(B.number)
name, url, SUM(B.number)
[..]
I need to join them somehow? How do i construct that query?