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

what is checksum in sql server.........???

0 Answers   TCS,


Explain what is “asynchronous” communication in sql server service broker?

0 Answers  


Define constraints and give an example of their use?

0 Answers  


What is the name of the system variable that returns the number of rows affected by a SQL statement?

0 Answers   HCL,


What gets stored inside msdb database?

0 Answers   Abacus,


How to view the error log for any specific instance? : sql server database administration

0 Answers  


How to declare and use cursor variables?

0 Answers  


What is bit datatype and what's the information that can be stored inside a bit column?

1 Answers  


what are cursors? : Sql server database administration

0 Answers  


What is primary key, unique key, and foreign key?

0 Answers  


What is the use of Port no?

1 Answers   Wipro,


What is the dbcc command and why is it used?

0 Answers  


Categories