I want a count of distinct rows in a table

I want a count of distinct rows in a table through a single query -- is it possible?
eg.
table-
create table ch1 (a int, b int, c int, d int)
insert ch1 values (1,1,1,1)
insert ch1 values (2,2,2,2)
insert ch1 values (1,1,1,1)
insert ch1 values (2,2,2,2)
insert ch1 values (1,3,4,5)

hi,
create table ch1 (a int, b int, c int, d int) ;
insert into  ch1 values (1,1,1,1);
insert into  ch1 values (2,2,2,2);
insert  into  ch1 values (1,1,1,1);
insert into  ch1 values (2,2,2,2);
insert into  ch1 values (1,3,4,5);
SQL> select * from ch1;
         A          B          C          D
         1          1          1          1
         2          2          2          2
         1          1          1          1
         2          2          2          2
         1          3          4          5
SQL> select distinct * from ch1;
         A          B          C          D
         1          1          1          1
         1          3          4          5
         2          2          2          2
SQL>
  1* select count(*) from( select distinct * from ch1)
SQL> /
  COUNT(*)
         3
SQL> ed
Wrote file afiedt.buf
  1   select count(*) from (select a,b,c,d  from ch1
  2* group by a,b,c,d)
SQL> /
  COUNT(*)
         3
SQL> Thanks,
P Prakash

Similar Messages

  • How can count no of rows in all tables in one schema

    hi all
    i want to cound no of rows in my schema ( all tables)
    eg. i have 36 tables
    i want to know no of rows in every tables in only one query through sql or plsql
    how can i do..
    regards
    mohammadi
    Message was edited by:
    Mohdidubai52

    hi
    thanx for ur reply
    but i got error....
    SQL> ED
    Wrote file afiedt.buf
    1 DECLARE
    2 v_rowNo NUMBER := 0;
    3 v_sum NUMBER := 0;
    4 v_tableName VARCHAR2(100);
    5 CURSOR c1 IS
    6 SELECT table_name
    7 FROM user_tables;
    8 BEGIN
    9 FOR counter IN c1 LOOP
    10 DBMS_OUTPUT.PUT_LINE(counter.table_name);
    11 EXECUTE IMMEDIATE 'SELECT COUNT(1) FROM ' || counter.table_name INTO v_ro
    wNo;
    12 v_sum := v_sum + v_rowNo;
    13 END LOOP;
    14 DBMS_OUTPUT.PUT_LINE('Number of rows: ' || v_sum);
    15* END;
    16 /
    DECLARE
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 11
    again
    thanx
    regards
    Mohammadi

  • Display distinct rows from Oracle table without using "DISTINCT" keyword.

    How to retrieve distinct rows from oracle table without using 'DISTINCT' keyword in SQL?
    Thanks in advance.
    Mihir

    Welcome to the forum.
    Besides GROUP BY you can use UNIQUE instead of DISTINCT as well, but that's probably not wanted here ;) , and the ROW_NUMBER() analytic:
    SQL> create table t as
      2  select 1 col1 from dual union all
      3  select 1 from dual union all
      4  select 2 from dual union all
      5  select 3 from dual union all
      6  select 4 from dual union all
      7  select 4 from dual;
    Table created
    SQL> select col1 from t;
          COL1
             1
             1
             2
             3
             4
             4
    6 rows selected
    SQL> select distinct col1 from t;
          COL1
             1
             2
             3
             4
    SQL> select unique col1 from t;
          COL1
             1
             2
             3
             4
    SQL> select col1 from t group by col1;
          COL1
             1
             2
             3
             4
    SQL> select col1
      2  from ( select col1
      3         ,      row_number() over (partition by col1 order by col1) rn
      4         from   t
      5       )
      6  where rn=1;
          COL1
             1
             2
             3
             4

  • Counting all the rows in a table

    I've just come across what I think is a big oversight in the Power Query UI: it doesn't seem to be possible to find the total number of rows in a table using just the functionality available in the UI. I can do this very easily if I write my own expression
    using Table.RowCount(), but I would have expected to be able to do this through the UI. At the moment, when I go to the Group By dialog (which is where I'd expect to be able to do this) and delete all the columns in the Group By section the OK button gets
    greyed out. 
    Am I missing something here?
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy and run
    public SQL Server and BI training courses in the UK

    Hi Miguel,
    No, what I was talking about was to be able to use the Group By dialog and have no column to group by - that's to say, I'd just want to be able to count the number of rows in a table (or return the sum of all values in a column, or the min/max etc) and return
    a single value. I know I could do this by inserting an artificial column that only contains one distinct value, and using that in the Group By, or by writing my own expression that uses Table.RowCount(), but it seems like a very basic operation that should
    be easier to do in the UI.
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Count of records/rows in a Table

    Hi
    This could be a basic question , but i don't have an idea how to do that .
    Could you please tell me , how get an count of records/rows in a specific table ?
    Thank you
    Luke

    sb92075 wrote:
    It takes time to get count of records if the table size is hugCan YOU count to 1000000000000000000 as quickly as you count to 10?????????????????????????
    If it takes you longer to count many things, why do you expect Oracle to do better than you?Really??
    Let's try some counts and see.
    First off, let's count a few 1000 rows.
    SQL> set timing on
    SQL> select count(*) from all_objects;
      COUNT(*)
         45045
    Elapsed: 00:00:17.08So 17 seconds for 45,000 rows.
    Now if you're logic is correct, counting let's say a few billion rows, should take an hour? Perhaps more?
    Here's what I see on one of my larger tables:
    SQL> select count(*) from daily_xxxxxxx;
      COUNT(*)
    2569780329
    Elapsed: 00:00:10.03Oops... it is faster.
    Get a clue!I hereby sincerely apologise that my database does not adhere to your fine logic that says it should take a few hours - I will speak disapprovingly to the CBO for allowing the 2nd select count (on the same database) to be faster than the 1st select count. I will even use the backchannel to inform Larry that this is not acceptable.
    Of course, this is assuming that you do not have your head stuck up somewhere and are indeed correct that it takes a "+looooonnngggg+" time to count lots of rows.
    !http://smileyicons.net/smilies/actions1.gif!

  • Distinct rows from two tables linked by a third one

    Hi,
    I need to write an SQL sentence to bring a group of DISTINCT rows, each row in a form of: A.X, A.Y, C.IDBOLETA. Tables A and C are linked through the table C, as follow:
    Table A: INDUSTRIAGEO
    NIT VARCHAR2(20) NOT NULL,
    CORRELAIGEO NUMERIC(2) NOT NULL,
    NOMBREAGENCIA VARCHAR2(255) NOT NULL,
    DIRECCION VARCHAR2(255),
    X NUMERIC(12,8) NOT NULL,
    Y NUMERIC(12,8) NOT NULL,
    CONSTRAINT PKGEOINDUST PRIMARY KEY(NIT, CORRELAIGEO),
    CONSTRAINT FKGEOINDUST FOREIGN KEY(NIT) REFERENCES INDUSTRIA(NIT)
    Table B: ANALISIS
    IDANALISIS NUMERIC(12) NOT NULL,
    NIT VARCHAR2(20) NOT NULL,
    CORRELAIGEO NUMERIC(2) NOT NULL,
    FECHA DATE NOT NULL,
    IDINSPECTOR NUMERIC(4) NOT NULL,
    CONSTRAINT PKANALISIS PRIMARY KEY(IDANALISIS),
    CONSTRAINT FKANALGEOI FOREIGN KEY(NIT, CORRELAIGEO) REFERENCES INDUSTRIAGEO(NIT, CORRELAIGEO),
    CONSTRAINT FKANALINSP FOREIGN KEY(IDINSPECTOR) REFERENCES INSPECTOR(IDINSPECTOR)
    Table C: ANALISISBOLETA
    IDANALISIS NUMERIC(12) NOT NULL,
    CORRELAANALISIS NUMERIC(2) NOT NULL,
    IDBOLETA NUMERIC(12) NOT NULL,
    IDCATEGORIAINDUSTRIA NUMERIC(3) NOT NULL,
    CONSTRAINT PKANALBOLE PRIMARY KEY (IDANALISIS, CORRELAANALISIS),
    CONSTRAINT UKANALBOLE UNIQUE (IDBOLETA),
    CONSTRAINT FKANALBOLE FOREIGN KEY(IDANALISIS) REFERENCES COPS.ANALISIS(IDANALISIS),
    CONSTRAINT FKANALCATI FOREIGN KEY(IDCATEGORIAINDUSTRIA) REFERENCES COPS.CATEGORIAINDUSTRIA(IDCATEGORIAINDUSTRIA)
    Thanks for your help!!!
    Mario

    Perhaps
    select distinct a.x,a.y,c.idboleta
      from industriaego a,
           cops.analisis b,
           analisisboleta c
    where a.nit = b.nit
       and a.correlaigeo = b.correlaigeo
       and b.idanalisis = c.idanalisisRegards
    Etbin
    Edited by: Etbin on 4.5.2010 21:42
    the copy/paste elf did it again: b.correlaigeo instead of b.a.correlaigeo (as in the OP's comment below)

  • Count number of rows in a table

    Hi,
    I have a requirement. I want to frame a SQL, which takes schema name as input and returns tables owned by that schema and number of rows inside a particular table.
    A Sample output:
    ===========
    Table            No. of Rows
    ~~~~          ~~~~~~~~
    A                    123
    B                    126
    C                    234
    .Can somebody help me in framing a query for the same.
    Regards,

    hoek wrote:
    But you could use this script:
    http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html
    Laurent's solution most likely was published before IOT. Anyway, IOT ovwerflow tables must be excluded. Otherwise:
    SQL> select  table_name,
      2          to_number(
      3                    extractvalue(
      4                                 xmltype(
      5                                         dbms_xmlgen.getxml('select count(*) c from '||owner || '.' || table_name)),'/ROWSET/ROW/C')) cou
      6    from  dba_tables
      7    where owner = 'OE'
      8  /
    ERROR:
    ORA-19202: Error occurred in XML processing
    ORA-25191: cannot reference overflow table of an index-organized table
    ORA-06512: at "SYS.DBMS_XMLGEN", line 176
    ORA-06512: at line 1
    no rows selected
    SQL> select  table_name,
      2          to_number(
      3                    extractvalue(
      4                                 xmltype(
      5                                         dbms_xmlgen.getxml('select count(*) c from '||owner || '.' || table_name)),'/ROWSET/ROW/C')) count
      6    from  dba_tables
      7    where owner = 'OE'
      8      and nvl(iot_type,'X') != 'IOT_OVERFLOW'
      9  /
    TABLE_NAME                          COUNT
    CUSTOMERS                             319
    WAREHOUSES                              9
    ORDER_ITEMS                           665
    ORDERS                                105
    INVENTORIES                          1112
    PRODUCT_INFORMATION                   288
    PRODUCT_DESCRIPTIONS                 8640
    PROMOTIONS                              2
    PRODUCT_REF_LIST_NESTEDTAB            288
    SUBCATEGORY_REF_LIST_NESTEDTAB         21
    10 rows selected.
    SQL>  SY.

  • Select count(*) for each row of a table

    Hello All,
    Following query gives a statistics for each user (how many items he owns, home many tickets authored, how many objects he is subscribed to etc...)
    select auser.userid,
    (select count(*) from item where owner like '%' || auser.id || '%') ITEM_OWNER_CNT,
    (select count(*) from tkt where originator = auser.id) TKT_ORIGINATE_CNT,
    (select count(*) from tkt where assigned_to = auser.id) TKT_QA_CNT,
    (select count(*) from tkt where create_user = auser.id) TKT_AUTHOR_CNT,
    (select count(*) from subscriptions where subscriber_id = auser.id) SUBSCRIPTION_CNT
    from
    user auser
    I was not happy with the performance of this query, so I tried the same using group by. The performance was even worse.
    Is there any other option for me to try? Please advice.
    Thanks,
    Sathish

    Hi, Sathish,
    As SBH said, a lot depends on your data. Please post some sample data (CREATE TABLE adn INSERT statemetns) for all tables, and the results you want from that data. Describe and give examples of any relationships that are not one-to-one..
    You probably want to do joings, like SBH suggested, rather than scalar sub-queries.
    The connection between the auser and item tables
    (select count(*) from item where owner like '%' || auser.id || '%') ITEM_OWNER_CNT,is very suspicious. Perhaps the item table is poorly designed, and the query would be faster if that table were changed. Is changing the design of the item table an option?
    You should be able to get all the information from the tkt table in one pass. It looks like you need to unpivot the data, so instead of one row per ticket (with 3 different people connected to it), there are 3 rows per ticket, each with only 1 person referenced. This is not necessarily a bad table design. Unpivoting, even more than most other things, depends on your database version, so you'll have to tell what version of Oracle you're using.

  • Create a counter for the rows in a table using script editor?

    Hi ,
    I want to add afield in a particular table  with first field is its serial number . How to use scripting editor to fill the serial number ?
    How to create a counter ?
    Edited by: Rajan.Dexter9 on Jan 30, 2012 9:40 PM

    Hello Rajan,
    Create a field in the table and name it as 'SERIAL'.  Create a variable called 'count' with default value as 0.  Now in script editor, for javascript language and calculate event, write the following script.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    for (var i=0; i <= fields.length-1; i++)
         if (fields.item(i).name == "SERIAL")
              count.value = count.value + 1;
                     this.rawValue = count.value;     

  • Select Distinct rows from multiple tables

    Table 1 is a List of Vendors - VID, PID, VName, VAddress, VPhone
    Table 2 is a list of Products - PID, PName, PPrice, PWeight, PColor
    I need to produce a list of unique PID's showing the following fields - PID, VName, PName, PColor
    So, Here is my failed attempt:
    SELECT P.PID, V.VName, P.PName, P.PColor
    FROM Products P INNER JOIN Vendors V ON P.PID = V.PID
    GROUP BY P.PID

    If you post DDL, sample data and your desired output based on that sample data, someone can probably create a query that does what you want. 
    And I have to tell you that Table 1 is not a list of vendors unless you have a system where a vendor provides one and only one product - something that is unusual. If your system is one where a vendor should provide any number of products (and if a product
    can be provided by any number of vendors), you have some fundamental schema issues to correct.
    Lastly, there are sticky posts at the top of the forum that provide suggestions for posting questions.  Please have a look - help your readers help you by providing sufficient information.  Phrases such as "failed" or "does not work"
    do not provide any useful detail.  And one good rule of thumb - any time you feel you need to use (or say) distinct in a query is an indication that something somewhere is wrong.  It could be a schema issue, a misunderstanding of the schema or the
    goal, an incorrect query, etc.  There are few instances where distinct is needed in a well-defined and implemented system, IMO.

  • Select Distinct rows from 3 tables

    I need to retrive information from 3 different tables by applying a specific condition.
    I have the following query which works fine for retrieving desired data from 2 tables.
    SELECT
    a.userId
    FROM userGeneral
    a inner
    join userSpecific
    b on a.userId
    = b.userId
    WHERE
    a.userActive
    = 1
    userId
    111
    222
    333
    444
    Now I have a third table called userMgr which may contain multiple records for each userId with a corresponding mgrId value. It has a primary key identity column called userRecId and I would like to fetch the
    mgrId value corresponding to the MAX(userRecId) for the matching userId.
    userRecId  |  userId  | mgrId
    1 |    111    | 123
    2 | 111 | 234
    3 | 111 | 345
    4 | 333 | 345
    5 | 333 |  456
    The resultset should be as follows after joining all the 3 tables.
    userId | mgrId
    111 | 345
    222 | NULL
    333 | 456
    444 | NULL
    Can anyone please help with this query.

    I need to retrive information from 3 different tables by applying a specific condition.
    I have the following query which works fine for retrieving desired data from 2 tables.
    SELECT
    a.userId
    FROM userGeneral
    a inner
    join userSpecific
    b on a.userId
    = b.userId
    WHERE
    a.userActive
    = 1
    userId
    111
    222
    333
    444
    Now I have a third table called userMgr which may contain multiple records for each userId with a corresponding mgrId value. It has a primary key identity column called userRecId and I would like to fetch the
    mgrId value corresponding to the MAX(userRecId) for the matching userId.
    userRecId  |  userId  | mgrId
    1 |    111    | 123
    2 | 111 | 234
    3 | 111 | 345
    4 | 333 | 345
    5 | 333 |  456
    The resultset should be as follows after joining all the 3 tables.
    userId | mgrId
    111 | 345
    222 | NULL
    333 | 456
    444 | NULL
    Can anyone please help with this query.
    try this:
    select userId,userRecId,
    from userMgr,
    (SELECT a.userId, max(a.userRecId)
    FROM userGeneral a inner join userSpecific b on a.userId = b.userId
    group by a.userId
    WHERE a.userActive = 1) table1(userId,userRecId)
    where userMgr.userRecId = table1.userRecId

  • Dynamically want to display a row of a table in BI Publisher

    Hi Gurus,
    Could any body help me regarding the following thing .
    I want to display a complete row of a table as a first record(on thenext page) if the particular Group having some data goes to next page .
    This Grouph is the inner group. I have tried in using following way but it didnot help me .
    I declare 2 variable as "present" and "prevoius and used <?xdoxslt:set_variable($_XDOCTX, 'count', <fo:page-number/>)?> to assigned value for both the variable . After that i have used <?:if $present != $rprevous?> Print the row else donot print.
    Please i need a urgent help for this and will appriciate to you guys.

    try BI publisher forum.
    --Prasanna                                                                                                                                                                                                                           

  • Count number of rows in table

    Hi!
    1. How can you through ABAP and select statements count the number of rows in one table?
    2. I want to read all rows from one table to an internal table. Can this be done dynamically or do I first have to count the number of rows in the table and then declare an internal table with the number of rows counted.
    regards
    Baran

    HI,
    No you don't have to count number of rows first, Internal table size will increase dynamically. you have to declare this with initial size like this.
    <b>data: itab type standard table of bkpf initial size 0.
    SELECT * FROM bkpf into table itab.</b>
    All values from bkpf will be inserted into table internal table itab.
    Regards,

  • Count of selected rows

    i want to count the selected rows or count of this executed query
    error as Column Ambiguously defined
    SELECT hp.party_name CustomerName,
      COUNT(csi.incident_number) SRNumbercount,
      csi.incident_number SRNumber,
      csi.incident_date SRDate,
      csi.close_date SRCloseDate,
      csi.summary Summary,
      csi.problem_code,
      csi.incident_address SRAddress,
      count(rowid)
      FROM hz_parties hp,
      hz_cust_accounts hca,
      hz_contact_points hc,
      cs_incidents_all_b csi,
      ar_lookups arl
    WHERE hca.cust_account_id   =csi.account_id
    AND hp.party_type          IN ('PERSON','ORGANIZATION')
    AND hp.status               ='A'
    AND hp.party_id             = hca.party_id
    AND hca.status              ='A'
    AND hp.party_id             =hc.owner_table_id(+)
    AND hc.owner_table_name(+)  ='HZ_PARTIES'
    AND hp.party_id             =hca.cust_account_id
    AND hc.contact_point_type(+)='PHONE'
    AND hc.primary_flag(+)      ='Y'
    AND hc.status(+)            ='A'
    AND arl.lookup_type(+)      = 'PHONE_LINE_TYPE'
    AND arl.lookup_code(+)      = hc.phone_line_type
    AND hp.party_name LIKE :partyName
    AND csi.incident_date BETWEEN to_date('01-JAN-2005','DD-MON-YYYY') AND to_date(:fromsrdate,'DD-MON-YYYY')
    GROUP BY hp.party_name,csi.incident_number,csi.incident_date,csi.close_date,csi.summary,csi.problem_code,csi.incident_address

    hi,
    SELECT hp.party_name CustomerName,
      COUNT(csi.incident_id) SRNumbercount,
      csi.incident_number SRNumber,
      csi.incident_date SRDate,
      csi.close_date SRCloseDate,
      csi.summary Summary,
      csi.problem_code,
      csi.incident_address SRAddress
      FROM hz_parties hp,
      hz_cust_accounts hca,
      hz_contact_points hc,
      cs_incidents_all_b csi,
      ar_lookups arl
    WHERE hca.cust_account_id   =csi.account_id
    AND hp.party_type          IN ('PERSON','ORGANIZATION')
    AND hp.status               ='A'
    AND hp.party_id             = hca.party_id
    AND hca.status              ='A'
    AND hp.party_id             =hc.owner_table_id(+)
    AND hc.owner_table_name(+)  ='HZ_PARTIES'
    AND hp.party_id             =hca.cust_account_id
    AND hc.contact_point_type(+)='PHONE'
    AND hc.primary_flag(+)      ='Y'
    AND hc.status(+)            ='A'
    AND arl.lookup_type(+)      = 'PHONE_LINE_TYPE'
    AND arl.lookup_code(+)      = hc.phone_line_type
    AND hp.party_name LIKE :partyName
    AND csi.incident_date BETWEEN to_date('01-JAN-2005','DD-MON-YYYY') AND to_date(:fromsrdate,'DD-MON-YYYY')
    GROUP BY hp.party_name,csi.incident_number,csi.incident_date,csi.close_date,csi.summary,csi.problem_code,csi.incident_address
    below is the output of above query here the output row-count is 116 rows
    Business World     1     38560     29-JAN-09                    
    Business World     1     38066     04-AUG-08                    
    Business World     1     38564     29-JAN-09                    
    Business World     1     38578     29-JAN-09                    
    Business World     1     39646     31-MAY-09                    
    Business World     1     39638     30-MAY-09                    
    Business World     1     39810     17-AUG-09                    
    Business World     1     39558     30-MAY-09                    
    Business World     1     39588     30-MAY-09                    
    Business World     1     39640     31-MAY-09                    
    Business World     1     39680     31-MAY-09                    
    Business World     1     39564     30-MAY-09                    
    Business World     1     39824     19-AUG-09                    
    Business World     1     39848     20-AUG-09                    
    Business World     1     38674     31-JAN-09                    
    Business World     1     38590     29-JAN-09                    
    Business World     1     38678     02-FEB-09                    
    Business World     1     38536     28-JAN-09                    
    Business World     1     39664     31-MAY-09                    
    Business World     1     39678     31-MAY-09                    
    Business World     1     39560     30-MAY-09                    
    Business World     1     39580     30-MAY-09                    
    Business World     1     39618     30-MAY-09                    
    Business World     1     39636     30-MAY-09                    
    Business World     1     39554     20-MAY-09                    
    Business World     1     39650     31-MAY-09                    
    Business World     1     39660     31-MAY-09                    
    Business World     1     39528     19-MAY-09                    
    Business World     1     38666     31-JAN-09                    
    Business World     1     39586     30-MAY-09                    
    Business World     1     39604     30-MAY-09                    
    Business World     1     39622     30-MAY-09                    
    Business World     1     39630     30-MAY-09                    
    Business World     1     39644     31-MAY-09                    
    Business World     1     39652     31-MAY-09                    
    Business World     1     39656     31-MAY-09                    
    Business World     1     39648     31-MAY-09                    
    Business World     1     39658     31-MAY-09                    
    Business World     1     39202     16-MAR-09                    
    Business World     1     39628     30-MAY-09                    
    Business World     1     39674     31-MAY-09                    
    Business World     1     39676     31-MAY-09                    
    Business World     1     38704     02-FEB-09                    
    Business World     1     38592     29-JAN-09                    
    Business World     1     39614     30-MAY-09                    
    Business World     1     39642     31-MAY-09                    
    Business World     1     39662     31-MAY-09                    
    Business World     1     39812     17-AUG-09                    
    Business World     1     39590     30-MAY-09                    
    Business World     1     39600     30-MAY-09                    
    Business World     1     39602     30-MAY-09                    
    Business World     1     39612     30-MAY-09                    
    Business World     1     39620     30-MAY-09                    
    Business World     1     39634     30-MAY-09                    
    Business World     1     39826     19-AUG-09                    
    Business World     1     39874     25-AUG-09                    
    Business World     1     39828     19-AUG-09                    
    Business World     1     39850     20-AUG-09                    
    Business World     1     38720     03-FEB-09                    
    Business World     1     38660     31-JAN-09                    
    Business World     1     38682     02-FEB-09                    
    Business World     1     38676     02-FEB-09                    
    Business World     1     38698     02-FEB-09                    
    Business World     1     38656     31-JAN-09                    
    Business World     1     39574     30-MAY-09                    
    Business World     1     39584     30-MAY-09                    
    Business World     1     39578     30-MAY-09                    
    Business World     1     39562     30-MAY-09                    
    Business World     1     39672     31-MAY-09                    
    Business World     1     39550     19-MAY-09                    
    Business World     1     39822     19-AUG-09                    
    Business World     1     24354     24-MAY-05                    
    Business World     1     38588     29-JAN-09                    
    Business World     1     38670     31-JAN-09                    
    Business World     1     38680     02-FEB-09                    
    Business World     1     38570     29-JAN-09                    
    Business World     1     39596     30-MAY-09                    
    Business World     1     39610     30-MAY-09                    
    Business World     1     39592     30-MAY-09                    
    Business World     1     39872     25-AUG-09                    
    Business World     1     39852     20-AUG-09                    
    Business World     1     39866     24-AUG-09                    
    Business World     1     38546     29-JAN-09                    
    Business World     1     38684     02-FEB-09                    
    Business World     1     38668     31-JAN-09                    
    Business World     1     38534     28-JAN-09                    
    Business World     1     38088     07-AUG-08                    
    Business World     1     38548     29-JAN-09                    
    Business World     1     39556     21-MAY-09                    
    Business World     1     39594     30-MAY-09                    
    Business World     1     39654     31-MAY-09                    
    Business World     1     39668     31-MAY-09                    
    Business World     1     39522     18-MAY-09                    
    Business World     1     39632     30-MAY-09                    
    Business World     1     39570     30-MAY-09                    
    Business World     1     39572     30-MAY-09                    
    Business World     1     39582     30-MAY-09                    
    Business World     1     39626     30-MAY-09                    
    Business World     1     39552     19-MAY-09                    
    Business World     1     39524     18-MAY-09                    
    Business World     1     39854     20-AUG-09                    
    Business World     1     39926     26-AUG-09                    
    Business World     1     38696     02-FEB-09                    
    Business World     1     38558     29-JAN-09                    
    Business World     1     38456     19-JAN-09                    
    Business World     1     38654     30-JAN-09                    
    Business World     1     39566     30-MAY-09                    
    Business World     1     39576     30-MAY-09                    
    Business World     1     39606     30-MAY-09                    
    Business World     1     39616     30-MAY-09                    
    Business World     1     39624     30-MAY-09                    
    Business World     1     39666     31-MAY-09                    
    Business World     1     39568     30-MAY-09                    
    Business World     1     39598     30-MAY-09                    
    Business World     1     39670     31-MAY-09                    
    Business World     1     39846     20-AUG-09                     i want the count column should be the number of rows we get as output

  • Get the count of rows in a table control

    Hi Experts,
      How do I get the count of the rows in a table control during run time.
    I am developing a BDC in which I have to check all entries in a table control.
    My requirement is to get the total number of rows in a table control dynamically.
    Thanks
    Kumar

    Hi,
    Use a variable when u r passing the records from the internal table to the screen fields
    and display the same.
    I think this idea may help u.
    And pls explain me ur requirement clearly.
    Refer to the following link this may help u.
    http://sapabapnotes.blogspot.com/2008/03/working-with-ecatt-extended-computer.html
    Reward if helpful.
    Jagadish

Maybe you are looking for