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

How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1156


Is sql procedural language?

919


What is the difference between unique and primary key constraints?

1007


What is sqlite used for?

933


Which is faster view or stored procedure?

887


What are two statement types in sql?

1031


Write a query to find the names of users that begin with "um" in sql?

924


What are all different types of collation sensitivity?

974


What is cost in sql execution plan?

903


List different type of expressions with the example.

893


What is query optimization in sql?

936


how would you get the current date in mysql? : Sql dba

912


what is a view? : Sql dba

1026


Explain the the delete statements in sql?

977


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

970