Need help for the following select query-- illegal character

select product_group_id from product_group where description like '%%'
I am not able to identify this character.
When I try to type this character at
SQL prompt, it does not accepts it.
This character is in the description field and I have to replace it with NULL..
Any suggestions..
Thanks in advance
null

I'm not sure about the character you are talking about. But if you find this character in the ASCII character set, you can do all the operation against it with the help of CHR() function.

Similar Messages

  • Need solution for the following(Selection Screen)

    Hi all,
    currently iam working with report program,there i need to populate one field in the selection screen based on the another parameter in the same selection screen.
    iam having field called work center as a parameter with the search help.
    This search help is providing the corresponding plant for the particular work center.
    Now what i need to do is,if i select the work center thru F4 help,i need the correseponding plant to get populated in the other textbox.
    Currently iam having that work center field as parameter,
    now i need another textbox for the plant adjacent to this workcenter textbox,in this textbox only i need that corresponding plant.
    Following is the code for that workcenter textbox.
    PARAMETERS:P_ARBPL LIKE CRHD-ARBPL MATCHCODE OBJECT CRAM.
    Note: The Serach help CRAM is having corresponding  plant with the workcenter.

    Hi swaminathan,
    1. If u want to DIRECTLY
       populate other fields
       based upon selection,
      then we have to use our own
      selection function.
    2. just copy paste this code in new program.
      ( it will display help for BUKRS
      and AS SOON AS the user selects some company code,
      the other fields
      get populated AUTOMATICALLY)
    3.
    REPORT abc.
    DATA : dd     LIKE     TABLE OF dselc WITH HEADER LINE. "*--- IMPORTANT
    DATA : ft     LIKE     TABLE OF dfies WITH HEADER LINE.
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    PARAMETERS : bukrs LIKE t001-bukrs .
    PARAMETERS : butxt LIKE t001-butxt.
    PARAMETERS : ort01 LIKE t001-ort01.
    PARAMETERS : waers LIKE t001-waers.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR bukrs.
       SELECT * FROM t001 INTO TABLE t001.
    IMPORTANT
       REFRESH dd.
       dd-fldname = 'BUTXT'.
       dd-dyfldname = 'BUTXT'.
       APPEND dd.
       dd-fldname = 'ORT01'.
       dd-dyfldname = 'ORT01'.
       APPEND dd.
       dd-fldname = 'WAERS'.
       dd-dyfldname = 'WAERS'.
       APPEND dd.
    *------- IMPORTANT
       REFRESH ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'BUTXT'.
       APPEND ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'WAERS'.
       APPEND ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'ORT01'.
       APPEND ft.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
          ddic_structure  = 'T001'   "*----- IMPORTANT IF STANDARD STRUCT
           retfield        = 'BUKRS'
           dynpprog        = sy-repid
           dynpnr          = sy-dynnr
           dynprofield     = 'BUKRS'
           value_org       = 'S'
         TABLES
           field_tab       = ft "*---- IMPORTANT
           value_tab       = t001
           dynpfld_mapping = dd   "* IMPORTANT
         EXCEPTIONS
           parameter_error = 1
           no_values_found = 2
           OTHERS          = 3.
    regards,
    amit m.

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • Search help for the "Week Select option"

    Hi Experts,
    My selection screen is like this:
    Article:  .............. to ..............
    Week  .............    to ...............
    I am taking article EKPO-MATNR field.and week S012-SPWOC field
    Now there is there search help for the S012-SPWOC field. How can I create the seach help for this fields.
    Regards
    Krishan

    hi,
    try this way.
    tables: ekpo, s012.
    select-options:article for EKPO-MATNR,
                    week for S012-SPWOC.
    Regards,
    Shankar.

  • Need driver for the following . . .

    Hi, 
    I have been hunting and can't seem to locate drivers for the following hardware id:
    PCI\VEN_10EC&DEV_5227&SUBSYS_2166103C&REV_01
    Its there in the device manager as an unknown PCI device.
    this seems to be the realtek card reader, and having gone trough other threads, I have tried 3-4 versions of the realtek card reader drivers. None of them have worked. 
    My laptop is a HP Pavillion n210se. The technical support/manual/drivers link on its product page is broken.
    http://www8.hp.com/emea_middle_east/en/products/la​ptops/product-detail.html?oid=6762356#!tab=feature​...
    Can't find the model in the support/drivers download section of the global hp website.
    How do I get the card reader to work? (assuming the unknown device is a card reader)
    This question was solved.
    View Solution.

    Hi
    Please find the link given below select Network and download the driver.
    Driver Link
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Need help in the following query

    Hi ,
    I have the following query to pull out data for a particular timeperiod( campaign)
    select
    da.acct_nr,smas.mrkt_id,smas.fld_sls_cmpgn_perd_id,smas.acct_key,smas.upln_acct_key,smas.awrd_sls_amt,smas.fld_net_sls_amt
    ,smas.stf_ind,da1.acct_nr,
    smas.fld_sls_cmpgn_perd_id,smas.acct_key,smas.upln_acct_key,smas.awrd_sls_amt,smas.fld_net_sls_amt
    ,smas.stf_ind,da1.acct_nr,prev.*
    From cdw.sum_mrkt_acct_sls smas
    join codi.dim_acct da
    on (smas.mrkt_id = da.mrkt_id and smas.acct_key = da.acct_key)
    join codi.dim_acct da1
    on (smas.mrkt_id = da1.mrkt_id and smas.UPLN_acct_key = da1.ACCT_KEY)
    where smas.acct_key in
    select dwnln_acct_key from codi.dim_ldrshp_genlgy
    where mrkt_id = 66 and fld_sls_cmpgn_perd_id = 20100304
    and root_upln_acct_key = (select acct_key from codi.dim_acct where acct_nr = '0032622' and mrkt_id = 66)
    and
    smas.mrkt_id = 66
    and smas.fld_sls_cmpgn_perd_id = 20100304
    and smas.sls_org_key <> -100
    order by 1
    So this query will pull out data for campaign 20100304
    No i want to modify the query to pull out data for 3 such campaigns.
    for a smas.acct_key
    so data will
    smas.acct_key all the data for 1st campaign , all the data for 2nd campaign. all the data for 3rd campaign
    Could you please help in modifying this query.
    Thanks

    How about this ??
    select da.acct_nr,
           smas.mrkt_id,
           smas.fld_sls_cmpgn_perd_id,
           smas.acct_key,
           smas.upln_acct_key,
           smas.awrd_sls_amt,
           smas.fld_net_sls_amt,
           smas.stf_ind,
           da1.acct_nr,
           smas.fld_sls_cmpgn_perd_id,
           smas.acct_key,
           smas.upln_acct_key,
           smas.awrd_sls_amt,
           smas.fld_net_sls_amt,
           smas.stf_ind,
           da1.acct_nr,
           prev.*
      From cdw.sum_mrkt_acct_sls smas
      join codi.dim_acct da on (smas.mrkt_id = da.mrkt_id and
                               smas.acct_key = da.acct_key)
      join codi.dim_acct da1 on (smas.mrkt_id = da1.mrkt_id and
                                smas.UPLN_acct_key = da1.ACCT_KEY)
    where smas.acct_key in (select dwnln_acct_key
                               from codi.dim_ldrshp_genlgy
                              where mrkt_id = 66
                                and fld_sls_cmpgn_perd_id in( 20100304,20100305,20100306)
                                and root_upln_acct_key =
                                    (select acct_key
                                       from codi.dim_acct
                                      where acct_nr = '0032622'
                                        and mrkt_id = 66))
       and smas.mrkt_id = 66
       and smas.fld_sls_cmpgn_perd_id in( 20100304,20100305,20100306)
       and smas.sls_org_key - 100
    order by 1

  • Need help for the query columns to rows

    Hi everyone,
    I have two tables TABLE1 and TABLE2; TABLE1 is Master table,TABLE2 is child table.
    The key for TABLE1 is C1 column
    The key for TABLE2 is C1,C_MONTH Columns
    The sample data is as follows
    TABLE1
    ======
    C1 C2
    1 A
    2 B
    3 C
    4 D
    TABLE2
    ======
    C1 C_MONTH C3
    1 JAN AAA
    1 FEB BBB
    1 MAR CCC
    1 APR DDD
    2 JAN ZZZ
    2 FEB YYY
    2 MAR XXX
    2 APR UUU
    I want to display the data as follows
    1 A JAN AAA FEB BBB MAR CCC APR DDD
    2 B JAN ZZZ FEB YYY MAR XXX APR UUU
    Can any one help me how to write this query?
    Thanks in advance

    [email protected] wrote:
    Thanks for the update
    but I want the out put as column values rather than one column as follows
    C1 C2 J_MONTH J_VALUE F_MONTH F_VALUE M_MONTH M_VALUE A_MONTH A_VALUE
    1 A JAN AAA FEB BBB MAR CCC APR DDD
    2 B JAN ZZZ FEB YYY MAR XXX APR UUUThis is a standard pivot.
    In 10g or below you can do something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with table1 as (
      2                  select 1 c1, 'A' c2 from dual union all
      3                  select 2, 'B' from dual union all
      4                  select 3, 'C' from dual union all
      5                  select 4, 'D' from dual
      6                 ),
      7       table2 as (
      8                  select 1 c1, 'JAN' C_MONTH,'AAA' C3 from dual union all
      9                  select 1,'FEB','BBB' C3 from dual union all
    10                  select 1,'MAR','CCC' C3 from dual union all
    11                  select 1,'APR','DDD' C3 from dual union all
    12                  select 2,'JAN','ZZZ' C3 from dual union all
    13                  select 2,'FEB','YYY' C3 from dual union all
    14                  select 2,'MAR','XXX' C3 from dual union all
    15                  select 2,'APR','UUU' C3 from dual
    16                 )
    17  -- end of test data
    18  select table1.c1, table1.c2
    19        ,max(decode(c_month, 'JAN', c_month)) as jan_month
    20        ,max(decode(c_month, 'JAN', c3)) as jan_value
    21        ,max(decode(c_month, 'FEB', c_month)) as feb_month
    22        ,max(decode(c_month, 'FEB', c3)) as feb_value
    23        ,max(decode(c_month, 'MAR', c_month)) as mar_month
    24        ,max(decode(c_month, 'MAR', c3)) as mar_value
    25        ,max(decode(c_month, 'APR', c_month)) as apr_month
    26        ,max(decode(c_month, 'APR', c3)) as apr_value
    27  from table1 join table2 on (table1.c1 = table2.c1)
    28* group by table1.c1, table1.c2
    SQL> /
            C1 C JAN JAN FEB FEB MAR MAR APR APR
             1 A JAN AAA FEB BBB MAR CCC APR DDD
             2 B JAN ZZZ FEB YYY MAR XXX APR UUU
    SQL>From 11g upwards you can use the new PIVOT keyword.

  • Need help with the following query

    I have the following data
    INVOICE_ID PAID_AMT PYMNT_GROSS_AMT DISCOUNT
    10151 1375 1375 55
    10151DC -44.81 -44.81 0
    20017 25 25 7
    Ok the data I want to grab the discount field is paid_amt = pymnt_gross_amt and discount <> 0. If however there is another invoice_id out there (same invoice ID except with a DC appended to it like 10151DC) then you want to select the differece between the discount field without the DC and the Invoice ID with the DC the paid_amt field.
    So the results would be.
    Invoice_ID Discount
    10151 10.19
    20017 7
    Thanks for all your help!

    Why scan same table twice when it can be achived using single scan :
    Hope this helps :
    with inv_data as
    (select '10151' invoice_id,
    1375 paid_amt,
              1375 pymnt_gross_amt,
              55 discount from dual
    union all
    select '10151DC' invoice_id,
    -44.81 paid_amt,
              -44.81 pymnt_gross_amt,
              0 discount from dual
    union all
    select '20017' invoice_id,
    25 paid_amt,
              25 pymnt_gross_amt,
              7 discount from dual)
    select replace(invoice_id,'DC') invoice_id,
    sum(case when invoice_id like '%DC' then pymnt_gross_amt
         else discount end) discount
    from inv_data
    group by replace(invoice_id,'DC')
    INVOICE DISCOUNT
    10151 10.19
    20017 7
    2 rows selected.

  • Hi friends need your help for the following !

    How to populate an idoc type.
    Is it only by writting a report program like
    "master idoc distribute"  or also by NACE.
    When i am using NACE then i must have the baic idoc type cretaed  with ALE configured ??

    Hi,
      It is not always by using NACE. If ur making use of standard IDOC types Like
    ORDERS05
    MATMAS06
    DEBMAS etc for the salesorder and purchase orders etc then u can go for the
    T.codes : BD10 for MATMAS05,
                   BD12 for CREMAS06,
                   BD14 for DEBMAS04 for the MM01, VD01 and MK01/XK01  T.codes Respectively.
    If u r dealing with NACE then u should know the basic idoc for which u r using NACE and Messgae type .
    There u will cofigure and assign the OUTPUTYPE and assign those outputtype to the respective T.code.
    Regards.

  • Need help in writing a select query to pull required data from 3 tables.

    Hi,
    I have three tables EmpIDs,EmpRoles and LatestRoles. I need to write a select Query to get roles of all employees present in EmpIDs table by referring EmpRoles and LatestRoles.
    The condition is first look into table EmpRoles and if it has more than one entry for a particular Employee ID than only need to get the Role from LatestRoles other wise consider
    the role from EmpRoles .
    Sample Script:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1),(2),(3)
    Insert into #EmpRoles values (1,'Role1'),(2,'Role1'),(2,'Role2'),(3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    Employee ID 2 is having two roles defined in EmpRoles so for EmpID 2 need to fetch Role from LatestRoles table and for
    remaining ID's need to fetch from EmpRoles .
    My Final Output of select query should be like below.
    EmpID Role
    1 Role1
    2 Role2
    3 Role1
    Please help.
    Mohan

    Mohan,
    Can you check if this answers your requirement:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1)
    Insert into #EmpIDs values (2)
    Insert into #EmpIDs values (3)
    Insert into #EmpRoles values (1,'Role1')
    Insert into #EmpRoles values (2,'Role2')
    Insert into #EmpRoles values (2,'Role1')
    Insert into #EmpRoles values (3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    --Method 1
    select e.EmplID,MIN(ISNULL(l.Designation,r.Designation)) as Designation
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    left join #latestRoles l on e.emplID=l.EmpID
    group by e.EmplID
    --Method 2
    ;with cte
    as
    select distinct e.EmplID,r.Designation,count(*) over(partition by e.emplID) cnt
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    select emplID,Designation
    from cte
    where cnt=1
    UNION ALL
    select a.EmplID,l.Designation
    from
    (select distinct EmplID from cte where cnt>1) a
    join #Latestroles l on a.EmplID=l.EmpID
    order by emplID
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • TS3276 I need feedback for the following issue. When I send email from this 27 inch iMac, the computer adds a string of characters in vertical column that represents the QWERTY key board, all alpha numeric characters are included. Yahoo mail, issue only o

    Restating my issue / question...
    When I send email from this iMac, there is a string of characters assigned. The characters are all the "alpha numeric" characters on the QWERTY key board. This only occurs when email is sent from this iMac. The issue does not manifest when using any other lap top or computer.
    Hence, I have ruled out the issue is a yahoo mail matter.
    Again, I can access the Yahoo mail account form multiple devices and send email without unintended assignment of character strings, but when I send wmail using this iMac, the issue happens everytime.
    Characters are stacked verticaly in a column. It looks as if all characters (except function keys) are included in the string.
    Any ideas?
    GMc

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Need sql for the following requirement

    EMP_DT EMP_TYPE emp_id
    01/01/2011               3 546
    01/03/2011 4 546
    01/05/2011 3 546
    01/08/2011 3 546
    01/09/2011 3 546
    01/10/2011 4 546
    01/12/2011 3 546
    01/14/2011 3 546
    01/16/2011 3 546
    01/18/2011 4 546
    01/19/2011 3 546
    Hi All,
    I have a table with two columns(emp date and type where date is mm/dd/yyyy type tied to employee).
    This data is inserted manually through online application. But behind the scenes I would like keep this date in the following fashion by a delete sql. When run the delete sql it should keep the data in following manner with employe type order 3,4,3,4,3,4 and so on. There shouldn't be any 3 empolyee type rows continuosly. Also when delete the data it should keep the smaller date out of three same employee type dates. example 01/12/2011,01/14/2011,01/16/2011 ---> we will keep the row 01/12/2011 and delete two other dates because they are same type of dates(3).
    EMP_DT EMP_TYPE emp_id
    01/01/2011               3 546
    01/03/2011 4 546
    01/05/2011 3 546
    01/10/2011 4 546
    01/12/2011 3 546
    01/18/2011 4 546
    01/19/2011 3 546

    Hi,
    So, on each row, you need to know what the value of emp_type was on the previous row. That sounds like a job for LAG.
    Here's one way to do that:
    WITH     got_prev_emp_type     AS
         SELECT     emp_dt, emp_type, emp_id
         ,     LAG (emp_type, 1, -1) OVER ( PARTITION BY  emp_id     -- Just guessing
                                                   ORDER BY      emp_dt
                                    ) AS prev_emp_type
         FROM    a_table
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT       emp_dt, emp_type, emp_id
    FROM       got_prev_emp_type
    WHERE       emp_type     != 3
    OR       prev_emp_type     != 3
    ORDER BY  emp_id
    ,            emp_dt
    ;This assumes that emp_dt is a DATE (or a TIMESTAMP). If it has some other dattype, convert it to a DATE.
    "DELETE" means "permanently remove rows from a table." Is that what you want, or do you just want to exclude some rows from a result set? The query above doesn't actually change the table. If that's what you want to do, you can use the query above as a sub-query in hte WHERE clause of a DELETE statement.
    DELETE  FROM  table_a
    WHERE  (emp_dt, ,emp_type, emp_id)   -- Just guessing
            NOT IN  (
                        WITH   got_prev_emp_type    AS
                    );This assumes that emp_dt, demp_type and demp_id are never NULL.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    If you're asking about a DML statement, such as DELETE, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using. All the code I psoted above assumes you have Oracle 9.1 or higher.

  • Need help for the infotype 15 in PA30 transaction

    Hi,
    My requirement is :
    In infotype 0015 when ever i change the amount i need old amount and new amount respectively.
    I am getting new amount by using below logic.
      "-- Get changed record
            CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
              EXPORTING
                PRELP = INNNN
              IMPORTING
                PNNNN = I0015.
    anybody can tell me how to get old amount.
    Thanks,
    Maheedhar

    Hi, Tadakamadla 
    You can do the following way i think.
    For Example
    date = begda -1 . " Begda of Current Record
    now select following way.
    Select single * from pa0015
    where pernr = pernr
      and endda = date.
    Hope will help you..
    Please Reply if any Issue,
    Regards,
    Faisal

Maybe you are looking for

  • Error 9006 and error -50

    these 2 errors keep coming up when i try to download the toronto blue jays world series game from 93 that i bought, i kept getting 9006 errror until i reinstealled itunes with the newest update, and now i get error -50, please help

  • Remove Duplicate Music Files, But Keep iTunes Copy

    How can you remove duplicate copies of music files on your hard drive but be sure to keep the one iTunes is using and keeping the iTunes Library intact? I have hundred of duplicate music files, using a tool like CleanGenius or others I can get a list

  • Servlets deployment problem

    Hello, everyone! The problem that I have might sound ridiculous but I am kind of desperate because I can't make head nor tail of it. I am using Tomcat 4.0 and JDK1.3.1_01 and the problem that I am facing is the following: I have an application called

  • Error upgrading repository to 11gR2

    Have a 10.2.0.4 repository and trying to upgrade to 11gR2. Ran the cat_owb.sql script, and unlocked the OWBSYS and OWBSYS_AUDIT acounts Ran the reset_owbcc_home.sql script Started the repository admin tool, selected "Upgrade Repository...", then "Exp

  • Coldfusion admin installed in a different location

    I am using coldfusion 9 and installed Condfusion 9 admin in a different location. I edited the web.xml and pointed to the new path. But the images path and java paths are not correct and I do not get any of the applets for mapping etc... Please help