Report Parameter Query
Posted: Thu Apr 20, 2006 2:35 am
1 SELECT DEPTNO,DNAME FROM DEPT
2 ORDER BY DEPTNO DESC
DEPTNO DNAME
--------- --------------
40 OPERATIONS
30 SALES
20 RESEARCH
10 ACCOUNTING
i want the Second Highest Deptno on the Top and the others are as it is Which query is Apply there fore the result like this
DEPTNO DNAME
--------- --------------
30 SALES
40 OPERATIONS
20 RESEARCH
10 ACCOUNTING
then i want to show this in a parameter form is it possible
Najm
2 ORDER BY DEPTNO DESC
DEPTNO DNAME
--------- --------------
40 OPERATIONS
30 SALES
20 RESEARCH
10 ACCOUNTING
i want the Second Highest Deptno on the Top and the others are as it is Which query is Apply there fore the result like this
DEPTNO DNAME
--------- --------------
30 SALES
40 OPERATIONS
20 RESEARCH
10 ACCOUNTING
then i want to show this in a parameter form is it possible
Najm