Vad skulle den raden innehålla då? Om du vill ha alla bilder så är det en presentationssak som man företrädelsevis hanterar i sin applikation och inte med SQL.
Trådstart#1
SQL-saten nedan använder jag för att för att joina tabellen produkter men tabellen produktbilder. Hur gör jag om en produkt har flera bilder men jag vill bara att SQL-satsen ska returnera en rad. Har försökt med SELECT DISTINCT men får det inte att fungera.
SELECT Product.ProductID, Product.Productname, Product.Producttext,
Productimage.ImageID, Productimage.ProductID, Productimage.Imagename, Productimage.Description
FROM Product LEFT JOIN Productimage ON Product.ProductID = Productimage.ProductID
