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

Explain few examples of stored procedure over triggers?

517


What is updatable resultset?

514


What to perform pattern match with the like operator?

482


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

567


Explain what are partitioned views and distributed partitioned views?

579






Why variables called the most powerful component of ssis?

589


Can we use where and having clause together?

506


List the different types of joins?

566


Which autogrowth database setting is good?

615


what is a deadlock? : Sql server database administration

493


Explain how you can deploy an SSRS report?

106


Why people hate cursor?

725


How can we remove orphan records from a table?

524


What to check if a User database is locked?

584


How to use old values to define new values in update statements in ms sql server?

679