Ich möchte als Ergebnis nur ein Datensatz zurückbekommen.
D.h. die Werte aus No. sollen nicht
GROUP BY sein, sondern als Ergebnis alle im Feld No. durch z.B. durch ein Leerfeld getrennt sein:
z.B. Ergebnis:
FALSCH:
SELECT Document No.] AS [Barcode-Nr], [No.]
FROM [Attain-AH-Live].dbo.[Adam Hall$Sales Line]
WHERE ([Document Type] = 1)
GROUP BY [No.], [Document No.]
HAVING ([No.] <> ‘’) AND ([Document No.] = ‘V306867’)
ORDER BY [Document No.]
Barcode-Nr | No.
V306867 87460
V306867 AHMCT8
V306867 D1001
etc…
GEWÜNSCHT wäre aber:
Barcode-Nr | No.
V306867 87460 AHMCT8 D1001 etc…
Geht so etwas mit einem View?