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 sal from emp group by sal

Answer Posted / shiva

select sal from emp group by sal;
this query group the same salary.Suppose the table contains 30
records in that same sal is 3 times repeating by using above
query it will fetch only 27 rows of sal.So it wont give the duplicate sal.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is replication id?

922


What is difference between inner join and self join?

1068


How many types of functions are there in sql?

932


What is sql rowcount?

987


What does select count (*) mean in sql?

1005


what is a database? : Sql dba

1143


What if we write return in procedure?

1400


How can we make an if statement within a select statement?

998


What is a dirty read sql?

1109


Who is the owner of mysql database?

1036


Can pl sql procedure have a return statement?

1001


what is a record in a database ? : Sql dba

1045


Can instead of triggers be used to fire once for each statement on a view?

950


What are different types of statements supported by sql?

1147


Does inner join remove duplicates?

930