Can someone help me, how to count duplicate rows in vb.net using mysql . auto count after search or filter but in my code it count all existing data within the range
my code:
Try
con.Open()
With cmd
.Connection = con
.CommandText = "select s_monthname, count(*) as Total from sample2"
reader = .ExecuteReader
End With
da.SelectCommand = cmd
table1.Clear()
da.Fill(table1)
DataGridView1.DataSource = table1
Catch ex As MySqlException
MessageBox.Show(ex.Message)
Finally
con.Dispose()
End Try
Please help me