I want to remove duplicate rows returned from this sql:
Select
*
From (Select
Security_Symbol,
Security_Name,
date1,
time1,
last1,
Changefromopen,
percentchangefromopen
From
xgdv
Where
Security_Symbol In ('abc', 'def', 'ghi')
Order By
date1 desc,
time1 asc) where rownum <= 3
Using a distinct in subquery doesn't remove duplicate records.
What's wrong with using distinct in subquery. How do I achieve this?
DISTINCTin the outer query?Security_SymbolandSecurity_Nameas the same row?