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 only how should u
write query?
Answer Posted / yaswanth
select distinct(SAL) as SAL from table_name;
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
what are the non-standard sql commands supported by 'mysql'? : Sql dba
How to combine two stored procedures in sql?
Is it possible to create startup or shutdown trigger for on-schema?
How long does it take to learn pl sql?
What is meant by user defined function?
Mention what are different methods to trace the pl/sql code?
Can we connect to postgresql using sql developer?
Explain locks? : Transact sql
What is use of package in pl sql?
Sql technical questions
What is AUTH_ID and AUTH_USER in pl/sql ?
what are aggregate and scalar functions? : Sql dba
What is the current version of postgresql?
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
How to load data with sql*loader?