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
What is the default schema of your login session in ms sql server?
Which data type columns are the best candidates for full-text indexing?
What is explicit mode in sql server?
How you can minimize the deadlock situation?
How to list all stored procedures in the current database using ms sql server?
Hi all, can any one please tell me the difference between sql server 2008 and orace 9i
Do you know the cursor optimization tips?
What is a with(nolock)?
What is the difference between insensitive and scroll cursor?
What is the use of group by clause?
Can you please explain the difference between primary keys and foreign keys?
Difference between uniqe index and uniqe constraint?
What is the difference between ddl,dml and dcl commands?
Give a example to search fr a string in all stored procedure in sql server.
How to return the date part only from a sql server datetime datatype?