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 / kuntal bhattacharya

select name from
(select name ,sum(salary) as Sal from emplyoee
group by id ,name)as s
where Sal=130

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should be the fill factor for indexes created on tables? : sql server database administration

622


How do I setup a sql server database?

544


If the job running very slow what is the action you do

1425


What is the template in sql?

537


What is the primary use of the model database?

619






Do I need a report server to run reports in my application?

104


How do you test your database? : sql server database administration

521


Why de-normalization required?

569


Can you get second highest salary from the table?

551


Explain time data type in sal server 2008?

549


How many clustered indexes there can be on table ?

598


How to select true false based on column value in sql server?

504


How to sort the query output with order by clauses in ms sql server?

630


Does sql server 2000 full-text search support clustering?

505


What is ddl and dml commands?

507