[tt]select top 5 * from mytable
order by salary desc[/tt]
I have no idea why you titled your post Oracle SQL Select, since this is the Microsoft SQL Server forum; hopefully, though, I've answered your question.
If I am right then this will not work in Oracle as the TOP keyword doesn't seem to exist. At least it doesn't appear in the Complete Oracle Reference...
James James Culshaw
jculshaw@active-data-solutions.co.uk
I will soon be creating a DTS package that will include a Select statement from an Oracle database. If anyone has suggestions for tips and pitfalls I would be grateful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.