| Cannot group third column (Querying) [message #645504] |
Mon, 07 December 2015 12:12  |
 |
fabi88
Messages: 112 Registered: November 2011
|
Senior Member |
|
|
I am doing a query to find the total number of staff at each football stadium and their managers. So far I am able to output the total number of staff for each stadium, however i need to show the manager as well for each stadium. Can someone help me on this, as i don't know how to include the manager. The manager is in a table called stadium under column "manager_no".
My code:
select count(staff_no) as "Total Staff", stadium_no
from staff
where stadium_no = 100 or stadium_no = 200
group by stadium_no;
|
|
|
|
|
|
|
|
|
|