HOW TO GET TOP AND BOTTOM RECORDS IN SQL STATEMENT, URGENT

Hi,
I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks
SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B.DEPTNO ORDER BY DNAME, SAL
DNAME------------ENAME--------SAL
ACCOUNTING-------KING--------5000
----------------CLARK--------2450
---------------MILLER--------1300
RESEARCH--------SCOTT--------3000
-----------------FORD--------3000
----------------JONES--------2975
----------------ADAMS--------1100
----------------SMITH---------800
SALES-----------BLAKE--------2850
----------------ALLEN--------1600
---------------TURNER--------1500
-----------------WARD--------1250
---------------MARTIN--------1250
----------------JAMES---------950
14 rows selected.

Search for "top-N query" in oracle doucmentation.
Example :
for top 2
SELECT * FROM
(SELECT empno FROM emp ORDER BY sal)
WHERE ROWNUM < 3;
for bottom 2
SELECT * FROM
(SELECT empno FROM emp ORDER BY sal desc)
WHERE ROWNUM < 3;

Similar Messages

  • How to get the process id of a sql statement or a session  ....

    How to get the process id of a sql statement or a session . ..?
    Thanks

    What about this?
    SELECT pid
      FROM v$session s, v$process p
    WHERE p.addr = s.paddr
       AND s.sid = :sid;   -- replace :sid with your session idRegards.
    Al

  • How to get the time for executing an SQL statement?

    hi all...
    How can I get the total execution time for a given SQL statement to a ViewObject which is created dynamically for this SQL so that the end user knows it before hand and try to stop it or go further..?
    Please post any ideas if you have got..!!!
    thanx in advance..
    grüss
    K°vi

    This is not really a question for the JDeveloper forum, but rather for the DB forum.
    Since Oracle9i there is a way to estimate how long a query will take, before executing it.
    Check it out in the Oracle DB documentation or ask on the DB forum.
    There is no built-in functionality for this in JDeveloper, but you should be able to call out to the DB from your Java code to get the estimate.

  • Getting first and last records of sql using a analytical function query

    hi all!
    Thanks in advance for looking at my problem! I have a query that runs against a table that keep all records
    of changes on another table (journal table kind of thing). I wrote a sql that would tell what the status of that
    requisition was, what came next and its respective dates. However, that would bring a lot of rows. I only need
    to see the first row and last couple say 3 last rows. How could I achieve that?
    SELECT ano yr,
                    numero id,
                    jn_datetime,
                    status_siafi status,
                    lead(status_siafi) over(PARTITION BY ano, numero ORDER BY jn_datetime) next_status,
                    lead(jn_datetime) over(PARTITION BY ano, numero ORDER BY jn_datetime) date_next_status,
                    MAX(jn_datetime) over(PARTITION BY ano, numero) last_update,
                    MIN(jn_datetime) over(PARTITION BY ano, numero) first_update
    FROM   nl_compensado_jn
    WHERE  ano = '08'
    AND    numero = '113747'
    GROUP  BY ano,
                             numero,
                             jn_datetime,
                             status_siafi
    YR ID     JN_DATETI S N DATE_NEXT LAST_UPDA FIRST_UPD
    08 113747 11-SEP-08 1 2 11-SEP-08 20-NOV-08 11-SEP-08
    08 113747 11-SEP-08 2 3 12-SEP-08 20-NOV-08 11-SEP-08
    08 113747 12-SEP-08 3 2 12-SEP-08 20-NOV-08 11-SEP-08
    08 113747 12-SEP-08 2 3 15-SEP-08 20-NOV-08 11-SEP-08
    08 113747 15-SEP-08 3 2 15-SEP-08 20-NOV-08 11-SEP-08
    08 113747 15-SEP-08 2 3 16-SEP-08 20-NOV-08 11-SEP-08
    08 113747 16-SEP-08 3 2 16-SEP-08 20-NOV-08 11-SEP-08
    08 113747 16-SEP-08 2 3 17-SEP-08 20-NOV-08 11-SEP-08
    08 113747 17-SEP-08 3 2 17-SEP-08 20-NOV-08 11-SEP-08
    08 113747 17-SEP-08 2 3 18-SEP-08 20-NOV-08 11-SEP-08
    08 113747 18-SEP-08 3 2 18-SEP-08 20-NOV-08 11-SEP-08
    08 113747 18-SEP-08 2 3 19-SEP-08 20-NOV-08 11-SEP-08
    08 113747 19-SEP-08 3 2 19-SEP-08 20-NOV-08 11-SEP-08
    08 113747 19-SEP-08 2 3 23-SEP-08 20-NOV-08 11-SEP-08
    08 113747 23-SEP-08 3 2 24-SEP-08 20-NOV-08 11-SEP-08
    08 113747 24-SEP-08 2 3 25-SEP-08 20-NOV-08 11-SEP-08
    08 113747 25-SEP-08 3 2 25-SEP-08 20-NOV-08 11-SEP-08
    08 113747 25-SEP-08 2 3 26-SEP-08 20-NOV-08 11-SEP-08
    08 113747 26-SEP-08 3 2 26-SEP-08 20-NOV-08 11-SEP-08
    08 113747 26-SEP-08 2 3 29-SEP-08 20-NOV-08 11-SEP-08
    08 113747 29-SEP-08 3 2 29-SEP-08 20-NOV-08 11-SEP-08
    08 113747 29-SEP-08 2 3 02-OCT-08 20-NOV-08 11-SEP-08
    08 113747 02-OCT-08 3 2 02-OCT-08 20-NOV-08 11-SEP-08
    08 113747 02-OCT-08 2 3 03-OCT-08 20-NOV-08 11-SEP-08
    08 113747 03-OCT-08 3 2 03-OCT-08 20-NOV-08 11-SEP-08
    08 113747 03-OCT-08 2 3 06-OCT-08 20-NOV-08 11-SEP-08
    08 113747 06-OCT-08 3 2 06-OCT-08 20-NOV-08 11-SEP-08
    08 113747 06-OCT-08 2 3 07-OCT-08 20-NOV-08 11-SEP-08
    08 113747 07-OCT-08 3 2 07-OCT-08 20-NOV-08 11-SEP-08
    08 113747 07-OCT-08 2 3 08-OCT-08 20-NOV-08 11-SEP-08
    08 113747 08-OCT-08 3 2 08-OCT-08 20-NOV-08 11-SEP-08
    08 113747 08-OCT-08 2 3 09-OCT-08 20-NOV-08 11-SEP-08
    08 113747 09-OCT-08 3 2 09-OCT-08 20-NOV-08 11-SEP-08
    08 113747 09-OCT-08 2 3 10-OCT-08 20-NOV-08 11-SEP-08
    08 113747 10-OCT-08 3 2 14-OCT-08 20-NOV-08 11-SEP-08
    08 113747 14-OCT-08 2 3 15-OCT-08 20-NOV-08 11-SEP-08
    08 113747 15-OCT-08 3 2 15-OCT-08 20-NOV-08 11-SEP-08
    08 113747 15-OCT-08 2 3 16-OCT-08 20-NOV-08 11-SEP-08
    08 113747 16-OCT-08 3 2 16-OCT-08 20-NOV-08 11-SEP-08
    08 113747 16-OCT-08 2 3 17-OCT-08 20-NOV-08 11-SEP-08
    08 113747 17-OCT-08 3 2 17-OCT-08 20-NOV-08 11-SEP-08
    08 113747 17-OCT-08 2 3 21-OCT-08 20-NOV-08 11-SEP-08
    08 113747 21-OCT-08 3 2 21-OCT-08 20-NOV-08 11-SEP-08
    08 113747 21-OCT-08 2 3 22-OCT-08 20-NOV-08 11-SEP-08
    08 113747 22-OCT-08 3 2 22-OCT-08 20-NOV-08 11-SEP-08
    08 113747 22-OCT-08 2 3 23-OCT-08 20-NOV-08 11-SEP-08
    08 113747 23-OCT-08 3 2 23-OCT-08 20-NOV-08 11-SEP-08
    08 113747 23-OCT-08 2 3 27-OCT-08 20-NOV-08 11-SEP-08
    08 113747 27-OCT-08 3 2 27-OCT-08 20-NOV-08 11-SEP-08
    08 113747 27-OCT-08 2 3 28-OCT-08 20-NOV-08 11-SEP-08
    08 113747 28-OCT-08 3 2 28-OCT-08 20-NOV-08 11-SEP-08
    08 113747 28-OCT-08 2 3 29-OCT-08 20-NOV-08 11-SEP-08
    08 113747 29-OCT-08 3 2 29-OCT-08 20-NOV-08 11-SEP-08
    08 113747 29-OCT-08 2 3 30-OCT-08 20-NOV-08 11-SEP-08
    08 113747 30-OCT-08 3 2 30-OCT-08 20-NOV-08 11-SEP-08
    08 113747 30-OCT-08 2 3 31-OCT-08 20-NOV-08 11-SEP-08
    08 113747 31-OCT-08 3 2 31-OCT-08 20-NOV-08 11-SEP-08
    08 113747 31-OCT-08 2 3 03-NOV-08 20-NOV-08 11-SEP-08
    08 113747 03-NOV-08 3 2 03-NOV-08 20-NOV-08 11-SEP-08
    08 113747 03-NOV-08 2 3 06-NOV-08 20-NOV-08 11-SEP-08
    08 113747 06-NOV-08 3 2 06-NOV-08 20-NOV-08 11-SEP-08
    08 113747 06-NOV-08 2 3 07-NOV-08 20-NOV-08 11-SEP-08
    08 113747 07-NOV-08 3 2 07-NOV-08 20-NOV-08 11-SEP-08
    08 113747 07-NOV-08 2 3 10-NOV-08 20-NOV-08 11-SEP-08
    08 113747 10-NOV-08 3 2 10-NOV-08 20-NOV-08 11-SEP-08
    08 113747 10-NOV-08 2 3 12-NOV-08 20-NOV-08 11-SEP-08
    08 113747 12-NOV-08 3 2 12-NOV-08 20-NOV-08 11-SEP-08
    08 113747 12-NOV-08 2 3 13-NOV-08 20-NOV-08 11-SEP-08
    08 113747 13-NOV-08 3 2 13-NOV-08 20-NOV-08 11-SEP-08
    08 113747 13-NOV-08 2 3 14-NOV-08 20-NOV-08 11-SEP-08
    08 113747 14-NOV-08 3 2 14-NOV-08 20-NOV-08 11-SEP-08
    08 113747 14-NOV-08 2 3 17-NOV-08 20-NOV-08 11-SEP-08
    08 113747 17-NOV-08 3 2 17-NOV-08 20-NOV-08 11-SEP-08
    08 113747 17-NOV-08 2 3 18-NOV-08 20-NOV-08 11-SEP-08
    08 113747 18-NOV-08 3 2 18-NOV-08 20-NOV-08 11-SEP-08
    08 113747 18-NOV-08 2 2 18-NOV-08 20-NOV-08 11-SEP-08
    08 113747 18-NOV-08 2 3 19-NOV-08 20-NOV-08 11-SEP-08
    08 113747 19-NOV-08 3 2 19-NOV-08 20-NOV-08 11-SEP-08
    08 113747 19-NOV-08 2 4 20-NOV-08 20-NOV-08 11-SEP-08
    08 113747 20-NOV-08 4             20-NOV-08 11-SEP-08
    80 rows selected.thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!
    gleisson henrique

    sorry!!!!! didn't notice that major detail!!!
    insert into nl_compensado_jn values ('INS','LETICIA','11-SEP-08 15:08:27','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','1','');
    insert into nl_compensado_jn values ('UPD','BELLA','19-SEP-08 07:43:20','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','18-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','15-SEP-08 07:45:54','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','12-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','11-SEP-08 15:34:30','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','11-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','16-SEP-08 13:48:38','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','16-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','18-SEP-08 07:44:12','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','17-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','16-SEP-08 07:38:29','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','15-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','19-SEP-08 16:13:20','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','19-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','18-SEP-08 15:33:59','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','18-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','15-SEP-08 15:35:52','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','15-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','02-OCT-08 07:51:38','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','29-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','26-SEP-08 08:11:04','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','25-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','29-SEP-08 15:46:31','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','29-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','29-SEP-08 12:12:29','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','26-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','08-OCT-08 07:44:06','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','07-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','09-OCT-08 07:44:43','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','08-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','03-OCT-08 07:44:57','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','02-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','06-OCT-08 07:41:19','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','03-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-SEP-08 07:35:00','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','16-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','03-OCT-08 15:17:09','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','03-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','23-SEP-08 16:05:01','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','19-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','25-SEP-08 07:37:44','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','24-SEP-08');
    insert into nl_compensado_jn values ('UPD','GERENTE','26-SEP-08 15:57:35','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','26-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','24-SEP-08 15:31:40','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','24-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','12-SEP-08 08:02:34','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','11-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','09-OCT-08 15:04:27','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','09-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-SEP-08 15:31:46','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','17-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','07-OCT-08 07:51:57','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','06-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','07-OCT-08 15:04:54','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','07-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','02-OCT-08 15:49:48','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','02-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','25-SEP-08 15:36:45','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','25-SEP-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','06-OCT-08 15:00:08','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','06-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','08-OCT-08 14:57:23','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','08-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','12-SEP-08 15:31:47','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','12-SEP-08');
    insert into nl_compensado_jn values ('UPD','BELLA','06-NOV-08 10:04:08','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','03-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','10-NOV-08 14:11:55','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','07-NOV-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','23-OCT-08 15:08:23','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','23-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','31-OCT-08 14:59:36','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','31-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','28-OCT-08 10:33:59','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','27-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','16-OCT-08 08:01:41','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','15-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','29-OCT-08 11:04:35','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','28-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-OCT-08 07:58:07','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','16-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','22-OCT-08 10:36:15','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','21-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','21-OCT-08 13:08:38','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','17-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','23-OCT-08 10:49:52','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','22-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','27-OCT-08 10:12:47','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','23-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','16-OCT-08 15:36:47','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','16-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','14-OCT-08 15:19:24','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','14-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','03-NOV-08 09:10:26','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','31-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','15-OCT-08 07:59:37','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','14-OCT-08');
    insert into nl_compensado_jn values ('UPD','ANTUNES','10-OCT-08 11:25:23','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','09-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','03-NOV-08 16:01:49','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','03-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','29-OCT-08 15:13:36','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','29-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','22-OCT-08 15:25:48','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','22-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','30-OCT-08 10:22:24','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','29-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','30-OCT-08 15:15:47','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','30-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-OCT-08 15:19:19','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','17-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','06-NOV-08 16:08:43','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','06-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','31-OCT-08 10:42:10','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','30-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','07-NOV-08 16:01:50','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','07-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','21-OCT-08 15:34:07','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','21-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','27-OCT-08 15:22:24','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','27-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','28-OCT-08 15:16:19','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','28-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','15-OCT-08 15:15:54','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','15-OCT-08');
    insert into nl_compensado_jn values ('UPD','BELLA','07-NOV-08 09:39:43','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','06-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-NOV-08 09:29:29','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','14-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','12-NOV-08 09:40:53','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','10-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','18-NOV-08 09:49:53','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','17-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','19-NOV-08 15:29:15','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084810','16660','2','19-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','10-NOV-08 15:25:03','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','10-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','13-NOV-08 09:10:07','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','12-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','14-NOV-08 10:33:24','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','3','13-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','12-NOV-08 15:32:54','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','12-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','17-NOV-08 15:37:10','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','17-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','19-NOV-08 09:14:38','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084810','16660','3','18-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','20-NOV-08 09:06:16','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084810','16660','4','19-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','14-NOV-08 15:19:03','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','14-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','18-NOV-08 15:47:14','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','18-NOV-08');
    insert into nl_compensado_jn values ('UPD','BELLA','13-NOV-08 15:29:06','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084110','16660','2','13-NOV-08');
    insert into nl_compensado_jn values ('UPD','HEBER','18-NOV-08 18:41:45','','TRIGER25','','08','113747','00','00003','84110','08','DV','540638','11-SEP-08','WX01208201001760084810','16660','2','18-NOV-08');

  • How do I reverse the full screen view to get my top and bottom menu listings?

    I clicked that button to view full screen hoping it meant to get rid of all the stuff that was on the screen, but instead it removed the top and bottom bars that have my buttons I need. ie the bottom has the toolbar and I like the top menu bar back. How to do I get it back?

    Hi abcdef123,
    Try hitting F11 or moving your cursor to the upper right hand corner of the scree to expose the page controls, then clicking on ''restore''.
    Hopefully this helps!

  • What are the boxes that appear when I scroll over them at the top and bottom of a Pages document, and how do I get rid of them?

         While types a blank document on pages, there are "invisible" boxes at the top and bottom of each page, and they only appear when I scroll over them. Does anyone know what these boxes are, and how i can get rid of them from my paper?

    Those are the Header and Footer spaces. You remove them using the Document Inspector. Uncheck the "Headers" and "Footers" checkboxes shown checked here:
    Regards,
    Barry

  • When I upgraded to the newer version of Firefox my add-on no longer showed at the bottom. How do I get the add-on to show at top and bottom? Do I need to go back to an older version?

    I upgraded Firefox to the newest version (4 I think it was from 3). Now my "add-on" no longer appears"at the bottom" of the screen, only at the top. Do I need to go back to the older version in order for the add-on to show at top and bottom? If so, how do I do that if I decide to do it?

    Your UserAgent string in Firefox is messed up by another program that you installed, and those websites don't know you are running Firefox 3.6.3 (which is what you do have installed).
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • How to get Border to draw only top and bottom?

    Does anyone know a way to get a Border to only draw on specific sides? i.e. create an EtchedBorder, then only have it draw the border on the top and bottom?

    You can easily make your own border class and draw it yourself. Open up the source for Etched Border, copy it to your own border class, then modify it. That is legal to do. Then, you can provide the ability to allow the sides to be painted as options to your class. It is actually pretty easy to do.

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • How to align text at the top and bottom of a cell?

    I'm making a periodic table and need help with aligning text at the top and bottom of a cell. I'll have a picture in the middle of the cell with text above and below the pic. Thank you in advance for any kind of suggestions you can give me.

    It sounds as though you want to have 3 separate items inside of a single cell; text at the top of the cell, text at the bottom of the cell, and then a picture in the middle of the cell.  I am no expert, but to my knowledge that is not possible (someone please correct me if I am wrong.)  I also cannot figure out how to put a picture inside of a cell itself.
    I do have a way to accomplish the end result so long as what you need is the final look and not a useable table in numbers.
    Create 2-3 cells for each element.  (The middle cell, unless you can put pictures in a cell and I don't know, would just be there for peace of mind, but would hold the picture if you can, I would just do two if the pictures are to be in front of the cell anyway.)  The top cell align text to top on the Text tab of the inspector.  The bottom cell, align text to bottom on the same tab.  Then place the picture in the middle.  Now, you have what you want except there is one or two lines dividing the cells.  To get rid of this, either click the middle cell if you have one, or the top or bottom cell.  Click on the Cell tab of the inspector.  Select the bottom border and/or top border button and select "No Border" under border styles.  To make this fast, select a full row at a time, or use command click to select all of the same type of rows (middle, top, or bottom) and change all cells at once.
    I hope this helps.  Best of luck!
    ~Bret

  • Get rid of the white space at the top and bottom of the report when Printing as PDF document

    Hello All,
    I have a wider tablix report which is 29 inches wide. I have given the paper size as custom and width as 29 and height as 11 in report properties.I have deployed it and saved it as PDF document. When I print preview the report I am using the paper size as
    tabloid (17 by 11) and selected the orientation as Landscape. I am getting the full report without any stripping but I am getting some extra space at the top and bottom when I print the report. Can anyone help me how to get rid of this space? . I checked the
    margins for the report and it was 0in. Please help.
    Thank You

    Hi There
    In Reporting Services (SSRS 2008), there are white spaces preserved in the report body by default. When the white space extends the body size beyond the width of the report, blank pages will be generated. To avoid the issue, you can set the “ConsumeContainerWhiteSpace”
    property of the report to “True”.
    Please try to adjust your margins (top + side) and hopefully this problem will get resolved
    Body Width <= Page Width - (Left Margin + Right Margin)
    Horizontal usable area:
    X = Page.Width - (Left Margin + Right Margin + Column Spacing)
    Vertical usable area:
    Y = Page.Height - (Top Margin + Bottom Margin + Header Height + Footer Height)
    Body Width <= Page Width - (Left Margin + Right Margin)
    Horizontal usable area:
    X = Page.Width - (Left Margin + Right Margin + Column Spacing)
    Vertical usable area:
    Y = Page.Height - (Top Margin + Bottom Margin + Header Height + Footer Height)
    If you have any questions please ask.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • Why does the top and bottom of my clips get cut off?

    Hi, I'm new to iMovie and I've encountered an annoying problem. I imported all my movie files from my flash drive without any issues. I dragged a clip from the section with all the clips to the play reel. I previewed the clip, both normal screen and full screen, and both times the top and bottom of the clip was cut off. I tried it again with different clips but the same thing kept happening? Can anyone tell me why this happens because my head keeps getting cut off and I don't like it one bit.

    First, you can go into File/Project Preferences and adjust the aspect ratio of your project to either widescreen (16:9) or standard (4:3), to match your footage.
    You can combine footage that is widescreen and standard in the same project. In this case, you have to tell imovie how to handle the clips that do not fit the overall project aspect ratio. To do this, you can select a clip in your project and use the Rotate, Crop, Ken Burns Tool. If you select FIT, it will preserve the whole frame by inserting black bars (letterboxing). If you select CROP it will cut off the top and bottom. You can select the default for this in Project Properties.

  • 1280x720 video on screen getting squished on top and bottom

    Premiere CS4.  I exported a 1280x720 video to play on a LCD TV with the following settings
    in the attached.  The TV is set to play 16:9.  I have it set to square pixels since the zip file with the video is playing the video file, not a dvd player.
    But...there is black on the top and bottom of the video.  What could be causing this?  Is it my export settings?  Maybe it can't be a wmv?? I'm confused?

    No answer here; just curiosity.
    The "zip file" you describe: How are you getting the video to the TV?
    Our one and only "HD" TV so far is a relatively small, cheap one.  It has lots of settings for how to deal with various formats, and sometimes (TV signals or commercial DVDs) I cannot find a completely correct option.  I suspect that its native display resolution is odd.  Harm, is it possible that native resolution of a display can be an issue?
    So I'd test your output on a "better" TV.

  • I plugged my macbook pro into an external monitor, then unplugged it later and now it is stuck with black borders on top and bottom and zoomed out like it is still on the monitor. How do I fix it?

    I started using my external monitor with my macbook pro and as soon as I plug it in it to the monitor it adjusts the screen by zooming out a bit and creating about 3/4 of an inch black borders on the top and bottom of the screen. But these dont show up on the monitor so I assumed it was fine. But when I took it off the monitor, the borders were still there like it was still on the monitor. Any hellp? Its starting to mess with my eyes haha.

    Hi aefulcher,
    It sounds like you had the external display set to mirror the internal display so the resolution(s) were changed to match each other.
    OS X: How to use multiple displays with your Mac in Mountain Lion and earlier
    http://support.apple.com/kb/ht5019
    Check if the current resolution matches your screen's natiive resolution.
    Thank you for visiting Apple Support Communities.
    Nubz

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for