MSSQL2K: concatenation recursive dans un sous select
Bonjour, je souhaiterai trouver un moyen de rendre cela possible
Code:
1 2 3 4 5 6 7 8 9 10 11
|
SELECT d.DealerId,
d.Name,
d.longdescription,
NULL as Origin,
(select EntityId from dbo.DEALER_ENTITY_ACCESS where DealerId = d.DealerId)
as entities
FROM dbo.DEALER d |
si je fais cela , ca fonctionne, mais j'ai +-10 à 20 'entities'.
Merci:)
Code:
1 2 3 4 5 6 7 8 9 10 11
|
SELECT d.DealerId,
d.Name,
d.longdescription,
NULL as Origin,
(select top 1 EntityId from dbo.DEALER_ENTITY_ACCESS where DealerId = d.DealerId)
as entities
FROM dbo.DEALER d |