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

What is difference between index and primary key?

1142


How to create nested stored procedure?

1077


What is the query and subquery?

1124


Do you know what is sql injection?

1045


Explain the properties of sub-query in sql server?

1072


Explain time data type in sal server 2008?

972


How to list all dsn entries on your local machine using odbc_data_source()?

1093


How to write a query with a full outer join in ms sql server?

1161


Difference between group by clause and having clause in SQL?

1030


What is instead of trigger sql server?

1081


You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date

1116


role of sql sever 2005 in database rather than any other database

1993


What are the types of resultset?

1016


Can an entity have two primary keys?

1033


What are the triggers in sql?

1171