i'm trying to get the summerized date from join query
using aggregate function count() and left join
select Catagories.FieldId,Catagories.BookField, BookTitles.FieldId as"btitle" from Catagories
left join
BookTitles
on BookTitles.FieldId=Catagories.FieldId
this code works fine
but when i use aggregate function
select Catagories.FieldId,Catagories.BookField, count(BookTitles.FieldId) as"btitle" from Catagories
left join
BookTitles
on BookTitles.FieldId=Catagories.FieldId
the following error appears:
Column 'Catagories.FieldId' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

1 answers
Try:
answered one year ago by:
2499
69
Thanx Dear It worked fine :)