Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how would you troubleshoot blocking? : Sql server database administration

945


What Are the Main Features of SQL Azure?

115


How to perform backup for certificates in sql server? : sql server security

1026


Can coalesce return null?

948


Can we add a cpu to sql server?

960


How to set the current database in ms sql server?

1013


What are rest-style architecture's?

170


Write a code to select distinct records without using the DISTINCT keyword.

1052


What is an identity column in insert statements?

970


What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?

911


How to provide values to user defined function parameters?

970


How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?

1055


How many joins in sql server?

901


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

1201


What is the difference between DataRow.Delete() and DataRow.Remove()?

1168