erro no sql em asp.net vb
Olá pessoal estou tentando retornar o mês com o distinct e o month(data) segue como estou fazendo:
mySelectQuery = "select DISTINCT MONTH(noticia_data), YEAR(noticia_data) from noticias_noticias where noticias_tipo = 'Blog' "
ele ta retornando o erro:
noticia_data is neither a DataColumn nor a DataRelation for table noticias_noticias.
mas a coluna existe e quando tiro o month funciona mais o distinct repete os meses alguém pode me ajudar.
att.
Rafael
Discussão (5)
Carregando comentários...