write a query to display the third record from the employee
table?
Answers were Sorted based on User's Feedback
Answer / m m naidu
To display the 3rd record of emp table we can write query as
select * from emp where rownum<4 minus select * from emp
where rownum<3;
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / srinu
select * from (select rownum r,emp.* from emp) where r=3;
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / j
select * from emp e where 3=(select count(sal) from emp
where e.sal>sal)
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / i.anil
select a.*,rownum from
(select b.*,rownum rk from
(select * from emp )b)a where rk=3;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vsandhyana
select top 1 * from (select top 3 * from employee order by
employeeid desc) emp
Thanks
Vsandhyana
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ammu
select * from emp e where 4=(select count(sal) from emp
where e.sal>sal)
Because it follows n-1 rule..
Is This Answer Correct ? | 0 Yes | 0 No |
How do you improve the performance of the Cognos Analytics report
What are the batches and it’s details?
What is the difference between a cascading report and drillthru report? Why do we go for drill thru report?
How to hide the prompts
What DB View and Bus View?
how can you create a project creation
Define cognos report net?
Which one is better among Value and select & search prompts,in terms of performance?
Can we install Cognos 8.4 on Windows Vista...Please let me know....Thanks!!!
How do you test the performance of a report?
what are typees of dimensions
How can i approach to write Congnos Certification? What exactly should i do? Can anyone guide me plz?