N
N
Nikolay Kaspor2017-10-09 20:31:27
Yii
Nikolay Kaspor, 2017-10-09 20:31:27

How to display entries?

There are two database tables. I want to display a cycle of records from one table, but at the same time, each record should display related records from the second table.
For example:
Russia 1000 people -
Moscow 500 people
- St. Petersburg 500 people.
And so on, other countries
As a result, the first table connects related records from the second table and calculates the sum of a certain column from the second table

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-10-09
@slo_nik

Good evening.
Main link .
Working with connected data .

P
Pavel Gogolinsky, 2017-10-09
@gogolinsky

withJoin()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question