Doubt on Break on statement

Hi Guys,
can break on statement be used in oracle 11g, am trying to use it this way but not able to get the expected result
break on deptno skip 1
select deptno, job, count(*) from emp group by deptno, job;
Dins
Edited by: 931966 on May 8, 2012 8:55 AM

931966 wrote:
Hi Guys,
can break on statement be used in oracle 11g, am trying to use it this way but not able to get the expected result
break on deptno skip 1
select deptno, job, count(*) from emp group by deptno, job;
Dins
Edited by: 931966 on May 8, 2012 8:55 AMwhat are your "expected results"?
SQL*Plus: Release 11.2.0.1.0 Production on Mon May 7 20:28:49 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Enter user-name: hr/hr
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
20:28:57 SQL> desc emp
Name                            Null?    Type
EMPNO                            NOT NULL NUMBER(4)
ENAME                                  VARCHAR2(10)
JOB                                  VARCHAR2(9)
MGR                                  NUMBER(4)
HIREDATE                             DATE
SAL                                  NUMBER(7,2)
COMM                                  NUMBER(7,2)
DEPTNO                              NUMBER(2)
INSERT_DATE                             DATE
DOB                                  DATE
20:29:00 SQL> break on deptno skip 1
20:29:18 SQL> select deptno, job, count(*) from emp group by deptno, job;
    DEPTNO JOB            COUNT(*)
     30 SALESMAN           4
     20 MANAGER           2
        CLERK           1
     30 CLERK           1
     10 PRESIDENT           1
     30 MANAGER           1
    DEPTNO JOB            COUNT(*)
     10 CLERK           1
        MANAGER           1
     20 ANALYST           2
        SALESMAN           4
10 rows selected.
20:29:29 SQL> 20:29:29 SQL>

Similar Messages

  • BREAK  ABAP statement

    What is the use of BREAK ABAP statement in ABAP.

    When we set the break point using the 'Set Breakpoint' button in the ABAP editor, sometimes the code will not stop at that point for debugging. For example, when a program runs in asynchronous mode, the Set Breakpoint option will not work. Only when we put the code like break <username>, the code will stop at that point for debugging. 
    Even in case of smartforms, we need to put the break abap statement to stop the smartform for debugging.
    Hope it answers your question.
    Regards
    Swetha.

  • "End of file breaks the statement" on "working" MaxL script

    Sorry, multipost accidentally. Look for post that is a question...
    Edited by: Kevin Cox on Dec 4, 2010 2:52 AM

    Different operating systems? Perhaps its not the maxl script but a parameter that gets passed in from the batch script? Certain things change such as the system time variable between operating systems. I remember that caught me out although I wasn't doing anything to do with essbase at the time.
    I'm 99% sure this error is generated from the maxl interpreter
    e.g. Just created test.mxl and all I put in there was the word login followed by a single unclosed quote and the followingf happen.
    D:\Qubix>essmsh test.mxl
    Essbase MaxL Shell - Release 11.1.1 (ESB11.1.1.2.0B110)
    Copyright (c) 2000, 2008, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login '
    essmsh error: End of File breaks the statement
    MaxL Shell completed
    D:\Qubix>
    Edited by: Daniel Willis on Dec 6, 2010 2:57 PM

  • Doubt in read table statement.

    hi friends
    i have a doubt in read statement
    please suggest me which one i can use.
    i have one master table
    with fields like
    contract contract line wbs
    500060    10                XXX
    500070     10               XXX
    and the transaction table has
    500060     10             01              01              01
    500060      10            02              02              02
    500070       10            01              01             01
    500070       10            02              02              02
    what i am doing is like
    loop at master table into wamastertable
    read table tranintertab into tranintertab1 with key contract=wamastertable-contract                                                                               
    contractline = wamastertable-contractline.
    endloop.
    As my read query satifies multiple lines of transaction internal table i am in a posistion to do this
    but if i do like the above it is giving error that tranintertab1 is not the line type of tranintertab
    please provide me ur valuable suggestions.

    >
    janagar sundaramoorthy Nadar wrote:
    >
    contract contract line wbs
    > 500060    10                XXX
    > 500070     10               XXX
    > and the transaction table has
    > 500060     10          01              01              01
    > 500060     10          02              02              02
    > 500070     10          01              01             01
    > 500070     10          02              02              02
    >
    >
    loop at master table into wamastertable
    > read table tranintertab into tranintertab1 with key contract=wamastertable-contract
    >                                                                                contractline = wamastertable-contractline.
    > endloop.
    >
    Try it like this..........
    loop at tranintertab into tranintertab1.
    read table master table into wamastertable with key
                                                                           contract = tranintertab1-contract
                                                                      contractline = tranintertab1-contractline.
    endloop.
    Regards,
    Suneel G

  • Doubt in Drop Table statement

    Hi,
    what will happen(internally), when we use DROP TABLE <table name>?
    Could you please elaborate for the above?
    Version : Oracle 9.2
    For example:
    If we use DML statements. It ll record the changes in redo log/archive log.
    My doubt is...
    i use DROP TABLE <table name>;
    What operation takes place?
    Will it record the changes in redo log/archive log file?
    Thanks in advance

    Hi,
    You can start 10046 trace and see what all happens when you fire a drop table command.
    Different Version and different functionalities would do additional task.
    eg: Database with recyclebin on would perform different task when compared to the database with recyeclebin off.
    They all would fire set of recursive SQL which would insert/update/delete the data dicitionary objects.
    Since drop table command would internally fire these dmls, hence would get logged into the redo log too.
    Regards
    Anurag

  • Doubt in case when statement

    hi gems...
    i have a case when statement in a select clause...there are total three conditions in the case when statemnt.
    now my question is if all theconditions gets matched, then what will happen???
    is only first condition gets executed and rest two will be ignored or the third condition will overwrite the previous two???
    please help...thanks in advance...

    Hello
    This isn't very difficult to test....
    select
         CASE
              WHEN 1=1 THEN
                1
              WHEN 1=1 THEN
                2
              WHEN 1=1 THEN
                3
         END c
    FROM
         dual
             C
             1
    1 row selected.It wil return the first match.
    David

  • Doubt in processing of  statements after calling JFrame class

    I have two java classes.
    The first one is Normal class and the second one is a JFrame class.
    In the first Class, i created an object for second JFrame class followed by a set of statements.
    Based on the input from the second class, i must process the statements, the problem i am facing is after creating the object for second frame class , the first class continues execution of the remaining statements. I must stop the execution of the statements until i get an input from the second class.
    How can i make the first class wait for an input from the second class.
    if possible provide me some source code.
    Thanks for your help!.

    Use a modal JDialog instead of a JFrame.
    db

  • Doubt in using replace statement

    Hi all,
       I have a requirement where user will enter more than 1 label no in a screen, which will be populated internally in a table by SAP with ## for every ENTER button pressed by the user. the internal table populated by SAP will be having values like this. 11111111111##22222222222##3333333333
    I need to separate the values from ## and move it to another internal table. I used replace statement to replace ##. But its not working.  I dont know what could be the problem. Can any one suggest me in doing this.
    POINTS PROMISED
    Regards,
    Buvana

    You will need to use the replace, but you need to be searching for cl_abap_char_utilities=>CR_LF in the REPLACE statement, the ## is an internal representation of the CR_LF,  so use 
    replace  cl_abap_char_utilities=>CR_LF  with .....
    Regards,
    RIch Heilman

  • Doubt in Cash flow Statement Query

    Hi all,
        In FI module i am trying to create query 'Cash flow statement' using infocube 0figl_c01.
    For 'cash inflow' i restricted to debit postings for G/L account char. with two account number (200602 & 200611 as given by finance dept.) But the values are not matching as it extracts all the entries which come to that account for the posting period. But my requirement is to take only the entries related to document type 'DZ - Customer Payments' (for which there is no char. in the infocube or in the R3 Extractor).
    How to solve the issue. do i have to create a generic data source and change the infocube?
    Thanks,
    Prakash

    Hi Vachan,
    Thx for the reply.
    The entries in the InfoCube is correct. Is there any other method by which i can solve this problem. Because changing the datasource and InfoCube is tedious at this time.
    Regards,
    Prakash

  • Doubt in "Select between" statement

    Hi All,
    I need to select all the userid's between 'A' to 'Z' ( or 'A* to B' ) ; where 'A' , 'Z*' would be input on the selection screen.
    when I tried :
    select bname
    from user_addr
    into <<internal table>>
    where bname between 'A' and 'Z'.
    It gave me all the user id's starting with 'A*' but didn't proceed further to B,C,D,...Z.
    Any possible solution. It is URGENT.
    Good reward points would be awarded to correct answers.
    Thanks,
    Vishal.

    Check the table contents, this is working for me for any range I give
    data i_usr type table of user_addr.
    select * into table i_usr from user_addr where
    bname between 'A*' and 'F*'.

  • Doubt about Select statement.

    Hi folks!!
                 I have a few doubts about the select statements, it may be a silly things but its useful for me.
    what is   difference between below statment.
    1)SELECT * FROM TABLE.
    2)SELECT SINGLE * FROM TABLE
    3)SELECT SINGLE FROM TABLE.
    Hope i will get answer,thanks in advance.
    Regards
    Richie..

    Hi,
    try this and if possible use sap help.i mean place the cursor on select and press F1.
                 Types of select statements:
    1.     select * from ztxlfa1 into table it.
                 This is simple select statement to fetch all the data of db table into internal table it.
       2.   select * from ztxlfa1 into table it where lifnr between 'V2' and 'V5'.
            Thisis using where condition between v2 and v5.
      4. select * from ztxlfa1 where land1 = 'DE'. "row goes into default table work Area
      5. select lifnr land1 from ztxlfa1
            into corresponding fields of it   "notice 'table' is omitted
             where land1 = 'DE'.
              append it.
               endselect.
         Now data will go into work area. and then u will add it to internal table by     
            append statement.
      6.   Table 13.2 contains a list of the various forms of select as it is used with internal tables and their relative efficiency. They are in descending order of most-to-least efficient.
    Table 13.2  Various Forms of SELECT when Filling an Internal Table
    Statement(s)                                   Writes To
    select into table it                                    Body
    select into corresponding fields of table it   Body
    select into it                                    Header line
    select into corresponding fields of it           Header line
    7. SELECT VBRK~VBELN
           VBRK~VKORG
           VBRK~FKDAT
           VBRK~NETWR
           VBRK~WAERK
           TVKOT~VTEXT
           T001~BUKRS
           T001~BUTXT
        INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
        FROM VBRK
        INNER JOIN TVKOT ON VBRKVKORG = TVKOTVKORG
        INNER JOIN T001 ON VBRKBUKRS = T001BUKRS
        WHERE VBELN IN DOCNUM AND VBRK~FKSTO = ''
       AND VBRK~FKDAT in date.
    Select statement using inner joins for vbrk and t001 and tvkot table for this case based on the conditions
    8. SELECT T001W~NAME1 INTO  TABLE IT1_T001W
    FROM T001W INNER JOIN EKPO ON T001WWERKS = EKPOWERKS
    WHERE EKPO~EBELN = PURORD.
    here selecting a single field into table it1_t001winner join on ekpo.
    9. SELECT BUKRS LIFNR EBELN FROM EKKO INTO CORRESPONDING FIELDS OF IT_EKKO WHERE     EBELN IN P_O_NO.
    ENDSELECT.
    SELECT BUTXT   FROM T001 INTO  IT_T001 FOR ALL ENTRIES IN IT_EKKO WHERE BUKRS = IT_EKKO-BUKRS.
    ENDSELECT.
    APPEND IT_T001.
    here I am using for all entries statement with select statement. Both joins and for all entries used to fetch the data on condition but for all entries is the best one.
    10. SELECT AVBELN BVTEXT AFKDAT CBUTXT ANETWR AWAERK INTO TABLE ITAB
                 FROM  VBRK AS A
                 INNER JOIN TVKOT AS B ON
                 AVKORG EQ BVKORG
                 INNER JOIN T001 AS C ON
                 ABUKRS EQ CBUKRS
                 WHERE  AVBELN IN BDOCU AND AFKSTO EQ ' ' AND B~SPRAS EQ
                 SY-LANGU
                 AND AFKDAT IN BDATE AND AVBELN EQ ANY ( SELECT VBELN FROM
                VBRP WHERE VBRP~MATNR EQ ITEMS ).
        Here we are using sub query in inner join specified in brackets.
    Thanks,
    chandu.

  • [SOLVED] How To Break Up Long Statement In Bash Script?

    Hello Everyone,
      If have the following If statement in a script:
    if [[ $1 =~ ^[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}\:[A-Fa-f0-9]{4,4}$ ]]; then
    Is there any way to break this statement into multiple lines? I tried entering a \ after a portion of the statement and then pressing Enter to add a newline but it did not work.
    thriftyb
    Last edited by thriftyb (2015-04-03 21:44:13)

    Alad wrote:
    if grep -xP '(([A-Fa-f0-9]{4}):){7}(?2)' <<< "$1"; then
    http://www.regular-expressions.info/subroutine.html
    That works too. I didn't know that grep could be used that way. Thanks.

  • Break Point doubt

    Hi All,
    I have a big doubt with "Break Point" in DVD DL.
    I have 9 videos, some of them are around 45 minutes and other around 5 minutes, I have 11 languages menu, and 1 main menu to choose the language.
    Right now I have the Break point in Automatic and when I burn a DVD DL to proof how this work in a DVD Player, this seen to be ok. I don't get any error message form DVD SP when I burn the DVD, and I couldn't find any problem in the DVD player neither.
    But I'm worry because I don't know if after doing the DLT the break point may give problems with in the replication company.
    With such amount of videos and menus , I don't know where I should put the "Break point" if I don't leave it in automatic.
    How can I know where is the right place?, Where DVD SP start to count the space of the information and where is the end?
    Thanks in advance
    Hugo

    Hugo
    Take a look here
    http://dvdstepbystep.com/markers.mov
    After you build to a folder (which it sounds like you did, in other words after you have a VIDEO_TS folder etc.) follow the above. The above movie shows what needs to be done (and where to look for the black markers) Note that there is no actual breakpoint in the above movie though)
    If there is no black marker you may ned to add more around the area where the break point should be. It may taake some work and place a few markers down until you find the proper spot. The project has to be built again though to see the black marker (if one exists)
    Some more threads and links to other threads (including the info above)
    http://discussions.apple.com/thread.jspa?messageID=3147573
    http://discussions.apple.com/thread.jspa?messageID=1466846
    http://discussions.apple.com/thread.jspa?messageID=4671267
    http://discussions.apple.com/thread.jspa?messageID=4916558
    http://discussions.apple.com/thread.jspa?messageID=4609543

  • Parsing an OPEN SQL select statement

    Hi all,
      I want to parse an open SQL select statement to get the list of tables and the corresponding fields in the select statement.
      Is there some ABAP-internal syntax from the SAP Database Interface that does this? or is the only option to do this is to manually break the statement?
    Thanks.
    Girish

    Hi,
    I doubt if there is something like that available to use. It think you will have to write a parser for yourself.
    Regards

  • Export statement in user-exit??

    I have used the following export statement in a user-exit:"EXPORT xaccit TO MEMORY ID 'ZCACHEPPA'."-I have doubt that - will this statement export the contents of the table XACCIT to memory and those contents in the memory will be imported by the IMPORT statement in other user-exit.....??
    If no,then which EXPORT/IMPORT statement should be used....is there any other keyword that can be used to export the contents to the memory?

    Hi
    See the doc related to SAP Memory and ABAP memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
    SAP global memory retains field value through out session.
    set parameter id 'MAT' field v_matnr.
    get parameter id 'MAT' field v_matnr.
    They are stored in table TPARA.
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
    ABAP memory is temporary and values are retained in same LUW.
    export itab to memory id 'TEST'.
    import itab from memory Id 'TEST'.
    Here itab should be declared of same type and length.
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Reward points if useful
    Regards
    Anji

Maybe you are looking for

  • OSX Lion Fails To ShutDown

    Hi Community, I have a new MBP 2011, that came with OSX Lion Installed. The system statred off very well, with super startup and shut down times. Along the way the system beagn freezing while under load, and the problem was resolved after installing

  • Errors during file transfer on WebDav server

    (this is a repost from a different category) I having much difficulty transferring files to and from our new WebDav server when using Finder's Connect to Server. I am able to connect and authenticate just fine. Although, when dragging and dropping to

  • Apple store widget not working....

    the widget which lets you choose any apple store and then give you the daily schedual for its workshops is not working on my mac, ive reinstalled and and the same thing is happening, the widget shows up but when i have to choose my state/country and

  • ADF-BC/JSF Attributes of reference entity objects do not appear on new rows

    Hi everyone, Here is something I have been meaning to ask for a long time and never found the time to do so. Let's suppose that we have two entities named Item and and ItemType and a view object named ItemsList defined like this SELECT Item.ID,      

  • Question about content of alert messages

    I created some alerts that are called via actions. I customazed for alerts alert categories with short and long texts. Now when the alert is generated I get in my outlook e-mail for this alert and in the e-mail I get short and long text defined for a