Trying to get a record count

select count(*)
from dist_ln a
left outer join jrnl_ln b on
a.journal_id = b.journal_id and
a.journal_line = b.journal_line and
a.journal_date = b.journal_date
where a.DISTRIB_STATUS = 'D'
and b.journal_id is null
and a.business_unit = '00001'
This select never completes. It does for other business units. The problem is there are 20X more rows for this BU 00001 in the dist_ln table.
There are a little over 900000 rows in the dist_ln table with BU of 00001.

First, aliases like "a" and "b" make even a simple query like this harder to read.
select count(*)
  from dist_ln dl
       left outer join jrnl_ln jl on
         jl.journal_id = dl.journal_id and
         jl.journal_line = dl.journal_line and
         jl.journal_date = dl.journal_date
where dl.DISTRIB_STATUS = 'D'
   and jl.journal_id is null
   and dl.business_unit = '00001';Then, the combination of a left outer join and an "is null" requirement on one of the join columns is equivalent to specifying that the table to which you are joining has no matching rows. So consider the following options:
select count(*)
  from dist_ln dl
where dl.DISTRIB_STATUS = 'D'
   and dl.business_unit = '00001'
   and not exists (
       select 'x'
         from jrnl_ln  jl
        where  jl.journal_id = dl.journal_id
         and jl.journal_line = dl.journal_line
         and jl.journal_date = dl.journal_date );
select count(*)
  from (
select journal_id,
       journal_line,
       journal_date
  from dist_ln dl
where dl.DISTRIB_STATUS = 'D'
   and dl.business_unit = '00001'
minus
select journal_id,
       journal_line,
       journal_date
  from jrnl_ln  jl
       );

Similar Messages

  • How to get the record count printed for the report in the Dashboards

    Hi,
    I would like to get the record count printed at the bottom of every dashboard report like:
    < 1 - 25 of 6300 > instead of < 1 - 25 >
    Any help is appreciated
    Regards
    B

    I have tried the following formula which identifies the lowest grain but it does not seem to give me correct result.. I am not getting the correct count. I am getting as 3.A work order can be updated only once at one point of time.hence the formula
    MAX(RCOUNT(CAST("SR Wo Fact"."Crm Wo Number" AS CHAR) ||CAST("SR Wo Fact"."PSC Timestamp" as char)))
    I tried only MAX(RCOUNT(1)), but I was able to get the record count as corect for Administrator but not for other users.
    Has anyone come across this scenario.
    Thanks Shravan
    Edited by: 786443 on Aug 19, 2010 10:22 AM

  • Get the record count from a query

    Hi,
    does anyone know how to get the record count from a sql query?
    e.g: I've got a ResultSet from the Statement.excuteQuery(), and I want to know how many records this ResultSet contains, how to get this?
    I'd read thoughout the documents of Statement and ResultSet, but couldn't find a solution, do I have to use another seperate query such as "select count(*)" to do this?
    thanks.
    Yang Liu

    If you are not using a scrollable result set then the following is the best way to do it.
    there are several key words in SQL that can be used, the one you are interested in is count();
    so if your query at the moment is
    "select col1, col2, col3 from my_table where col2=? and col3=?"you can work out how many rows will be returned by executing this command first
    "select count(col1) from my_table where col2=? and col3=?"this will return a result set with one row and one column, you can get the row count as follows:
    ResultSet rs = ps.executeQuery();
    int rowCount = rs.getInt(1);I hope this helps :)

  • Get estimated record count

    for pagination, we want to show the total pages. the way is to get the total count,then divided by the record number per page. The problem is its too expensive to get the total count.
    In pl/sql, we can get the estimated record count with
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST')); but my question is how to get this number from application code, like java or php.
    Thanks,

    Hi,
    Though what you're trying to do can be achieved in three steps *(i)* importing of java.io.* and java.sql.* packages *(ii)* establishment of a connection using JDBC driver, and *(iii)* query execution, it would NOT be constructive for the fact that a SELECT statement (as stated in the above reply) will always be a part of the query sentence for the following reasons:
    (a) When objects are executed in Java, the first statement that is compiled is a SQL statement.
    (b) Parameters cannot be defined in SQL strings.
    Hence, as per my understanding, you can either stick to the existing approach or modify it as per the defined standards and not customized ones.
    Regards,
    Naveed.

  • Disk utility gets "invaild record count"

    Hello, Using Macbook pro running OSX 10.9.2
    Yesterday, i was using my computer searching internet, plugged it in and walked away for about 5 mins. Came back and tried to open iTunes. I 1st choose iTunes using the button w/ the 6 squares on it on the top row of keyboard. Nothing happen and iTunes did not open. 2nd I tried to open iTunes using the dashboard. Again nothing happen. I used the power button to shut down the computer. Then restarted, it came up with a window asking which language I would like to use. I choose English and then a new window opens with 4 choices; "Restore using Time machine", "Reinstall OSX", "Get online help" (which is how I am here now), and "use disk utility". I picked disk utlity and verified the disk which popped up a window say it "stopped and needed to be repaired. I hit the "repair buttom" and got a "Invaild record count" in red. It then stopped and said it could not be repaired.
    Tried to restore using the back-up/restore with Time machine. It found time machine, but on about the 4th screen it asks which volume I would like torestore to. Nothing comes up and just says "searching for disks" None ever come up. I quit disk utility and then choose "Start up disk" under the apple menu. It doesn't find anything. I tried the "command + option + P + R" nothing is different.
    So here I am. each new screen that comes up flickers a lot before clearing.
    Dead hard drive?
    Just can't find it?
    What's next?
    Thank you for being here to help
    Jody

    Thank you dominic23.
    I tried the instructions listed by Chris Watts1 and after running the /sbin/fsck_hfs -yprd /dev/disk0s2
    it never asked for a password just said "starting". After waiting a couple mintues it came back with the following: (which I have no idea what any of it means)
    journal_reply (/dev/disk0s2) returned 22
            using cacheBlockSize = 32K  cacheTotalBlock = 16384  cacheSize = 524288K.
    Executing fsck_hfs (version hfs-226.1.1).
    **Checking journaled HFS Plus volume.
    hfs_swap_BTNode: invalid forward link (0xA9812964)
    hfs_swap_BTNode: invalid backward link (0x0B69B6DB)
    hfs_swap_BTNode: invalid node kind (-124)
    hfs_swap_BTNode: invalid node height (42)
    hfs_swap_BTNode: invalid record count (0x3E6B)
    Invalid record count
    (3, 3)
    **The volume could not be verified completely.
    volume check failed with error 2
    volume type is pure HFS+
    Primary MDB is at Block 0 0x00
    Alternate MDB is at Block 0 0x00
    Primary VHB is at Block 2 0x02
    Alternate VHB is at Block 975093950 0x3a1ec0be
    Sector size = 512 0x200
    VolumeObject flags = 0x07
    total sectors for volume = 975093952 0x3a1ec0c0
    total sectors for embedded volume = 0x00
    CheckHFS returned -1317 , fsmodified = 0
    Does any of this mean anything to you?
    thank you again,
    Jody

  • Getting the record count from result set

    i'm retreiving the result set using the executeQuery method, now i want to know how many records are there in the result set, that is the record count of the result set.
    one solution to that is to first use the executeUpdate and then use the executeQuery but i think that is not the right way.
    so please tell me is there any method in jdbc to get that thing done
    Tanx

    Hi
    Do you know if your DB supports "insensitive scrolling"?
    SQL generally do, but some don't - I had the same problem with the
    open source version of Interbase from Phoenix...
    Anyway - try creating your statement this way:
    public Statement createStatement(int resultSetType, int resultSetConcurrency)
    throws SQLException
    ...where resultset type should be:
    ResultSet.TYPE_SCROLL_INSENSITIVE
    Then you can do this:
    ResultSet rs = stm.executeQuery(q);
    int size = rs.last(); //this what you looking for?
    rs.beforeFirst();
    while(rs.next()){
    }

  • Trying to get newest record using a select statement

    Hello everyone.. I'm a bit new at this but I've been teaching myself by trial and error so bear with me.
    Using a 'DEDUCTION' table for this example, I am trying to get it to resolve the record that is most current. Since each employee record could have changes, the table could have multiple entries/deductions of which only one is the most current.
    Ok, so medical deductions are like DEDUCTIONS 700-715 while dental deductions are 730-737. Initially, I was trying to figure out how to pull the deductions based on an employee and have it compare which is newer and report the newest one for each medical and then the dental deduction. If there is not a type of deduction for someone, it should report zero like a NVL I think. See example:
    EMP_ID DEDUCTIONS EFF_DATE AMT
    1 710 2000/12/01 85.39
    1 735 2000/12/01 8.31
    9 701 2001/08/29 12
    9 707 2000/12/01 12
    9 730 2000/12/01 .23
    10 700 2001/02/25 .46
    10 730 2001/02/25 .23
    The record that stands out in this example is employee #9 with two medical deduction, one that supersedes the other - 701 and 707. Because 701 is newer it should ignore the 707 deduction.
    Any ideas? Thank you!
    ken

    Here are a couple of methods. The second one should run faster, but requires Oracle 8i.
    SQL> SELECT   emp_id, deductions, eff_date, amt,
      2           'MEDICAL' AS type
      3  FROM     deduction
      4  WHERE    (emp_id, eff_date) IN
      5           (SELECT   emp_id, MAX (eff_date)
      6            FROM     deduction
      7            WHERE    deductions BETWEEN 700 AND 715
      8            GROUP BY emp_id)
      9  AND      deductions BETWEEN 700 AND 715
    10  UNION
    11  SELECT   emp_id, deductions, eff_date, amt,
    12           'DENTAL' AS type
    13  FROM     deduction
    14  WHERE    (emp_id, eff_date) IN
    15           (SELECT   emp_id, MAX (eff_date)
    16            FROM     deduction
    17            WHERE    deductions BETWEEN 730 AND 737
    18            GROUP BY emp_id)
    19  AND      deductions BETWEEN 730 AND 737
    20  ORDER BY emp_id, deductions
    21  /
        EMP_ID DEDUCTIONS EFF_DATE          AMT TYPE
             1        710 2000/12/01      85.39 MEDICAL
             1        735 2000/12/01       8.31 DENTAL
             9        701 2001/08/29         12 MEDICAL
             9        730 2000/12/01        .23 DENTAL
            10        700 2001/02/25        .46 MEDICAL
            10        730 2001/02/25        .23 DENTAL
    6 rows selected.
    SQL> SELECT   emp_id, deductions, eff_date, amt,
      2           'MEDICAL' AS type
      3  FROM     (SELECT   emp_id, deductions, eff_date, amt,
      4                     RANK () OVER
      5                          (PARTITION BY emp_id
      6                           ORDER BY     eff_date DESC) AS rk
      7            FROM     deduction
      8            WHERE    deductions BETWEEN 700 AND 715)
      9  WHERE    rk = 1
    10  UNION
    11  SELECT   emp_id, deductions, eff_date, amt,
    12           'DENTAL' AS type
    13  FROM     (SELECT   emp_id, deductions, eff_date, amt,
    14                     RANK () OVER
    15                          (PARTITION BY emp_id
    16                           ORDER BY     eff_date DESC) AS rk
    17            FROM     deduction
    18            WHERE    deductions BETWEEN 730 AND 737)
    19  WHERE    rk = 1
    20  ORDER BY emp_id, deductions
    21  /
        EMP_ID DEDUCTIONS EFF_DATE          AMT TYPE
             1        710 2000/12/01      85.39 MEDICAL
             1        735 2000/12/01       8.31 DENTAL
             9        701 2001/08/29         12 MEDICAL
             9        730 2000/12/01        .23 DENTAL
            10        700 2001/02/25        .46 MEDICAL
            10        730 2001/02/25        .23 DENTAL
    6 rows selected.

  • Get the record count

    The Query below is part of a huge query. The snipet is just the part that I need to make a change.
    For the query below, how can I get the recordcount in the select inside the case statement? I want to only output the r_text when the record count of the select is zero (0) else make the output to r_text null
    select
    distinct a.style_id, b.sty, b.season, a.cust, a.ad_d, b.code,
    (case when b.code = 'MAKE' then
    (select min(t.value) from sn.age r, sn.text t
    where r.t_id = '18' and r.name = 'MTGNSL'
         and r.t_id = t.t_id
         and r.name = t.name and r.text_id = t.text_id
         and r.id_1 = a.id
    ) end) r_text,
    (case when b.code is null then 'Blank Code'
    when b.code = 'MAKE' then 'MAKE' end) err
         

    If you are not using a scrollable result set then the following is the best way to do it.
    there are several key words in SQL that can be used, the one you are interested in is count();
    so if your query at the moment is
    "select col1, col2, col3 from my_table where col2=? and col3=?"you can work out how many rows will be returned by executing this command first
    "select count(col1) from my_table where col2=? and col3=?"this will return a result set with one row and one column, you can get the row count as follows:
    ResultSet rs = ps.executeQuery();
    int rowCount = rs.getInt(1);I hope this helps :)

  • Problem in getting update records count while executeBatch()

    hi,
    I have used "Select in Insert" queries for migrating data from one table to another.
    like
    INSERT INTO TABLE1 (COL1, COL2)
    SELECT COL1,COL2,... FROM TABLE2
    WHERE COL1 = ... AND COL2 = ...;
    Case 1:
    I added these statements as addBatch() & at the end i execute method " executeBatch()". It returned the array of integer having record count for each query respectively.
    But that count was always be -2 i.e. SUCCESS_NO_INFO.
    Case 2:
    If i run the same code with executeUpdate() method , it returned me the correct number of records counts that are inserted into the table.
    I cudn't able to understand that it is failing for case1.
    Can anybody tell the reason for this behaviour .......................
    Edited by: user11187328 on Mar 17, 2010 3:45 AM
    Edited by: user11187328 on Mar 17, 2010 3:46 AM

    hi,
    Thanks again for a correct reply but can u also tell me tht which jar i needs to included.
    There are so many jar files & should i remove old jar files or jvm auto picks the updated jar file.
    Following jar files are shown on the link:::
    ojdbc5.jar (1,996,228 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
    ojdbc5_g.jar (3,081,328 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
    ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
    ojdbc6_g.jar (3,401,519 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
    ojdbc5dms.jar (2,429,777 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc5dms_g.jar (3,101,875 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
    ojdbc6dms.jar (2,655,741 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc6dms_g.jar (3,423,263 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
    orai18n.jar (1,656,280 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
    demo.zip (603,363 bytes) - contains sample JDBC programs.

  • Getting a record count in a query using UNIQUE

    I need to know how to grab a record count for a query so I can pass it back into the recordset.
    This select query uses UNIQUE to rollup the 555 records to 125 unique rows.
    But how would I do a record count.
    Do I pass the query to a cursor and then count the records in the cursor?
    Please detail your help please.
    Thank you in advance.

    SELECT unique
         CE.DATE_OF_SERVICE AS DOS_FROM
         ,CE.SERVICE_END_DATE AS DOS_TO
         ,CE.EVENT_SERVICE AS SERVICE_TYPE
         ,CN.CREATE_DATE_TIME
         ,CN.CASE_NOTE_ID
         ,CN.CASE_ID
         ,CN.EVENT_ID
         ,CN.REASON
         ,CN.CREATOR_USER_ID AS CREATOR_ID_USED
         ,CN.ROWID AS ROW_ID
         ,(SELECT Retrieve_Note2(CN.CASE_ID,CN.CASE_NOTE_ID) from DUAL) AS NOTE
    FROM
         MEMBER_TO_PATIENT MTA,
         CARE_EVENT CE,
         CASE_NOTES CN
    WHERE
         MTA.SUBSCRIBER_LID = '1260016473015' AND
         MTA.CASE_ID = CN.CASE_ID AND
         CN.EVENT_ID = CE.EVENT_ID
    ORDER BY
         CN.CASE_NOTE_ID DESC

  • How to get the record count before fetch

    CREATE PACKAGE demo_cur_pkg AS
    TYPE EmpName IS RECORD (name VARCHAR2(10));
    TYPE cur_type IS REF CURSOR RETURN EmpName;
    PROCEDURE open_emp_cur (
    curs IN OUT cur_type,
    dept_num IN NUMBER);
    END;
    CREATE PACKAGE BODY demo_cur_pkg AS
    CREATE PROCEDURE open_emp_cur (
    curs IN OUT cur_type,
    dept_num IN NUMBER) IS
    BEGIN
    OPEN curs FOR
    SELECT ename FROM emp
    WHERE deptno = dept_num
    ORDER BY ename ASC;
    END;
    END;
    After this package has been stored, you can open the cursor curs by calling the open_emp_cur stored procedure from your Pro*C/C++ program, and FETCH from the cursor in the program. For example:
    sql_cursor emp_cursor;
    char emp_name[11];
    EXEC SQL ALLOCATE :emp_cursor; /* allocate the cursor variable */
    /* Open the cursor on the server side. */
    EXEC SQL EXECUTE
    begin
    demo_cur_pkg.open_emp_cur(:emp_cursor, :dept_num);
    end;
    EXEC SQL WHENEVER NOT FOUND DO break;
    for (;;)
    EXEC SQL FETCH :emp_cursor INTO :emp_name;
    printf("%s\n", emp_name);
    Any solutioon is welcome

    Fail to understand why you want to introduce exception processing - e.g. use methodA for less than 10,000 rows and use methodB for 10,000 and more.
    Why not use methodC - optimal support for fetching, irrespective of whether there are 1 row to fetch, or a 100,000 rows?
    There is no best way for fetching a small number of rows versus a different best way for fetching more rows. There is a single optimal method - and this remains the same irrespective of the number of rows being returned.

  • Get records count of all tables

    Hi ,
    I am trying to get the record count of all tables using dynamic query. I don't know how to put the value in placeholder. I tried the below code.
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
         CURSOR table_list
         IS
         select OBJECT_NAME from user_objects
         where object_type in ('TABLE')
         and object_name not like '%AUDIT_DDL%'
         AND object_name not like 'MD_%'
         AND object_name not like 'EXT_%'
         AND object_name not like 'STG_%'
         AND object_name not like 'SYS_%'
         AND object_name not like 'TMP_%'
         AND object_name not like 'TEMP_%'
         order by 1;
         v_count     NUMBER :=0;
         query_str VARCHAR2(1000);
    BEGIN
         FOR table_name IN table_list
         LOOP
              query_str :='SELECT COUNT(1) FROM  ' || table_name.OBJECT_NAME;
    dbms_output.put_line(query_str);
              dbms_output.put_line('Table Name:' || table_name.OBJECT_NAME );
              v_count:= execute immediate query_str;
              dbms_output.put_line('Table Name:' || table_name.OBJECT_NAME || ', Count ' || v_count );
         END LOOP;
    END;
    I know I am doing wrong in the bold lines. But not sure how to fix it. Please help. Thanks in advance.

    Hi,
    Welcome to the forum!
    What you posted is basically right, assuming you really want to do dynamic SQL t all.
    The only problem with
    961618 wrote:
              query_str :='SELECT COUNT(1) FROM  ' || table_name.OBJECT_NAME; would be if the object name included special characters (such as single-quotes) or lower-case letters. To avoid any possible problems, I would put the object name inside double-quotes:
    ...     query_str := 'SELECT COUNT (*) FROM "' || table_name.OBJECT_NAME
                                               || '"';
              v_count:= execute immediate query_str;
    The correct syntax is
    execute immediate query_str INTO v_count;V_count will be the number of rows in a single table. Keep another variable (say total_v_count) that keeps the total count so far.
    Do you really need dynamic SQL?
    SELECT     SUM (num_rows)     AS total_rows
    FROM     user_tables
    WHERE     table_name     NOT_LIKE '%AUDIT_DDL%
    AND     ...
    ;gets the same information, accurate as of the last time statistics were gathered, and some of the numbers may be approximate. Depending on how you use the results, that may be good enough for you. If you actually have 10,000,123 rows, and the query says you have 10,000,000, does it really matter?

  • How to get th displaye record count through SQL*Plus without result

    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);how to get the record count without resultset display in the sql*plus promt ...?
    plz help me....

    This is my earilier code
    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);
    Then i have tried to execute like this
    declare
    disp SYS_REFCURSOR;
    cv SYS_REFCURSOR;
    cnt number :=0;
    begin
    proc_name (input1, input2, :cv);
    FOR disp in cv --here cv is the set of record set
    LOOP
    --FETCH cv INTO disp;
    EXIT WHEN cv%NOTFOUND;
    cnt := cnt + 1;
    END LOOP;
    dbms_output.put_line(cnt);
    dbms_output.put_line(cv%rowcount);
    CLOSE cv;
    end;
    getting error...
    LOOP
    ERROR at line 8:
    ORA-06550: line 8, column 2:
    PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
    . ( % ; for
    The symbol "; was inserted before "LOOP" to continue.
    ORA-06550: line 13, column 2:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 13, column 27:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || bulk
    I have set of executable procedure script for exec procedure1(input1, input2 :cv); , exec procedure1(input1, input2 :cv);,.... like that. But i want only the record count, while we execute all these scripts in the sql promt...How to do that one.. ?

  • Getting OS File Record Count

    Hi,
    I've been looking for ways to get the record count(number of lines) of a txt file from a OS using a Oracle procedure without having to loop into the file line by line as on UTL_FILE.GET_LINE proc. If anyone has a one way method to get the number of lines of a OS file thru PLSQL without using loops, please let me know.
    I appreciate your inputs on this matter.
    Thiago Santana

    Hi,
    Simple example using external tables (I have an external directory called EXT_FILES where HR user can read and write; the test.txt file is also in this directory):
    File: test.txt
    1 hi
    2
    3 how
    4
    5    are
    6
    7
    8
    9
    10you.External table creation:
    CREATE TABLE test_ext (TEXT VARCHAR2(4000))
    ORGANIZATION EXTERNAL (
    TYPE oracle_loader
    DEFAULT DIRECTORY EXT_FILES
    ACCESS PARAMETERS (
      RECORDS DELIMITED BY NEWLINE
      NOBADFILE NODISCARDFILE NOLOGFILE
      FIELDS TERMINATED BY '0x0A'
      MISSING FIELD VALUES ARE NULL)
    LOCATION ('test.txt'))
    REJECT LIMIT unlimited;Test:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select count(*) from test_ext t;
      COUNT(*)
            10
    SQL>Regards,
    Edited by: Walter Fernández on May 11, 2009 11:35 PM - Adding line numbers to test file...

  • How to display a record count in a text field?

    I am trying to return a record count of a query and place that count in a text field on my search page in APEX. I have that text field defined under Items on the search page. How do I get a query record count to display in my text field?
    Thanks,
    John
    Edited by: user7381760 on Jan 22, 2009 3:47 PM

    Hi Dan,
    Thank you for your reply and yes I was able to select "Source Type" and "SQL Query". The SQL expression I used was:
    SELECT COUNT(ID) FROM master_table;
    This worked great to count the total number of records from the master_table. However what I am trying to do is to get a record count each time I complete a search from my search page. I have input fields on this page and a GO button which executes the query. The SQL query is location in one place under Regions/Display Point. My display field on my search page is named P16_COUNT2 and I was trying to make this work inside the main query code. I tryed something like this, COUNT(ID) INTO :P16_COUNT2, to pass the record count each time I execute the GO botton to P16_COUNT2 field. This I could not get to work. Any ideas how to proceed?
    Regards,
    John

Maybe you are looking for

  • Spinning ball cursor with FCP 6.0.1, OS 10.5, and Focusrite Saffire LE...

    Hi, I've had a problem now ever since I purchased and connected a Focusrite Saffire LE FW400 audio interface to my Intel MBP. I've had the same problem under both 10.4 and 10.5 with both iMovie '08 and FCP 6.0.1. In essence, whenever my FW400 audio i

  • Acrobat 9 standard re-install

    I have a version of Acrobat that is Acrobat 9 Standard that i'd like to load on a new Surface Pro 3. I have found an option on the Adobe web site to re-install version 9 professional. When i type in my serial number, it tells me "invalid". I need to

  • Toolbox Fonts

    Clicking ThinkVantage button starts toolbox, then I get an error "ThinkVantage Toolbox has detected a problem with your installed fonts, which will prevent this and (stops) I click the Repair Button and get Repair Failed. I have delete and reinstall

  • Computer not recognizing phone but iTunes does

    I know there have been several issues with Windows 7 not recognizing iPhones. iTunes does recognize my phone but when I try to sync it my computer does not recognize it. I went to the Device Manager which does show the Apple Mobile Device USB Driver.

  • Starting Adobe Photoshop Elements, the Editor returns the error message "Unable to continue because

    installed photoshop elements 8.0 with Windows 7. Worked excellent till two days ago. I got the error message "Unable to continue because of hardware or system error. Removed programm and re-installed from disk, no results!