I have been trying to solve a question where I am ask to fetch 50 % of record from table
My Table :
Column names
WORKER_ID
FIRST_NAME
LAST_NAME
SALARY
JOINING_DATE
DEPARTMENT
My Query :
select * from worker_details where rownum <= (select round(count(rownum)/2) from worker_details);
Even though I got the output but then also not satisfied
As I research over internet and got one article where the author mention like the Their is no guarantee of order when using rownum
Can someone elaborate and explain me in detail how to achieve the 50 % record from table and why no guarantee of order for rownum
?