Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a query to display to 10 max record from the employee
table?

Answers were Sorted based on User's Feedback



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

Answer / madhoo

You are question is not clear.....you need decide based on
which column you want first 10 records.....

if you work on Salary column this is the query .......

select distinct sal from emp a
where (select count(*) from emp b where a.sal<b.sal)<=10
order by sal desc
/

Any queries on Sql please feel free to ask me i am very
interest in it......

Is This Answer Correct ?    7 Yes 0 No

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

Answer / srinu

select * from(select rownum r,emp.*from emp order by sal
desc) where r<=10;

Is This Answer Correct ?    6 Yes 2 No

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

Answer / don

we can create a list report and sort the field which we
need the top 10 of in an descending order and before
running the report set rows per page to 10

Is This Answer Correct ?    2 Yes 0 No

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

Answer / m m naidu

To display first 10 records we can write the query as
select * from(select * from emp order by ename desc) where
ronum<=10;

Is This Answer Correct ?    7 Yes 6 No

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

Answer / lakhwinder singh

Query for display the top 10 records from the table(tbl1)

select top 10 * from tbl1

Is This Answer Correct ?    4 Yes 3 No

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

Answer / sathish

select * from employee
limit 10

Is This Answer Correct ?    1 Yes 3 No

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

Answer / richard

Select Max(Count=10) from emp a

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More Cognos Interview Questions

wHAI IS THE DIFFERENCE BETWEEN LIST REPORT AND CROSSTAB REPORT?

7 Answers  


what is mean of Meta data definistions?

4 Answers   IBM,


how to create relationship between emp and salgrade tables in frameworkmanager?

1 Answers   TCS,


If you got any problems while developing the reports, then what will you do? How will you debug the problems? This question isasking in many interviews,,,, pls help me,,,

0 Answers  


how can you get the errors in job? when loops are araised we get error?

0 Answers   Syntel,


what is crosstab space

1 Answers   IBM,


How do you deployment reports from one server (Development) to other server(Production)? How do you configure the cognos7.0 version cube in cognos 8.0? Pls, explain with example? How do you create IQD without IMR or can u explain other way create IQD?

2 Answers   TCS,


I have 7500 rows. I need all rows in single reports. Which type of prompt we have used retrieving all rows and show in a report? We have dynamical queries q1, q2, q3, q4, q5. If customer selects the particular, query that only show in execution report. In case it may more then one, how do you execute the particular query item in report page? What are the difference bt OLDP and OLAP?

0 Answers   IBM, KKL, Reliance,


What is the difference between regular dimension and derminant?

0 Answers   TCS,


----------0Diff b/w Report Functions and Database functions?

1 Answers   IBM,


what are summary filters? grouped filters?

3 Answers   IBM,


Difference between Express authoring mode and Professional authoring mode?

2 Answers   Wipro,


Categories