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 / mohannad amarneh
select distinct(sal) from my_table;
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
How to rename a table?
What is Collation Sensitivity ? What are the various type ?
What are procedures used for?
Is sql difficult?
What is synonyms?
What is sp_helptext?
List the different type of joins?
What is sql injection owasp?
Write a sql select query that only returns each name only once from a table?
How do you explain an index number?
What are user defined functions?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What is sql dialect?
Why left join is used in sql?
Does pl sql work in mysql?