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 in the table
permanently and i want output in the above formatow should u
write query?

Answer Posted / abin

Select sal from (Select *,ROW_NUMBER() over (partition by
sal order by sal asc)num from emp) a
Where num=1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between primary and secondary key?

989


What is primary key and foreign key with example?

894


How do I truncate a word?

1025


Explain the difference between sql and mysql.

1023


how to include character strings in sql statements? : Sql dba

1019


How to set up sql*plus output format in oracle?

985


Mention what is the function that is used to transfer a pl/sql table log to a database table?

951


describe mysql connection using mysql binary. : Sql dba

1008


How do you remove duplicate records from a table?

903


How many types of primary keys are there?

998


What is microsoft t sql?

900


What is the difference between the conventional and direct path loader? : aql loader

1127


what is msql? : Sql dba

958


Can there be 2 primary keys in a table?

967


what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure

1264