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?
Answers were Sorted based on User's Feedback
Answer / dinesh kumar
delete from table_name alias1
where rownum < ( select max(rownum) from table_name alias2
where alias1.col1 = alias.col2 );
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / destiny
create table salary2 as select distinct * from salary1
drop table salary1
rename salary2 to salary1
| Is This Answer Correct ? | 0 Yes | 0 No |
How to export the table data (this table having 18 million records) to .csv file. Please tell me is there any faster way to export the data.
what are the security recommendations while using mysql? : Sql dba
What is sql trigger example?
What is the use of index in sql?
how do you login to mysql using unix shell? : Sql dba
What is sharding in sql?
What is pl sql in dbms?
What is the difference between pl and sql?
In a Distributed Database System Can we execute two queries simultaneously ? Justify ?
Which is faster joins or subqueries?
Is left join faster than join?
Explain what is a view?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)