0

How can i count a specific ward in a table in database sql. Example, i have a table and i want to count how many times repeated ward "hello", can you help me please)

anasalim28
  • 45
  • 7

3 Answers3

0

Lets say you have a target table ie tbl_test with a column i.e my_column, the query would look like this

SELECT COUNT(*) FROM tbl_test WHERE my_column = 'hello';
Abel Masila
  • 736
  • 2
  • 7
  • 25
0

If I understand your question it should look like this:

SELECT COUNT(Word), Country
FROM Customers
WHERE Word='hello'
GROUP BY Country;

https://www.w3schools.com/sql/sql_groupby.asp

NoOorZ24
  • 2,914
  • 1
  • 14
  • 33
0

You can try select count(nameOfTheFieldWhenCanAppearHello)from table where nameOfTheFieldWhenCanAppearHello='Hello' group by nameOfTheFieldWhenCanAppearHello