In my postgresql query given below and I want to count(completed::float)
select round(Count(completed::float)) as completed,
assignee
from NTE_23Apr19_HCMS_DOW_Defects_List_V1
group by assignee
This is my postgresql table

If I used without float in query it will works but I want to execute with float.Is It possible
select round(Count(completed)) as completed,
assignee
from NTE_23Apr19_HCMS_DOW_Defects_List_V1
group by assignee
count(completed)andcount(completed::float)or evencount(completed)::floatwill all return the same value. What exactly are you trying to do? Maybe you just wantcount(*)?countreturns an integer, casting that integer to float won't change its value. And counting float values won't return a different count that counting integer values. What exactly does "it works" mean? Do you get an error if it does "not work"? Is your screen shot the result you get or the result you expect?create tablestatement, someinsertstatements and the expected output as formatted text no screen shots please. edit your question do not post code in comments