write a query to display the third record from the employee
table?

Answers were Sorted based on User's Feedback



write a query to display the third record from the employee table?..

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

write a query to display the third record from the employee table?..

Answer / srinu

select * from (select rownum r,emp.* from emp) where r=3;

Is This Answer Correct ?    3 Yes 1 No

write a query to display the third record from the employee table?..

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

write a query to display the third record from the employee table?..

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

write a query to display the third record from the employee table?..

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

write a query to display the third record from the employee table?..

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

Post New Answer

More Cognos Interview Questions

How do you improve the performance of the Cognos Analytics report

0 Answers  


What are the batches and it’s details?

0 Answers  


What is the difference between a cascading report and drillthru report? Why do we go for drill thru report?

0 Answers  


How to hide the prompts

4 Answers  


What DB View and Bus View?

0 Answers  






how can you create a project creation

0 Answers   HSBC,


Define cognos report net?

0 Answers  


Which one is better among Value and select & search prompts,in terms of performance?

2 Answers   L&T,


Can we install Cognos 8.4 on Windows Vista...Please let me know....Thanks!!!

2 Answers  


How do you test the performance of a report?

3 Answers   TCS,


what are typees of dimensions

5 Answers   HCL,


How can i approach to write Congnos Certification? What exactly should i do? Can anyone guide me plz?

1 Answers   Polaris,


Categories