I have to get total number of specimens in the database.
There are 5 specimens as shown in the figure: user 1 has 2, user 2 has 2 and user 3 has 1 number of specimens (users are asked to type a word a number of times and each word is called here a specimen,e.g., cat, bird etc).
I tried following query:
Select count(distinct userId) from Table1 group by userId
It shows user ID wise total specimens. But what I need is total number of specimens inclusive of all users,i.e, 5.