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

How will you know when statistics on a table are obsolete?

603


When is update_statistics command used?

581


What is the difference between primary key and unique constraints?

506


What command is used to delete a table from the database in the sql server and how?

538


where the connection string store in the database

1526






Difference between DELETE and TRUNCATE?

613


How to create view in stored procedure sql server?

501


How many ways to create table-valued functions?

579


what are the types of indexes? : Sql server database administration

595


What is the difference between a view and a stored procedure?

552


How do I save a stored procedure in sql server?

493


What is normalization? Describe its different types.

580


Do you know what is a linked server in sql server?

545


What are joins in sql and what are the different types of joins?

551


What is a field name?

511