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

what are the filters in framework manager and report studio?

1 Answers   IBM,


How to crate cubes in transformer ?

3 Answers  


what is the security module used in cognos?

2 Answers   Cognos, IBM,


Actually we have 500 users when they run the report display the flage image related country user? How its possible?

1 Answers  


------------ Diff b/w MemberCaption and MemberDescription?

1 Answers  


what is cognos architechure

4 Answers   Cap Gemini,


How create measures and demensions?

1 Answers  


How can you schedule the report that it displays a day old data. (My answer was to create a view, but the lady wanted some other method).

1 Answers  


Hi Techies..., can any one please answer me what is called unit testing ? how to do it and what are the steps involves in it? thanks for your answer......

1 Answers  


5. Which type of report you build more, list, crosstab or chart and why?

1 Answers   IBM,


what are the tabs in cognos ?

2 Answers  


What is the abrevation of .PPR? (Power play report) or anything new?

1 Answers  


Categories