Answer the question
In order to leave comments, you need to log in
How to correctly select data from two tables?
There are two tables of the following form:
A:
select A.*, SUM(B.z) from A,B where A.id = B.a_id GROUP BY A.id;
Answer the question
In order to leave comments, you need to log in
Use a nested query
here you will find the necessary information, well, or join)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question