Pergunta de entrevista da empresa U.S. Bank

Write a SQL query to retrieve the average salary from a table.

Resposta da entrevista

Sigiloso

5 de fev. de 2024

SELECT AVG(salary) AS average_salary FROM your_table_name; Replace "your_table_name" with the actual name of your table where the salary information is stored. This query calculates the average salary and aliases the result as "average_salary" for clarity.