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


Please Help Members By Posting Answers For Below Questions

Do you know what is user defined datatypes and when you should go for them?

705


how can you attach more than 20 ldf files in sql server

1736


According to you what goes into making the best database administrator? : sql server database administration

718


you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation

708


What is save transaction and save point?

837






What is the template in sql?

726


Explain an automatic checkpoint

720


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

1751


How many joins in sql server?

687


What is #temp and @table variable in SQL server?

759


What the class forname () does?

708


Explain table valued parameters in sql server? Why tvp used?

728


What are the components of sql server service broker?

683


What is exclusive locks?

700


Explain the dbcc pintable command when would you use it?

681