Write a SQL query to display employee who is earning maximum salary. SELECT first_name,salary FROM employees WHERE salary=(SELECT MAX(salary) FROM employees); Another way: Using row num SELECT *FROM (SELECT row_number()… Continue reading "Query to find Max Salary along with Employee name"
Author: Bhavesh Lakhani
Comparator is an Interface in java which is present in java.util package. Comparator interface has only method comapare which has two argument. 1 2 3 4 5 6 7 … Continue reading "Comparator in java with Example"