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 / mahavir bansal
select Name as Sal from emplyoee
group by Name
having sum(salary)=130
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Types of Authentications in Sql Server? How user gets authenticated through windows authentication?
Define primary key?
Can we return Data from 4(more than 1) tables in stored procedure?
How to verify a login name with sqlcmd tool?
Can we update data in a view?
List the types of recovery model available in sql server?
How do I partition a table in sql server?
Tell me in brief how sql server enhances scalability of the database system?
How do you rename a table in sql server?
How to create database with physical files specified in ms sql server?
What is difference in performance between insert top (n) into table and using top with insert?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
Tell me about pre-defined functions of sql?
I have all the primary data files, secondary data files as well as logs. Now, tell me can I still restore the database without having a full backup? : sql server database administration
Can we use where clause with group by?