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
 General SQL Server Forums
 New to SQL Server Programming
 Display (field) but only count managers

Author  Topic 

Maple50175
Starting Member

6 Posts

Posted - 2007-05-08 : 10:37:06
I need to figure out the number of managers without listing them. Label the column Number of Managers.

any help is appricated.


Number of Managers
-------------------------
6

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-08 : 10:44:02
[code]Select Count(Manager) as [Number of Managers]
from SomeTable[/code]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-05-08 : 10:53:14
Homework question, no doubt!


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-05-08 : 12:21:58
select 'too many' as [Number of Managers]


www.elsasoft.org
Go to Top of Page
   

- Advertisement -