KnowledgeBoat Logo
|

Informatics Practices

Consider a table named Employees with columns — EName, Age, Salary and Designation. Which SQL statement do we use to find out the total salary given to employees?

  1. Select SUM(Salary) From Employees;
  2. Select COUNT (*) From Employees;
  3. Select FIND (*) From Employees;
  4. Select SUM () From Employees;

SQL Queries

2 Likes

Answer

Select SUM(Salary) From Employees;

Reason — The SQL statement used to find out the total salary given to employees is SELECT SUM(Salary) FROM Employees;. This statement utilizes the SUM() function to calculate the total value of the 'Salary' column from the 'Employees' table.

Answered By

3 Likes


Related Questions