By which method,i can get  the no of rows in the record set?

Does anyone help me that by which method,i can get the no of rows in the record set?
now i use next() to check whether the next record is available or not?

shashi_rajak wrote:
under Practice Exercise #1 heading :
there is a statement.
"Now, the COUNT function does not need to retrieve all of the fields from the table (ie: employee_number, employee_name, and salary), but rather whenever the condition is met, it will retrieve the numeric value of 1. Thus, increasing the performance of the SQL statement."And have you ever tried it? Or do you simply blindly believe everything you read? And what sort of "authority" is "tech on the net"?
P.S. A quick test on Oracle (and you must do each query at least twice throwing away the first result, as Oracle always caches things which will have an effect, and averaging the remaining attempts).
count(*) -- 1 min 17 secs for 35,311,978 rows
count(1) -- 1 min 19 secs for 35,311,978 rows
Edit: And the table has 46 columns.

Similar Messages

  • From which table we can get the Role of the User in SRM

    Hi  All,
        I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid.
    Thanks
    Channappa Sajjanar

    Hi
    t- code
    SUIM->rOLES->BY USER ASSIGNMENT
    SELECT WITHASSIGNMENT OF USER = username
    AS A OUTPUT YOU MAY GET ROLE ASSIGNED TO THAT USER.
    if you want which FM - you debug while executing this report.
    regards
    Muthu

  • From which table i can get the long text

    Hi All
    I have created some long text through function module CREATE_TEXT And i am able to see the text in the transaction .
    My requirement is from which table i can get these stored long text???
    Any suggestions please.
    Thanks

    Appreciate your answers.
    I have checked the both the fields stxh as well as stxl but i am not able to find any text fields out there.
    My actual requirement is some third party software needs to b mapped the table fields in order to import it.
    So if i know the table fields that would be easier.
    Can you tell me y we can not read it from the tables?
    Thanks,
    @run.

  • I want to buy an iphone in thailand,pattaya city,so which store I can get the original mobile?, I want to buy an iphone in thailand,pattaya city,so which store I can get the original mobile?

    I want to buy an iphone mobile in pattaya city,thailand,so which store I can get the original one ? please advice me.Also I need idea about price.

    I dont know if you know the procedure in Canada and Turkey. Wind mobile wasnt supporting Iphones until they decided to let people use Iphone 5s with their $40 plan.And as i know, Turkey is the only country that asks you to register the imei on your passport to use it. So, most of people did not know it. so procedures are changing country by country. Are you sure that If I buy an Iphone 5s from a canadian apple store, use it with my wind mobile line and the turkish line in Turkey?

  • From which table we can get cat_guid depending upon the guid of a tr.ticket

    Hi Experts,
    I have to find the cat_guid depending upon the guid which is in crmd_orderadm_h table to retrive the fields categeorization module/element/type maintained in the service ticket.
    Please tell me from which table we can get cat_guid depending upon the guid of perticular trouble ticket.
    points will be rewarded if helpful.
    regards,
    Ezal

    Hi Ezal
    Pass the GUID (CRMD_ORDERADM_H) to Function Module CRM_ORDER_READ to retrieve the required values.
    I think this should do the trick.
    Reward with points if helpful
    Regards
    Arden

  • In which table I can get the Contact full name(First name and Last name)

    Hi,
    In  which table, I can get the field for Contact Person Full  name. In many tables Iam seeing FIRST NAME and LAST NAME as two fields.
    Regards
    Babu.

    You can use FM "CRM_BUPA_DESCRIPTION_READ".
    regard,
    vijay.

  • I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    There is about 6.9  GBs of free space on an 8 GB Touch for data storage. That translates to roughly 23 of your average albums.
    Holds up to 1760 songs is based on the size of an average track which is about 3 to 4 MBs, whereas your albums have tracks averaging more like 25 MBs per track. I sort of doubt your average album holds what would be about 5 hours.

  • Which Funtion module can get print parameter in the background?

    Hi all,
    I know the FM"GET_PRINT_PARAMETERS"can get the print parameter, but I find it can't get the print parameter in background. Does anybody know Which Funtion module can get print parameter in the background?
    Thanks in advance!
    Nina

    Hi Nina,
    This is text copied from SAP HELP.
    FU GET_PRINT_PARAMETERS
    Text
        Read, determine, change spool print parameters and archive parameters
      Functionality
        The function module GET_PRINT_PARAMETERS is used to define, modify and
        display the print and archive parameters. Using this function module is
        the only correct way to modify a print or archive parameter record. The
        print parameters are closely related and contain a check total. This
        check total becomes invalid if any of the print parameters are changed
        and causes a runtime error when the print parameters are used later.
        The module recognizes the following modes (values of parameter MODE):
        'PARAM'              Normal case. Define the print parameters for the
                             current program. The values that are not defined
                             are specified from the user master record or are
                             assigned default values. The print parameter screen
                             displays the PRINT key. This mode is used
                             if the MODE parameter is not specified.
        'PARAMSEL'           Like PARAMS, except that the print parameter screen
                             includes an option to activate the selection
        screen.
        'BATCH'              Define the print parameters for a background job.
                             In this mode, the name of the report to be started
                             is passed with the REPORT parameter.The REPORT
                             statement of the specified report is checked for
                             LINE-SIZE and LINE-COUNT definitions. These
                             definitions are passed as default specifications.
                             Furthermore, the SAVE key is offered
                             instead of the PRINT key in this mode.
    Check the BATCH MODE.

  • From which table I can get Vendor characteristic values ?

    Hi Everybody,
    From Which table I can get <b>Vendor Characteristic values from Vendor classification ?</b>
    Thanks & Regards,
    Nagaraju Maddi

    Hi
    Check the Tables
    CABN and AUSP
    or use the following
    Use the following BAPI's:
    BAPI_OBJCL_GETDETAIL
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    Reward points for useful Answers
    Regards
    Anji

  • In which table i can get original PIR qty.

    Dear Gurus,
                        i upded my PIR  qty in MD61. PIR qty automatically is keeps  redusing  after outbound process. in which table i  can get  the original PIR qty.
    regards
    Poste.

    Hi,
    you can check tables
                        PBIM                    Independent requirements for material
         PBED                    Independent requirement data
         PBHI                    Independent requirement history
         PBIV                    Independent requirement index
         PBIC                    Independent requirement index for customer req.
    Regards
    SANIL

  • Which table i can get BED and ECS+SHEC values

    Hi all
    which table i can get BED and ECS+SHEC values and how i link to PO number..
    plz help me
    thanks
    ramesh

    Hi
    please search before you post the question ,
    this query is discusssed many times in the forum
    [Searching|http://lmgtfy.co/?q=sapexcise%20table]
    for excise check table J_1IEXCHDR for header
    J_1IEXCDTL for item excise

  • From which table i can get Customer No, Cust Ref, Contact name

    Hi CRM Experts,
    I want some fields ie (Customer Number, Customer Reference, Contact Name, Account Manager) from which table i can get this fields according to the Object_id.
    Provide any Tables names or Functional Module

    Hello Santu,
    To get this info in the Sales order, following steps ways you can go:
    1. Get Sales Order header GUID from table CRMD_ORDERADM_H,  as you have OBJECT_ID.
    2. Get the Sales order details by passing Header GUID to FM CRM_ORDER_READ and the exporting parameter table ET_PARTNER will give the parnter details of the Sales order. Read this ET_PARTNER table with partner function 0000001 i.e. sold to party which  is customer number and check the  ET_SALES Table where in PO_NUMBER_SOLD field will be refering to customer ref may be item level or header level depends on business,
    3. regarding the Contact name..check what is business requirement whether end customer contact or contact person of the customer.
    Hope it will help,
    Regards,
    Arjun
    <b>Reward points if it helps,</b>

  • From which table i can get all activities ?

    I can get all active processes use below sql, select * from fuego_depproc a where a.fuego_status != 'D', but i don't know from which table i can get all activities of each process, who can tell me ? thanks.

    I don't think there is a very easy way to do that.... The Directory doesn't define the activities of a process, only the process itself, and the engine only cares about the where the instances currently are....
    One way I can think of, is use the Directory table FUEGO_PROCDEF_SOURCE and get the xml, then parse that and strip out the activity names...
    HTH,
    -Kevin

  • HT4623 ios 6 and want to down grade to ios5 kindly confirm which methods i can do this

    ios 6 and want to down grade to ios5 kindly confirm which methods i can do this
    thank you in advance for your assistance,I look forward to your prompt response

    I am unable to to make or receive calls althought i reset the phone as well as the network setting.In addition to the above i contacted vodaphone  and they mentioned everything is fine with the sim card.Any other suggestions???

  • In which method i can upload data to two transactions at a time and how ?

    Hi,
    Can any body tell me  <b>In which method i can upload datas to two transactions at a time and how</b>
    Pls tell me the steps if possible.
    Thanks
    Prabhudutta

    Hi,
    I hope u are talking abt BDC,
    If it is BDC's Then you can use both the methods.
    Call Transaction or
    Session Method.
    Ex ..if already a vendor exists then call transaction xk02
    if vendor no is not yet created then call transaction xk01.
    hope this helps.
    santhosh

Maybe you are looking for

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all, i have added one custom field in table COEP through include CI_COBL . when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document and through BADI AC_DOCUMENT i m updat

  • Blocking viewing jpg images on received & filed sent e-mails

    jpg images on all e-mails are blocked and message "loading, if taking too long Click Here " this opens window " jpg image file do you want FF to Open with Windows picture viewer(default) or Save. It will then download the image via Download Window. (

  • L7555 all in one printer says rear access panel is open, its not

    Hp officejet pro L7555 all in one printer.  I had a paper jam which i cleared however the Door open rear access panel is open keeps coming up.  I cleaned the contacts with a lint free towel and an eraser.  I have powered down the printer nothing work

  • How do I get the page to stop moving up and down so much?

    Re: Pages - Please tell me how I can keep the page from moving up and down so much.  It's irritating.  The page I'm writing on wants to bounce several times before it finally stops...like when you move the cursor, sometimes the page bounces.   Thanks

  • 'Lost' Inbox

    Hello I see that folks have had this problem before, but can't find out how to solve it in any of the threads here. My 'Mail' Account is very full. I was getting that message about 'having to take the account online' rather than my mail actually open