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 / kumar.t
Select id, name, sum(salary) from emp
group by id, name
Having sum(salary) =130
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what data regions are and what are the different data regions?
explain different types of constraints? : Sql server database administration
What is merge statement?
How do I partition a table in sql server?
What are the difference between primary key and unique key? : sql server database administration
How to include text values in sql statements?
What are sql server procedures?
Which sql server table is used to hold the stored procedure script?
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Explain what is sql server english query?
What are the methods used to protect against sql injection attack?
Can you explain various data region available in ssrs with their use?
How many joins in sql server?
What is the difference between a view and a stored procedure?
How to start and end transact-sql statements?