A
A
Abc Edc2015-09-29 22:30:06
MySQL
Abc Edc, 2015-09-29 22:30:06

How to make such a MySQL fetch?

Here is a table with routes and a selection by line, so in order not to confuse, I will simplify the background and take fictitious tables.
Table A
(id ,name)
Table B
(id, A_id, str_here)
You need to select all those A , Where B.str_here are equal to the same str_here of that record A, according to which we take the rest of the records or such str_here for those A records are null, that is, simply no .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-09-29
@martin74ua

and now we translate our question into English and see what happened;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question