Facial landmark detection is the process of detecting landmarks or regions of interest (key-points) on the face like Eyebrows, Eyes, Nose, Mouth and Jaw silhouette. Some applications of facial…
We define an employee’s total earnings to be their monthly salary* months worked, and the maximum total earnings to be the maximum total earnings for any employee in the Employee table. Write a query to find the maximum total earnings for all employees as well as the total number of employees who have maximum total earnings. Then print these values as space-separated integers.
Input Format
The Employee table containing employee data for a company is described as follows:
Sample Input
Sample Output
Explanation
The table and earnings data is depicted in the following diagram:
The maximum earnings value is 69952. The only employee with earnings 69952 is Kimberly, so we print the maximum earnings value (69952) and a count of the number of employees who have earned 69952 (which is 1) as two space-separated values.
Solution(SQL Server):
Solution(MySQL):
When people first meet me, I assume they think all kinds of things about me. I assume they think I’m too quiet or that I have an odd shirt on. I assume because I work as a mechanic people think that…
Making dough is one of the most mathematical things you can do in the kitchen, far beyond measuring out ingredients. As you fold and compress dough you are carrying out topological deformations. The…
I am not an economist. Nor have I been schooled in such a discipline. Were I a wag, I’d quote Laurence J. Peter, I’m self-taught in economics. As in almost every other thing I’ve learned. Some of…