Thank you so much.
This looks extremely promising.
This is what I want of the idea, but not of the output.
I wrote
and got a long list of datum, which probably are exactly the matches I am looking for.
With these matches I can do it with Lazarus in the worst case.
in the best cast, SQL does this for me.
What I want is this (this cannot work, I know)
This id_kurszeilen and c cannot work, because I just searched for mathcing fields of data.
Not sure, if this is possible at all and how.
I would need them sorted by fk:
So my output must be:
The date of the working query from above FOLLOWED
by the fields fk=2340 and the field c belonging to this fk.
by the fields fk=2369 and the field c belonging to this fk.
In other words:
At the moment the output is:
10.8.2018
14.8.2018
21.8.2018
and I want it to be
10.8.2018, 2340, c-value, 2369, c-value
14.8.2018, 2340, c-value, 2369, c-value
21.8.2018, 2340, c-value, 2369, c-value
or similar
To put it differently: I need more fields of this matching dates.
At them moment I read this error-message:
Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause)
an error message not very surprising, but I do not see the way out.