HINCODON
27-05-2013, 18:02
Mình muốn nhóm nội dung bài viết theo cột TenBaiViet mà nó cứ bị lỗi thế này
Column 'baiviet (chấm)NoiDungBaiViet' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
Dim str As String = "select baiviet(chấm)TenBaiViet,baiviet(chấm)NoiDungBa iViet from baiviet where fk_MaChuDe=" & mcd
str &= "group by baiviet(chấm)TenBaiViet"
cột TenBaiViet data type là nvarchar(50)
cột NoiDungBaiViet data type là nvarchar(max)
mình ko đủ 50 post ko post dấu chấm đc
Column 'baiviet (chấm)NoiDungBaiViet' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
Dim str As String = "select baiviet(chấm)TenBaiViet,baiviet(chấm)NoiDungBa iViet from baiviet where fk_MaChuDe=" & mcd
str &= "group by baiviet(chấm)TenBaiViet"
cột TenBaiViet data type là nvarchar(50)
cột NoiDungBaiViet data type là nvarchar(max)
mình ko đủ 50 post ko post dấu chấm đc