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 / arun karthick

select sal from emp group by sal; and select distinct sal
from emp ;
Both queries will give the same result - fetch the salary
in emp table without duplicates.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I partition in sql?

942


Explain what is sql?

1096


What are the types of subqueries?

1047


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

1028


What is primary key and foreign key with example?

916


How can the performance of a trigger be improved?

1021


what are wild cards used in database for pattern matching ? : Sql dba

1121


What port does sql server use?

1042


Is the primary key an index?

1015


What are local and global variables and their differences?

1075


tell me about various levels of constraint. : Sql dba

1025


What does cursor do in sql?

1003


What is the difference between union and union all command?

1058


What is primary key and unique key?

1097


Can a select statement fire a trigger?

1136