I think your going to have to use a sub select! (NOT TESTED) SELECT tabel1.userID, (SELECT TOP 1 T2.artID FROM tabel2 T2 ORDER BY T2.SomeField ) AS firstOfArtID FROM tabel1 JOIN tabel2 ON tabel1.userID = tabel2.userID GROUP BY tabel1.userID
This gives you a resely you should be able to use!
SELECT dbo.tabel1.UserID, (SELECT TOP 1 T2.artID FROM dbo.tabel2 T2 WHERE t2.UserID = tabel1.UserID) AS FirstOfUserID FROM dbo.tabel1 INNER JOIN dbo.tabel2 ON dbo.tabel1.UserID = dbo.tabel2.UserID GROUP BY dbo.tabel1.UserID
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.