Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 ssms 2008 sp

Author  Topic 

kond.mohan
Posting Yak Master

213 Posts

Posted - 2012-06-06 : 08:46:48

Dear all

i am executing query

i have table employee

i want to know the count of emp in every month

example
select
count (a.emp),
count(janmonth),
count(febmonth),
count(marmonth),

...
count(decmonth) from table

pls explain the logic

becoz i sm preparing dashboard REPORT

X--AXIS MONTHS
Y-- AXIS HEADCOUNT OF EMP

|
HEADCOUNT |
|______________
MONTHS

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-06-06 : 10:17:17
before we can explain the logic we want to know the table structure.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -