Mysql – Why does the MAX function generate the right results in a group by call
I am learning SQL and have created the following dataset in MySQL: Create table Departments (DepartmentID int primary key, Name text); insert into Departments values (1001,'SRO'), (2001,'Drs'), (3001,'Accounting'); Create table Employees ( EmployeeID int not null, DepartmentID int not null,…