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 / vikas kant

select emp_name, sum(salary)
from emp
group by emp_name
having sum(salary)=130

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the grouping functions?

700


What are the differences between web role and worker role?

116


Which trace flags are enabled in sql server?

669


What is apply operator in sql?

757


Explain about unique identifier data type in sql server?

679






What is checkpoint process in the sql server?

708


What is the difference between for xml raw and for xml auto?

739


How to generate create view script on an existing view?

737


Explain what is the use of custom fields in report?

687


How to compare the top two records using sql?

952


How to change parameter value inside the report?

131


How to change the name of a database user?

731


Are connections to sql server encrypted?

740


What is the Main Difference between ACCESS and SQL SERVER?

746


what are user defined datatypes and when you should go for them? : Sql server database administration

747