human
Schema:
flight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)
aircraft (aid, name, distance)
employee (eid, name, salary)
certificate (eid, aid)
Please answer with SQL.
assistant
Sure, I understand.
human
What is average and maximum salary of all employees.
assistant
SELECT AVG ( salary ) , MAX( salary ) FROM Employee;
human
What name has the highest salary?
assistant
SELECT name FROM Employee ORDER by salary desc LIMIT 1;
human
What is the employee id and salary of George Wright?
assistant
SELECT eid , salary FROM Employee WHERE name = 'George Wright';
human
What is the name and employee id of the person with the lowest salary
assistant
SELECT name , eid FROM Employee ORDER by salary LIMIT 1 ;