select name of emplyoee whose total salary is 130 from
following table.
id name salary
1 a 100
2 b 20
3 c 50
1 a 30
2 b 70
Post the resulantant Query?

Answer Posted / ajay kumar

select sum(salary) as Sal from emplyoee
group by id
having sum(salary)=130

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use functions?

509


How can I know what locks are running on which resource?

501


What is the default fill factor value?

576


What are the advantages of user-defined functions over stored procedures in sql server?

459


How can I check if a view exists in a sql server database?

561






What is table level trigger?

581


How to delete an existing row with delete statements in ms sql server?

548


what protocol both networks use? : Sql server database administration

536


What are the results of running this script?

509


How to write a query with a right outer join in ms sql server?

478


What are different types of table joins?

555


What is use of attributehierarchyenabled? : sql server analysis services, ssas

605


Is there any difference between primary key and unique with the not null condition?

524


What is the recommended total size of your memory optimized tables?

526


Do you know the capabilities of cursors?

533