Quote:
Originally posted by r123456
...
(select top N * from tableA where condition) v1 on
v1.id = tb.id;
This query will join all records of tableB with the first record of the set V1.
|
Sorry - but this doesn't help either
because if top 1 selects a record with another v1.id than tb.id I get no joined records although there IS one (but not on top of the list v1)
Or did I get something wrong...