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 errors and types of errors you faced in Cognos ReportNet?

2 Answers  


faq's on cognos

0 Answers  


Hi all, i have a requirement in Conditional drill through. I have a list report with Cities India, UK, USA, China, japan, Canada.... In the above cities i want to give Hyperlinks(Drill) for Only India & UK. Could you please send me the steps????

1 Answers  


what is a box type in cognos? what is a stitch query? what are the services that run in background when cognos is running

2 Answers   IBM,


What is Normalization?

3 Answers  


how to add a new dimension in the powerplay transformer.i.e already we have devbeloped one cube. in that we want to add one new dimension cn anybody plese tell me the step by step procedure.

4 Answers  


What is namespace and what it holds?

7 Answers   IBM,


What is Metrics designer?

1 Answers  


hi, this is harish. i had finsihed cognos course recently.can some one help in the area of project explination, interview questions,real time scenarious....this is my maild id nanagupta907@gmail.com

0 Answers  


is it possible to display the column names in first page but not in remaining pages i.e if a report contains 10 pages column names should be displayed in 1st page but not remaining pages ( 2 to 10)

2 Answers  


----------------What is Scopr Relationship?

1 Answers  


How to create a completed dashboards in cognos report studio? and how to change the bar colours for differencet columns in bar charts?

4 Answers  


Categories