When using the GROUP BY clause, make sure that all columns in the SELECT list that are not group functions are included in the GROUP BY clause. The example in the slide displays the department number and the average salary for each department. Here is how this SELECTstatement, containing a GROUP BY clause, is evaluated:
đang được dịch, vui lòng đợi..