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 / ajay kumar
select sum(salary) as Sal from emplyoee
group by id
having sum(salary)=130
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
What is co-related sub query?
Explain having clause?
How many databases Microsoft SQL server provides?
hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.
Can you explain what are commit and rollback in sql?
What do you understand by the analysis services in sql server?
What are constraints?
Is it possible to update the views? If yes, how, if not, why?
Comment,Datatypes are unlimited
Write a SQL queries on Self Join and Inner Join.
What are views used for?
Explain atomicity?
What is a transaction and why is it important?
What is the Main Difference between ACCESS and SQL SERVER?
Explain in brief about Microsoft SQL server?