Jag undrar hur group by syntaxen eg ser ut... Har skrivit som nedan o får det inte att funka. Är det nån som kan?? Måste du inte ange en funktion för "oA.OrderedArticleID,oA.ArticleID, TreeLevel, Title, Cat.CategoryDescription" Eller lägga in dem i Group by?Group by- syntax
select
SubC.CategoryID, oA.OrderedArticleID,oA.ArticleID, TreeLevel, Title, Cat.CategoryDescription
from
Article_v4i_orderedArticles oA, Article_v4i v4i, Articles A, ArticleSubCategoriesC SubC, Categories Cat
where
oA.ArticleID=v4i.ArticleID and
A.ArticleID=v4i.ArticleID and
SubC.ArticleID=oA.ArticleID and
Cat.CategoryID=SubC.CategoryID
group by SubC.CategoryIDSv: Group by- syntax
Typ:
select
SubC.CategoryID, oA.OrderedArticleID,oA.ArticleID, TreeLevel, Title, Cat.CategoryDescription
from
Article_v4i_orderedArticles oA, Article_v4i v4i, Articles A, ArticleSubCategoriesC SubC, Categories Cat
where
oA.ArticleID=v4i.ArticleID and
A.ArticleID=v4i.ArticleID and
SubC.ArticleID=oA.ArticleID and
Cat.CategoryID=SubC.CategoryID
group by SubC.CategoryID, oA.OrderedArticleID,oA.ArticleID, TreeLevel, Title, Cat.CategoryDescription