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 / mahavir bansal

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

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different type of Collation Sensitivity?

739


What new changes are being made in SQL Server?

776


What is a subquery in a select query statement in ms sql server?

805


Can another user execute your local temporary stored procedures?

733


What is inner join? Explain with an example?

865






Explain how to maintain a fill factor in existing indexes?

719


Can two tables share a primary key?

709


How do I find my localdb version?

710


How many replicas are maintained for each sql azure db?

118


What are the five major components of a dbms?

666


Explain what is use of dbcc commands?

710


Explain aggregate functions?

778


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

936


What authentication modes does sql server support?

752


Can truncate be rolled back?

701