mysql> Select Emp_B AS Total
-> From (Select Sum(mines.NoOfWorkers) AS Emp_B from mines);
ERROR 1248 (42000): Every derived table must have its own alias
mysql> Select Emp_B AS Total
-> From (Select Sum(mines.NoOfWorkers) from mines) AS Emp_B;
ERROR 1054 (42S22): Unknown column 'Emp_B' in 'field list'
我对这个 SQL 语句有一些问题。任何帮助将不胜感激