I have table-A(1,2,3,4,4,5,6,6,6,7).
how to get all duplicate values?what is sql query?
Answer Posted / nathan
SELECT sal,rn
FROM (SELECT ROW_NUMBER () OVER (PARTITION BY sal ORDER BY
empno DESC) rn,
sal
FROM emp)
WHERE rn > 1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can we find out the duplicate values in an oracle table?
Is java required for oracle client?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What is difference between truncate and delete?
Explain coalesce function?
Give the different types of rollback segments.
what is the difference between restoring and recovering?
What is meant by raw datatype?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
What is the usage of save points in oracle database?
Explain oracle left join with an example?
does the query needs a hint to access a materialized view?
How to return top 5 rows in oracle?
How to assign data of the deleted row to variables?