D
D
daivanov2014-03-26 10:34:50
MySQL
daivanov, 2014-03-26 10:34:50

Sql - how to make a selection of the main record and all related ones in one query?

Hello!
Help me to understand.
There is a table of events, there is a table of clients registered for it with additional information (place, comment, and so on).
Is it possible to get an event and an array of rows from the second table with one query?
Experience with sql is small, using join I see a solution only through duplication of event records.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Guketlev, 2014-03-26
@Yavanosta

yes, only with duplication of event records. "LEFT JOIN" -> Google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question