Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



1. SELECT SUM(sal) as “Gross Salary” from EMPLOYEES; 2. SELECT MAX(sal) as “Highest ..

Answer / aparna sanas

true Output will come in table format in single row and single
column

Is This Answer Correct ?    10 Yes 6 No

1. SELECT SUM(sal) as “Gross Salary” from EMPLOYEES; 2. SELECT MAX(sal) as “Highest ..

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

Post New Answer

More SQL Server Interview Questions

How to get number of days in a given year?

4 Answers   ADP,


What is relationship? What number of sorts of relationship are there?

0 Answers  


how to delete duplicate rows from table in sql server

12 Answers   HCL, UHG,


What is the difference between a clustered index and a non-clustered index?

0 Answers  


Are resultset updatable?

0 Answers  


What are the 7 disadvantages to a manual system?

0 Answers  


How to modify an existing user defined function?

0 Answers  


Explain following error properties?

0 Answers  


Explain Geometry datatype in sql server 2008 with example

0 Answers   Infosys,


How to receive returning result from a query?

0 Answers  


what operator performs pattern matching?

2 Answers  


What new changes are being made in SQL Server?

0 Answers   Blue Star,


Categories