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

Write the syntax for stuff function in an sql server?

628


Explain a checkpoint?

623


What are the differences between substr and charindex in sql server.

587


Write a SQL command to insert and update only a particular field?

719


Explain Geography datatype in SQL Server

708






what is package and it uses and how can u call a package

1666


What function does a database engine serve in the sql server?

664


Can the query output be sorted by multiple columns in ms sql server?

641


What is the log shipping?

670


Explain what are various ways to enhance the ssrs report?

670


Explain what role entity and relationship play in an ER diagram.

683


How will you optimize a stored procedure optimization?

601


What are the different sql server versions?

594


What are views in ms sql server?

682


What is scd (slowly changing dimension)? : sql server analysis services, ssas

671