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

Can we add our custom code in ssis?

625


What is faster join or union?

710


Explain triggers?

657


How to retrieve error messages using mssql_get_last_message()?

625


What are exact numeric data types in ms sql server?

593






if no size is defined while creating the database, what size will the database have? : Sql server administration

648


What do you understand by physical_only option in dbcc checkdb?

670


How you can add messages to the nt event log from within a stored procedure?

651


What are entities and relationships?

639


How can sql server instances be hidden? : sql server security

676


What is @@error in sql?

705


What is deploy, process and build? : sql server analysis services, ssas

656


What is a primary key?

615


What is the difference between commit and rollback?

590


How to drop an existing user defined function in ms sql server?

659