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 is pl/sql table? Why is it used?

1013


What is pivot in sql?

901


Which is the correct statement about truncate and delete?

1089


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

1245


How do I view tables in mysql?

955


What is the max nvarchar size?

944


What is the use of <> sql?

959


How many commands are there in sql?

1009


How many tables can a sql database have?

958


Define concurrency control. : Transact sql

1153


How can you select unique records from a table?

1052


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

2207


Why is sql better than hql?

970


What is difference between hql and native sql?

1142


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

1044