write a query to display to 10 max record from the employee
table?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Mail me at: Amit_Cog@yahoo.com for a Very latest COGNOS 8 Certi Dumps like COG-112, COG-122, COG-125, COG-132, COG-142, COG-145 I scored Full Score, if anyone need it, just drop me a mail with Code
What is a dimension?
All ready we have alias tables for modifications why we are using views if anybody this answer plz reply me
I have tables like tableA&tableB,in tableB columns(sno,month,netrevenue,year),by using both the tables we hava to create list columns like(country,month,net revenue)when i run the report if my retrevenue'0'this plasa i want to display'NULL'
Define metrics studio?
What are different events in Report studio?
Hai frnds, Any body tell to What is Granularuty in cognos Please help me.i can search in so many browsers but i canot get the answer
I have ten columns that needs to be totalled... but some columns are empty...how do i get sum all the columns even if sum are empty? Can i get a total of the rows instead of columns? if yes, what is the function to be used?
please can you give me some banking domine calculations developed in framework manager plzzzzz thank you.
1)diff between shortcut-key and alias table? 2)what is unit testing? 3)what is scorecard?
What is Lookup ,bridgeing tables where they will use in the Dataware house
What are all the different types of prompt in cognos?