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
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
What are the ways available in sql server to execute sql statements?
Explain indexed views?
What is sql collation?
Explain collation?
Can primary key be a foreign key?
What is sql azure database?
What is a virtual table in sql?
Is the log file is a part of file group?
Explain comment on transactions?
how you can move data or databases between servers and databases in sql server? : Sql server administration
Does the unique constraint create an index?
What is save transaction and save point?
How to trouble shoot if unable to connect SQL Server
What is single-user mode?