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 / krishna

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 ?    9 Yes 0 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 ?    6 Yes 3 No

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

Answer / kumar

select * from emp where rownum<4 minus select * from emp
where rownum<3;

Is This Answer Correct ?    1 Yes 1 No

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

Answer / g.arangarasu

No friends,

rownum is one of the column name of table like
emp_no,emp_name etc. if u have not rownum column in ur
table,how to solve it.

we can retrieve this record through physical location that
is using rowid not rownum.

select min(rowid) from emp not in(select min(rowid) from
emp not in(select min(rowid) from emp));

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Cognos Interview Questions

What is Online View?

0 Answers   IBM,


I have four region(Us, Uk, Canada, Europe) in my value prompt. Along with this I want new prompt called All. Once I click on All it should display all regions data. How can I achieve this ?

6 Answers  


Re: hi,dis is Hari.I'm searhing on cognos.1 want realtime scenarios with solutions.persons having hands on experience in real time plz help me out. my mail-id is shankerhari17@yahoo.com, hope u will respond as soon as possible. thank u in advance

0 Answers   Satyam,


Wht is difference between content store and content manager?

2 Answers   Satyam, Tech Mahindra,


how to connect datamarts

0 Answers   HCL,






Explain the Difference Between Bursting and Scheduling?

1 Answers  


I have a value prompt in my prompt page.Now if I set the filter to required then I have to select a value from the list and I will get the respective data in the report page.But If I select nothing then I will get the complete data in the report page. I want that if I select nothing from the prompt list then nothing is displayed in my report page. How should I do this?

1 Answers   Cap Gemini, HSBC,


Can you please tell me the limitation of Excel file when exporting from report to Excel? I can export to HTML and PDF but I can't export to Excel. The report is more than 13000 rows. When exporting to Excel, system can view it. After that, I save the report to an Excel file. The size of Excel file is more than 11 MB. But I can't view this file by Excel. Please help me to solve this problem. Thanks!

1 Answers  


how can you restrict the number of values available for a prompt? i tried this by using static choices property, but i dint get result... so pls explain in detail steps....

3 Answers  


What is the difference between set functions and filter function in dimensional data?

0 Answers  


Can u please describe the different types of traps with eg. Thanks

2 Answers  


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

0 Answers  


Categories