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 / narasimha

select distinct(sal) sal from salex;

Is This Answer Correct ?    35 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a constraint? Tell me about its various levels.

1164


Why do we create stored procedures & functions in pl/sql and how are they different?

951


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2491


What is the difference between delete, truncate and drop command?

1155


How do I clear the screen in sql plus?

1047


How to rename a column in the output of sql query?

1072


How do I access sql anywhere database?

973


Write a sql query to get the third highest salary of an employee from employee_table?

1075


What is primary key and foreign key with example?

933


What is meant by cursor in sql?

1001


what is log shipping? : Sql dba

1125


What is difference between sql function and stored procedure?

1011


How do I view a sql trace file?

1035


Why procedure is used in sql?

1041


What is pl sql code?

1057