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 / destiny
create table salary2 as select distinct * from salary1
drop table salary1
rename salary2 to salary1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is benefit of creating memory optimized table?
Why is pl sql needed?
Can we use pl sql in mysql?
what are the non-standard sql commands supported by 'mysql'? : Sql dba
what is the difference between a local and a global temporary table? : Sql dba
what is a database? : Sql dba
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
What is primary key and foreign key with example?
Can we use ddl commands in pl sql?
What is the usage of sql functions?
What is the difference between clustered and non-clustered indexes?
Explain what is table in a database?
How does postgresql compare to mysql?
How do you create a unique index?
How do I truncate a word?