mysql> Select AMPB AS Total - & gt; From (From the mines to the equivalent of AMPB (Select Mines Worker); ERROR 1248 (42000): In each derived table select your own nickname mysql & gt; AMPB AS Total -> (from the quarries AmpB; Error 1054 (42S22): Unknown column 'Emp_B' in 'Field List' I have some problem in this SQL statement I am being assisted. Any help would be appreciated
< Choose from total> APBB (select any of the mines) as an APPB); as an error The derived table should have its own nickname just give it a nickname, such as x above or as x , but as < / Code> The word is optional. Or why should it double this time ...
Choose from the total (the total amount in the form of the total from the quarries (mines. Any work Choose Ta) x; But since SUM is is exactly the value, as long as you did not simplify the query from a large query, it gives exactly the same results ??
Select amount (mines. Any worker) Total from mines;
Comments
Post a Comment