Skip to content
Advertisement

Tag: aggregate-functions

How to choose in postgresql rows where amount of one value is bigger than another? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question how to choose in postgresql rows where amount of one value is bigger

Query help in SQL

I have the below table, with empid, deptid, and Name. I need to get the results as empid,deptid,name and count of employees in each department. I need to get the results as empid,deptid,name, and count of employees in each department as below. I am able to achieve results using the below queries. Is it possible to do this in alternate

Advertisement