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

select salary from emp where rowid NOT IN(select max(rowid) from emp GROUP BY salary);

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of prepared statement?

1072


How many types of normalization are there?

1015


How many subqueries can be nested in a statement?

1039


What problem one might face while writing log information to a data-base table in pl/sql?

1250


Which certification is best for sql?

1041


Are sql connections encrypted?

1085


What is data control language (dcl)?

1205


What are the advantages of stored procedure?

1039


What is linq to sql?

1178


What are schema-level triggers?

1151


what is a foreign key ? : Sql dba

1114


How to check if a column is nullable before setting to nullable?

1185


Which join is like an inner join?

1093


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1048


How to create an array in pl/sql?

1122