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...

one of the column in my table contains the data like
SAL
----
1000
1000
2000
3000
3000

So my requirement is i want output like
SAL
---
1000
2000
3000

it mean i want to delete duplicate rows only how should u
write query?

Answer Posted / annalakshmi.s

select distinct(salary) from tablename

Example:

employee is the table name

salary is the column name means

select distinct(salary) from employee

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of joins?

967


What is data manipulation language?

1193


How does postgresql compare to mysql?

1039


what are ddl statements in mysql? : Sql dba

1207


What is an inner join sql?

1036


Is like operator in sql case sensitive?

1031


define data blocks ? : Sql dba

1002


What are different types of tables in sql?

1000


How to read xml file in oracle pl sql?

916


How long it takes to learn pl sql?

1021


Which sql statement is used to return only different values?

1009


Is primary key clustered index?

954


What is nosql example?

1039


What is the difference between nested table and varray?

1013


What is memory optimized?

1091