Can you Pls. explain me

Hi experts
  Can anyone explain me the following query, why they have used query like this, there is no internal table, and how they will process. Will affect the perfomance or not?
SELECT * FROM bseg
             WHERE belnr = p_vblnr
             AND gjahr = p_gjahr
             AND koart = 'K'
             AND bukrs = p_bukrs
             AND bschl = '29'.
Regards
Rajaram

Hi,
The below select query retrieves only one complete record from database..
SELECT * FROM bseg
WHERE belnr = p_vblnr
AND gjahr = p_gjahr
AND koart = 'K'
AND bukrs = p_bukrs
AND bschl = '29'.
If u see in the program they might have declared TABLES statement like this
TABLES : BSEG.
So it will allocate default workarea..
Rewrad if helpful.
Regards,
nagaraj

Similar Messages

  • Can anyone pls explain

    Can anyone pls explain this part of the code.
    DateFormat dateFormat = new SimpleDateFormat ("MM/dd/yyyy");
    Date birthDate = dateFormat.parse (birthDateString);
    Calendar day = Calendar.getInstance();
    day.setTime (birthDate);
    int day   = day.get (Calendar.DAY_OF_MONTH);
    int month = day.get (Calendar.MONTH);
    int year  = day.get (Calendar.YEAR);

    Well, read my comments prior to each statement below...
    You should also consider reading the API docs for the used classes, if you need more details...
    // Crate a new DateFormatObject for formatting dates according to the specified pattern
    DateFormat dateFormat = new SimpleDateFormat ("MM/dd/yyyy");
    // Parse the provided String into a Date object
    // Note that if the String does not provide for a valid Date you'll get an exception
    Date birthDate = dateFormat.parse("30/08/1980");
    // Get a new calendar instace
    Calendar day = Calendar.getInstance();
    // Reset the date in the calendar to the newly created date object
    // Now the calendar represents the date in the day object
    day.setTime (birthDate);
    // Get the day of the month from the calendar
    // Note that your code snippet contained int day = ... this will cause an exception as day was already
    // defined!
    int d = day.get (Calendar.DAY_OF_MONTH);
    // Get the month of the year from the calendar
    // Note that Jan will be returned as 0, so if you have to add one to the retrieved month value
    int m = day.get (Calendar.MONTH);
    // Get the year from the calendar
    int y = day.get (Calendar.YEAR);Hope that helps...

  • HI,Can anybody pls explain me, while extracting database table from sap-r/3

    HI,Can anybody pls explain me, while extracting database table from sap-r/3 to sap-bw using GENERIC DATA SOURCE it will ask us Name of the APPLICATION COMPONENT what does it means?

    Application Component is a collcetion of tightly coupled S/W component. You can think of it is like folder, where all the related S/W will be put in. Like MM will have all the DS related to MM.
    Thanks..
    Shambhu

  • Can anybody pls explain me this Reflections stuff?

    Hi All
    Can anybody pls explain me this Reflections stuff? is this related to singletons in java

    Maybe you could give us a bit more information where
    you need help, for all full coverage i suggest the tutorial too.

  • Could you pls explain the "Get-Acl C:/Windows | fl" output?

    Could you pls explain the "Get-Acl C:/Windows | fl" output? There are some nos. what are those indicate?
    PS C:\> Get-Acl C:/Windows | fl
    Path : Microsoft.PowerShell.Core\FileSystem::C:\Windows
    Owner : NT SERVICE\TrustedInstaller
    Group : NT SERVICE\TrustedInstaller
    Access : CREATOR OWNER Allow 268435456
    NT AUTHORITY\SYSTEM Allow 268435456
    NT AUTHORITY\SYSTEM Allow Modify, Synchronize
    BUILTIN\Administrators Allow 268435456
    BUILTIN\Administrators Allow Modify, Synchronize
    BUILTIN\Users Allow -1610612736
    BUILTIN\Users Allow ReadAndExecute, Synchronize
    NT SERVICE\TrustedInstaller Allow 268435456
    NT SERVICE\TrustedInstaller Allow FullControl
    Audit :
    Sddl : O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-185
    3292631-2271478464D:PAI(A;OICIIO;GA;;;CO)(A;OICIIO;GA;;;SY)(A;;0x1301bf;;;SY)(A;OICIIO;GA;;;BA)(A;;0x1301bf;;;
    BA)(A;OICIIO;GXGR;;;BU)(A;;0x1200a9;;;BU)(A;CIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271
    478464)(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)
    AliahMurfy

    Those numbers are
    generic access rights.
    The string representation of the access rights come from the FileSystemRights enumeration. Generic rights aren't included in that enumeration, so they show up as the numeric value. You can look up the generic mappings for lots of different objects on MSDN.
    The 3.0 beta of
    my access control module will translate generic access rights for lots of different objects, including files and folders. Here is a screenshot showing the generic rights being translated for a registry key (HKLM:\SOFTWARE) and a folder (C:\Windows):
    The helper function that does the translation is temporarily accessible in the beta version. It is called New-AdaptedAcl. You can play around with it to get a better idea of what's going on (but this command will be private before the final 3.0 version is
    released). Here's a screenshot of the helper function in action (the first command does no translation, it just gives a string representation of the numeric access mask; the second command does translation, but it doesn't merge similar ACEs with each other):

  • Can you pls correct this query :: ( In Oracle Core HRMS )

    Dear all,
    i have created query get result :: ( In Oracle Core HRMS )
    •     EE Number
    •     Forename
    •     Surname
    •     Dept
    •     Start Date
    •     Leave Date
    •     Date of Birth
    •     Address
    •     Salary (New & Existing Employee)
    •     Car Allowance
    •     Effective date (changes/updates)
    •     Creation Date/Update date
    •     Email address
    •     Gender
    •     Job Description
    •     Grade
    •     From and to date for parametres
    •     Last Modified Date
    SELECT
    papf.EMPLOYEE_NUMBER emp_no
    , papf.FIRST_NAME forname
    , papf.LAST_NAME surname
    , replace(replace(hou.attribute1,'10-',''), '14-', '') department
    , pps.date_start strt_date
    , pps.actual_termination_date leave_date
    , papf.DATE_OF_BIRTH dob
    , pdd.ADDRESS_LINE1||''||pdd.ADDRESS_LINE2||','||pdd.ADDRESS_LINE3 Address
    , ppp.proposed_salary_n salary
    , papf.EFFECTIVE_START_DATE estart_date
    , papf.EFFECTIVE_END_DATE eend_date
    , papf.CREATION_DATE crt_date
    , papf.EMAIL_ADDRESS mail_addrs
    , papf.SEX GENDER
    , pj.NAME Job_Des
    , substr(pg.name, 1, 1) GRADE
    , papf.LAST_UPDATE_DATE Last_Modified_Date
    FROM per_all_people_f papf
    , per_all_assignments_f paaf
    , per_addresses pdd
    , per_pay_proposals ppp
    , per_grades pg
    , pay_payrolls_f pp
    , per_jobs pj
    , per_periods_of_service pps
    , per_person_types ppt
    , per_person_type_usages_f pptu
    -- , pay_element_entries_f pee
    , hr_organization_units hou
    WHERE papf.person_id = paaf.person_id
    AND papf.person_id = pdd.person_id
    AND papf.person_id = pptu.person_id
    and papf.person_id = pps.person_id
    and pps.period_of_service_id = paaf.period_of_service_id
    AND ppp.assignment_id = paaf.assignment_id
    -- AND pee.assignment_id = paaf.assignment_id
    AND paaf.grade_id = pg.grade_id
    AND paaf.payroll_id = pp.payroll_id
    AND pptu.person_type_id = ppt.person_type_id
    AND paaf.organization_id = hou.organization_id
    AND pj.job_id = paaf.job_id
    AND ppp.pay_proposal_id = (SELECT MAX (pay_proposal_id)
    FROM per_pay_proposals
    WHERE assignment_id = paaf.assignment_id)
    AND pp.payroll_id = 224
    AND pdd.primary_flag = 'Y'
    AND pee.element_type_id = 221 for car allowance
    AND papf.employee_number <> 'NONE'
    AND ppt.user_person_type in ('Employee', 'Ex-employee' ,'Intern')
    AND ppt.system_person_type in ('EX_EMP', 'EMP')
    AND TRUNC(SYSDATE) between papf.effective_start_date and papf.effective_end_date
    AND TRUNC(SYSDATE) between paaf.effective_start_date and paaf.effective_end_date
    AND TRUNC(SYSDATE) between pptu.effective_start_date and pptu.effective_end_date ;
    can you pls correct this
    still i need to add Car Allowance and Bank details in above query pls tell me where i can get dept details in oracle core HR
    Thanks all
    Edited by: 981527 on Jan 30, 2013 3:41 AM
    Edited by: 981527 on Jan 31, 2013 1:22 AM
    Edited by: 981527 on Jan 31, 2013 1:30 AM
    Edited by: 981527 on Jan 31, 2013 9:03 PM
    Edited by: 981527 on Feb 1, 2013 4:50 AM

    I am taking a guess that 'Dept' is where the employee works, so that will be the column 'NAME' in the table HR_ALL_ORGANIZATION_UNITS; you will need to join with this table on the assignment's organization_id value
    Edited to add: Whilst you're testing this, you might want to consider removing the table PAY_ELEMENT_ENTRIES_F from the table list, otherwise you can look forward to potentially large cartesian product of returned rows!
    Clive
    Edited by: clive_t on 31-Jan-2013 09:59

  • Can you please explain how this query is fetching the rows?

    here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
    SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
    WHERE P1.SAL >= P2.SAL
    GROUP BY P2.SAL
    HAVING COUNT (DISTINCT P1.SAL) <=3 ;
    here is the data i used :
    SQL> select * from psal;
    NAME SAL
    able 1000
    baker 900
    charles 900
    delta 800
    eddy 700
    fred 700
    george 700
    george 700
    Regards,
    Renu

    ... Please help me in understanding the query.
    Your query looks like anything but a Top-N query.
    If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
    Given below is some brief information on the same:
    test@ora>
    test@ora> --
    test@ora> -- Query 1 - using the non-equi (theta) join
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
    12         p2.NAME AS p2_name
    13    FROM psal p1, psal p2
    14   WHERE p1.sal >= p2.sal;
        P1_SAL P1_NAME     P2_SAL P2_NAME
          1000 able          1000 able
          1000 able           900 baker
          1000 able           900 charles
          1000 able           800 delta
          1000 able           700 eddy
          1000 able           700 fred
          1000 able           700 george
          1000 able           700 george
           900 baker          900 baker
           900 baker          900 charles
           900 baker          800 delta
           900 baker          700 eddy
           900 baker          700 fred
           900 baker          700 george
           900 baker          700 george
           900 charles        900 baker
           900 charles        900 charles
           900 charles        800 delta
           900 charles        700 eddy
           900 charles        700 fred
           900 charles        700 george
           900 charles        700 george
           800 delta          800 delta
           800 delta          700 eddy
           800 delta          700 fred
           800 delta          700 george
           800 delta          700 george
           700 eddy           700 eddy
           700 eddy           700 fred
           700 eddy           700 george
           700 eddy           700 george
           700 fred           700 eddy
           700 fred           700 fred
           700 fred           700 george
           700 fred           700 george
           700 george         700 eddy
           700 george         700 fred
           700 george         700 george
           700 george         700 george
           700 george         700 eddy
           700 george         700 fred
           700 george         700 george
           700 george         700 george
    43 rows selected.
    test@ora>
    test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
    - Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
    - Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
    - Row 3: 7 times again... and so on.
    - So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
    test@ora>
    test@ora> --
    test@ora> -- Query 2 - add the GROUP BY
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p2.sal AS p2_sal,
    12         COUNT(*) as cnt,
    13         COUNT(p1.sal) as cnt_p1_sal,
    14         COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
    15         MIN(p1.sal) as min_p1_sal,
    16         MAX(p1.sal) as max_p1_sal
    17    FROM psal p1, psal p2
    18   WHERE p1.sal >= p2.sal
    19  GROUP BY p2.sal;
        P2_SAL        CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
           700         32         32               4        700       1000
           800          4          4               3        800       1000
           900          6          6               2        900       1000
          1000          1          1               1       1000       1000
    test@ora>
    test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
    So, the last 3 rows are the ones you are interested in, essentially. As follows:
    test@ora>
    test@ora> --
    test@ora> -- Query 3 - GROUP BY and HAVING
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT p2.sal AS p2_sal,
    12         COUNT(*) as cnt,
    13         COUNT(p1.sal) as cnt_p1_sal,
    14         COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
    15         MIN(p1.sal) as min_p1_sal,
    16         MAX(p1.sal) as max_p1_sal
    17    FROM psal p1, psal p2
    18   WHERE p1.sal >= p2.sal
    19  GROUP BY p2.sal
    20  HAVING COUNT(DISTINCT p1.sal) <= 3;
        P2_SAL        CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
           800          4          4               3        800       1000
           900          6          6               2        900       1000
          1000          1          1               1       1000       1000
    test@ora>
    test@ora>
    test@ora>That's what you are doing in that query.
    The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
    A much simpler query is as follows:
    test@ora>
    test@ora>
    test@ora> --
    test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT sal
    12  FROM (
    13    SELECT sal
    14      FROM psal
    15    ORDER BY sal DESC
    16  )
    17  WHERE rownum <= 3;
           SAL
          1000
           900
           900
    test@ora>
    test@ora>
    test@ora>And for Top-3 distinct salaries:
    test@ora>
    test@ora> --
    test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
    test@ora> --
    test@ora> with psal as (
      2    select 'able' as name, 1000 as sal from dual union all
      3    select 'baker',   900 from dual union all
      4    select 'charles', 900 from dual union all
      5    select 'delta',   800 from dual union all
      6    select 'eddy',    700 from dual union all
      7    select 'fred',    700 from dual union all
      8    select 'george',  700 from dual union all
      9    select 'george',  700 from dual)
    10  --
    11  SELECT sal
    12  FROM (
    13    SELECT DISTINCT sal
    14      FROM psal
    15    ORDER BY sal DESC
    16  )
    17  WHERE rownum <= 3;
           SAL
          1000
           900
           800
    test@ora>
    test@ora>
    test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
    RANK:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
    DENSE_RANK:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
    HTH
    isotope

  • I am using iPhone 3GS. I am living in Saudi Arabia. I cannot find the directions with in GCC contries in the Navigation Application "COMPASS" of iphone. Can you please explain me how to work on it??

    I am using iPhone 3GS. I am living in Saudi Arabia. I cannot find the directions with in GCC contries in the Navigation Application "COMPASS" of iphone. Only the map is displayed. I am not gtting the directions or information when I use it. Can you please explain me how to work on it??

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #context-sendlink {display:none !important;}</nowiki></pre>
    See also http://kb.mozillazine.org/Chrome_element_names_and_IDs

  • HT4489 I am not able to transfer my in spite of VCf format from my computer to my iPhone 5S...can you pls suggest some way to do it as fast as possible

    Can you pls solve my issue......I am not able to transfer my in spite of VCf format from my computer to my iPhone 5S...can you pls suggest some way to do it as fast as possible

    What happens when you follow this?
    http://support.apple.com/kb/PH3605

  • Can you pls tell me how to unfreeze my iMac?

    Can you pls tell me how to unfreeze my iMac?

    Hold down the power button until the iMac turns off. Then press the power button again to turn it back on. Does it then work correctly?

  • Can anyone pls explain about SSR in WebdynPro application?

    Hi,
    Am having the webdynpro code.I that code they are having one onclik event.When they are clicking on that button link they are returning SSR.handle(parameters).But i cud not found the definition of SSR.handle(parameters) function.Can anyone pls explain what exactly SSR and where they have the definition of that function?
    Rgds,
    Murugag

    Hi,
      SSR or server side rendering is a location-independent rendering method of the Webdynpro framework.Because of the strict separation of layout and content, the framework supports location-independent rendering (client-side versus server-side rendering). In other words, depending on the capabilities of the client device, an HTML page can be rendered either on the server or the client.
      A simple browser (simple client) may not support client-side scripting or processing of XML transformations so this client may require that the server generate the HTML page before sending it to the browser. More powerful browsers (advanced clients) can inject the content into the page on the client using XML and JavaScript. This location independence is purely configuration driven and does not require modification to either the application code or the presentation code.
      Just verify if your browser is javascript enabled or not.
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

  • Can you pls send me the link to down load JDeveloper version 10.1.2

    Dear All,
    can you pls send me the link to down load JDeveloper version 10.1.2
    Regards,
    Prasanth.

    Hi,
    [http://www.oracle.com/technology/software/products/jdev/archives.html|http://www.oracle.com/technology/software/products/jdev/archives.html]
    Pedja

  • To run VPN setup my iphone is requesting for 4 digit pass code ... can you pls assisit?

    To run VPN setup my iphone is requesting for 4 digit pass code ... can you pls assisit?

    Hello RozR,
    We've an article that can help circumvent the new passcode and restore access to your iPhone.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212
    Cheers,
    Allen

  • Can someone pls explain me (networking, DNS)

    hi guys,
    can some1 pls explain me what is hostname in the following record:
    mysite.com. IN SOA hostname.mysite.com. admin.mysite.com. (1; 3h; 1h; 1w; 1h)
    is it the name of my network interface ?
    many thanks
    Alex

    ok, it looks like..
    now to configure the MX record shall i point it to m0.mysite.com?
    the thing is: i actually don't quite understand what is hostname (network interface) and host of my domain. in windows i came from there was a computer name (any name for local network use) , but i never used it in MS Exchange. i used to have an MX record pointing to mail.mysite.com, but in fact the machine's name was M0.
    will highly appreciate some insight on this subject.
    many thanks
    alex

  • Can you please explain in detail about the T-Code SM59

    Can you please explain in detail about the T-Code SM59

    Hi Raja,
    detailed explanation is already available over help.sap.com.
    For your ready reference check below links
    http://help.sap.com/saphelp_spm21_bw/helpdata/en/57/898009a859493a8bce56caaf0f8e13/frameset.htm
    http://help.sap.com/saphelp_webas610/helpdata/en/da/11df3a9b10355ae10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_snc70/helpdata/en/3f/7ffb40ef74f923e10000000a155106/frameset.htm
    Regards
    Jitender

Maybe you are looking for