Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 1402 |  Welcome, Guest!   Register  Login
 Home > Forums > Sql Server > how to count separate column in this Query. ...
Jayakumars

how to count separate column in this Query.

Replies: 1 | Posted by: Jayakumars on 10/17/2012 | Category: Sql Server Forums | Views: 225 | Status: [Member] | Points: 10  Download source file 


hi
my Query output like this see the image attachment

id Q1 Q2 Q3 Q4 Q5
============================
1 65 1 2 0 2
2 1 2 2 0 1
3 2 1 1 1 2
4 1 1 2 0 1
5 2 2 0 0 2
6 2 0 1 1 1

i need here how much 1 and how much 2 and other value in Q1 and Q2 etc but
i need each column 3 output how much 1 and howmuch 2 and how much other value how to count and show other column .

Mark as Answer if its helpful to you

Regards
Email Id: kumaraspcode2009@gmail.com


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Gaur1982
Gaur1982  
Posted on: 10/18/2012 1:30:30 AM
Level: Starter | Status: [Member] | Points: 25

Will you please explain you question.... What exactly you want...
and there is no image attach... only a zip file attached which is invalid and not to open.....

Gaurav Agrawal
http://planetofcoders.com/

Jayakumars, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/18/2013 4:41:59 PM