I am using PostgreSQL.
I have the data in table like:
Parent_id Count Read
--------- ------ ------
52405 2 False
52405 1 True
Now i want to summarize the data like :
Parent_id Count Read
--------- ------ ------
52405 3 False
Count
would be the sum of the records.
Read
would be the logical AND operation.