1. SELECT SUM(sal) as “Gross Salary” from EMPLOYEES;
2. SELECT MAX(sal) as “Highest Salary” from EMPLOYEES;
ouput should be in table format
Answers were Sorted based on User's Feedback
Answer / aparna sanas
true Output will come in table format in single row and single
column
| Is This Answer Correct ? | 10 Yes | 6 No |
Answer / sandeep modapathi
select sum(Gross_Salary),sum(Highest_Salary) from (
SELECT SUM(Salary) as Gross_Salary,0 as Highest_Salary from
EmpSalaryDetails
UNION
SELECT 0,MAX(Salary) from dbo.EmpSalaryDetails
) as rowset
| Is This Answer Correct ? | 5 Yes | 1 No |
Explain Geometry datatype in sql server 2008 with example
how will add additional conditions in sql?
0 Answers Amdocs, Apps Associates,
Explain DBCC?
What is difference between restoration and recovery in SQLServer?
How do you implement session management in SQL Server mode?
What is the difference between Temporary table variable and a Table variable? Or Which Table variable I should use inside Stored procedure?
3 Answers Microsoft, TCS, Techastrum,
How to write a query with an inner join in ms sql server?
What is @@error in sql?
How the data stores in a page?
Explain about sql server login?
Mention the different types of replication in sql server.
How to write stored procedure to update the data in 10 tables
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)