Kan
SELECT DISTINCT dbo.Category.CategoryName,
(SELECT TOP (1) NewsHeader
FROM dbo.News AS News_1
WHERE (CategoryID =
dbo.Category.CategoryID)
ORDER BY NewsID DESC) AS NewsHeader
FROM dbo.Category INNER JOIN
dbo.News AS News ON dbo.Category.CategoryID =
News.CategoryID
laves uden sub-select..bare med joins?
For hver kategori skal listes senest tilføjede nyhed.
mvh
--
Database- & webudvikling
www.dbconsult.dk