Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_W is the western longitude. Q1. Query the following two values from the STATION table: The sum of all values inLAT_Nrounded to a scale ofdecimal places. The sum of all values inLONG_Wrounded to a scale ofdecimal places. Output Format Your results must be in the form: lat lon where lat is the sum..
We define an employee's total earnings to be their monthly salary x months worked, and themaximum total earningsto 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 2space-separated integers. Input Format T..
Samantha was tasked with calculating the average monthly salaries for all employees in the EMPLOYEES table, but did not realize her keyboard's 0 key was broken until after completing the calculation. She wants your help finding the difference between her miscalculation (using salaries with any zeroes removed), and the actual average salary. Write a query calculating the amount of error (i.e.:act..
Input Format The CITY table is described as follows: Q1. Query the total population of all cities in CITY where Districtis California. SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT = 'California' Q2. Query the average population of all cities in CITY where District is California. SELECT AVG(POPULATION) FROM CITY WHERE DISTRICT = 'California' Q3. Query the average population for..