3

i have a table containing fields as id user name .... attachresume.

My query:

to count the number of resume attached by distinct user, i have tried sub query but am not getting the required output

3
  • 1
    What are you tried so far? Commented Jun 17, 2014 at 8:48
  • select count(1) from(select distinct user from table)x Commented Jun 17, 2014 at 8:49
  • @asprin output is perfect what if i want the output as :distinct_user and no_of_resumes Commented Jun 17, 2014 at 8:57

2 Answers 2

1

Try this

SELECT ID,UserName,Count(attachresume) AS [No Of Resume]
From Table1
Group By ID,UserName
Sign up to request clarification or add additional context in comments.

Comments

0

This Query :

SELECT distinct user, COUNT(attachresume) FROM table_name GROUP BY user

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.