I want to understand this select

delete from dept_copy where rowid in (select rowid from dept_copy minus
select max(rowid) from dept_copy group by DEPTNO, DNAME, LOC)
it used to delete reapted rows but i do not understatnd it
thanks

select rowid from dept_copyselects all [url http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/glossary.htm#sthref4205]rowids from dept_copy table
select max(rowid) from dept_copy group by DEPTNO, DNAME, LOCselect a rowid (not obligatory the last one, when "last" - meaning the last inserted) for each unique DEPTNO, DNAME, LOC combination
select rowid from dept_copy
minus
select max(rowid) from dept_copy group by DEPTNO, DNAME, LOCDoing [url http://www.gplivna.eu/papers/sql_set_operators.htm#p2.4]set operation minus to retain only rowids from first select, which are NOT selected by second select
delete from dept_copy where rowid in (some rowids)Deletes only these rows which are result of description right above.
Gints Plivna
http://www.gplivna.eu

Similar Messages

  • Some thing taht I want to understand in Css in ADF in panelTabbed

    I want to make style to panel tabbed when I hove a tab
    so I wrote
    af|panelTabbed::tab-content:hover{
      background-image: url("../img/tab1.png");
      vertical-align:          middle;
      text-align: center;
      width: 170px;
    }But this didn't work
    but When I used
    af|panelTabbed::tab:hover af|panelTabbed::tab-content{
      background-image: url("../img/tab1.png");
      vertical-align:          middle;
      text-align: center;
      width: 170px;
    }This worked with no problem
    but I want to understand this
    This line
    af|panelTabbed::tab-content:hover
    makes sense
    but this line
    af|panelTabbed::tab:hover af|panelTabbed::tab-content
    dont't make sense
    I want to understand this to be able to make my custom skin
    and what is the meaning of writing
    af|panelTabbed::tab:hover af|panelTabbed::tab-content
    without comma ","between them
    what this means

    This thread is a duplicate of {thread:id=2175114}

  • I want to use icloud on my macbook and cant because I am using OSX10.6.8 - I want to upgrade this but I cant upgrade to mountain lion as my mac does not support this - cannot find a way to go to Version 10.7.4 which i understand supports icloud - help

    want to use icloud on my macbook and cant because I am using OSX10.6.8 - I want to upgrade this but I cant upgrade to mountain lion as my mac does not support this - cannot find a way to go to Version 10.7.4 which i understand supports icloud - help to do this please

    If you purchased Lion for your iMac, just log into the Mac App Store from your MacBook using the Apple ID under which you purchased Lion and go to the Purchases page. You will be able to download and install Lion there. 
    searching the internet i found a link to upgrtade to 10.7
    The only place you get get Lion is from the Mac App Store. If you found some other site, that was an illegal copy and almost certainly tied to someone else's Apple ID and hence unusable by you. If the link was just to the Mac App Store, see above.
    As to the problem with synchronization to iCloud, that's not a 10.6 question, so I'd suggest you take up that specific issue in either the Lion or iCloud forums, providing full details, and someone there can probably help you sort things out.
    Regards.

  • Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?  I open gmail. I want to save an email to one of my folders. I position my cursor over the appropriate Folder icon or by choice, to th

    Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?
    I open gmail. I want to save an email to one of my folders.
    I position my cursor over the appropriate Folder icon or by choice, to the Trash.
    The friendly finger pointing cursor icon changes to an arrow icon.
    The hand icon allows me flawless access to opening and/or moving emails.
    The arrow, however does not open the link.
    On the Google menu bar the cursor hand with finger opens the links to Everett (my name), Search, Images, Maps and Play.
    When I attempt to open the remaining links in the menu bar (YouTube, News, Gmail, Drive, Calendar and More) the arrow icon replaces the hand. The arrow icon does not work. It will not activate these links.  Nor does it open email messages in the Inbox.
    Usually I reset, even reboot Safire and sometimes the problem goes away, then reappears.
    Can you imagine if this condition should it happen to a tech savvy Google Support person? Perhaps one can share and make my problem go away.
    I am considering dropping Google as my mail source. Unfortunate!
    Everett Halvorsen
    [email protected]
    718.490.3824

    I have uninstalled my Access Connection, but this problem seems to persist. IBM technician have changed the wireless card of my T60, the first few days after it was changed was very fine, no problem at all. About a week later, the problem occured again, and it happened quite frequently after that occurence. Now i really have no idea what is the cause and how to solve it. Will be greatful if there is anyone that can help me.

  • I could previously open my itunes program on my computer. Not now as when it asks, Do you want to allow this program to make changes to your computer and I select, Yes, it shuts down.  I have removed and re-installed itunes, checked firewall. Pls help

    I could previously open my itunes program on my computer and sync with ipad, ipod and iphone but no longer. When I select itunes a dialogue box opens  with question - "Do you want to allow this program to make changes to your computer"  When I select YES, it just shuts down.   I have removed and reinstalled itunes. have checked firewall and spent hours trying to fix. Please help.

    A possible cause of this error is that Firefox is set to run as Administrator.
    Check that Firefox isn't set to run as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    * Privilege Level: "Run this program as Administrator" should not be selected
    * "Run this program in compatibility mode for:" should not be selected
    Also check the Properties of the firefox.exe program in the Firefox program folder (C:\Program Files\Mozilla Firefox\).

  • Trying to purchase music, it sends me to verify my acct info, I do that hit done, it asks if I still want the purchase, I select Yes and it sends me back to verify billing information.  How can I get out of this darn loop and make my purchase?

    In itunes Store. Trying to purchase music, it sends me to verify my acct info, I do that, hit done, it asks if I still want the purchase, I select Yes and it sends me back to verify billing information.  How can I get out of this darn loop and make my purchase?

    Hi itunes for windows,
    If you are being repeatedly prompted to authorize iTunes, even after you have already done so, you may find the following article helpful:
    Apple Support: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Regards,
    - Brenden

  • I want to buy poker chips from my iTunes account, but not do this when i want to buy that say"please contact iTunes support ti complete this transaction"for what is this i dunt understand this.plz solv this probleams.

    Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams.but i parseas software from this account.so why not parseas poker chips? i have lote of blance in my account.so plz plz solve this provleams.
    <Personal Information Edited by Host>

    These are user-to-user forums, you are not talking to Apple here and they don't monitor these forums (I've asked the hosts to remove your email address from your post).
    You can contact iTunes support here and ask why you are getting the message and how to resolve it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • An OLD INACTIVE email address, asking for a password, continues to show up to play certain selections in my iTunes Music Library.  I want to REMOVE this old email, HOW DO I REMOVE IT!!  All attempts to remove it have failed!

    An OLD INACTIVE email address, asking for a password, continues to show up to play certain selections in my iTunes Music Library.  I want to REMOVE this old email address, HOW DO I REMOVE IT!!  All attempts to remove it have failed!

    Yes, if you change your Apple ID to your new email address. You don't have to. Under those sort of situations you can speak to Apple about transferring your purchased items to the new Apple ID, and see if they will help you.
    You don't lose access to your older purchased items, you simply cannot update or re-download them or, in some cases, use them without providing the old Apple ID and password. All purchased items are permanently tied to the Apple ID used at time of purchase.

  • I purchased Adobe Acrobat Standard V11 on one user account on one pc.  I want to remove this software and re-install it on another user account on the same pc.  Will this use an extra licence?  I understand this product comes with 2 licences but am hoping

    I purchased Adobe Acrobat Standard V11 on one user account on one pc.
    I want to remove this software and re-install it on another user account on the same pc.
    Will this use an extra licence?
    I understand this product comes with 2 licences but am hoping to retain the extra for another pc.

    My experience (limited) has been to expect it to be installed automatically for all users.
    What seems to be missing on the new user account?

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • HT1725 Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams

    Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams.but i parseas software from this account.so why not parseas poker chips? i have lote of blance in my account.so plz plz solve this provleams.
    <Personal Information Edited by Host>
    iPhone 4, iOS 5.1.1

    You will need to do what it says, contact iTunes support. Click the Support tab above, then the Get Started link in the Contact Apple Support area and you'll be guided. We are all just fellow users here and so have no idea about the cause of the issue nor any ability to resolve it for you.
    Regards.

  • Left outer join VS Is NULL .. Please help me to understand this.

    Hi Experts,
    I have a requirement to use Leftouter join on a column. But unfortunately i couldnt implement this in OBIEE. so instead iam using = and is NULL condition. kindly help me to understand this or give me a solution.
    Advance Thanks
    I am pasting the query here. look at the last line of the query there i want to modify.
    select Targ.organization_id,Targ.cycle_count_header_name,Targ.cycle_count_header_id,Targ.cc_class_name
    ,Targ.total_cycle_count_per_month,NVL(Act.Actual_count,0)actual_count,targ.month_year,Act.count_stat,targ.year count_date_current,length(act.count_status) count_status,nvl(length(act.count_status),0)
    from
    (select
      Dim_date.Year,
    Dim_date.month_year,
    target.organization_id,
                             target.cycle_count_header_name,
                             target.cycle_count_header_id,
                             target.abc_class_id,
                             target.CC_class_name,
                            target.inventory_item_id_count,
                          target.cycle_count_per_year,
                            target.total_cycle_count_per_year,
                  target.total_cycle_count_per_month                       
    from
    (SELECT DISTINCT
                   TO_NUMBER (TO_CHAR (count_date_current, 'yyyy'), '9999') Year,
                    TO_CHAR (count_date_current, 'MON-YYYY') month_year
              FROM mtl_cycle_count_entries_v)Dim_date,
    (SELECT mth.organization_id,
                             mth.cycle_count_header_name,
                             mth.cycle_count_header_id,
                             mtc.abc_class_id,
                             mtc.CC_class_name,
                             COUNT (mti.inventory_item_id) inventory_item_id_count,
                             MIN (mtc.num_counts_per_year) cycle_count_per_year,
                             COUNT (mti.inventory_item_id)
                             * MIN (mtc.num_counts_per_year)
                                total_cycle_count_per_year,
                             ROUND (
                                (COUNT (mti.inventory_item_id)
                                 * MIN (mtc.num_counts_per_year))
                                / 12)
                                total_cycle_count_per_month,
                                TO_NUMBER (TO_CHAR (mth.creation_date, 'yyyy'), '9999') Year
                        FROM mtl_cycle_count_headers_v mth,
                             mtl_cycle_count_items_v mti,
                             mtl_cycle_count_classes_v mtc
                       WHERE mth.cycle_count_header_id = mti.cycle_count_header_id
                             AND mth.cycle_count_header_id = mtc.cycle_count_header_id
                             AND mth.organization_id = mtc.organization_id
                             AND mtc.abc_class_id = mti.abc_class_id
                              GROUP BY mth.organization_id,
                             mth.cycle_count_header_id,
                             mth.cycle_count_header_name,
                             mtc.abc_class_id,
                             mtc.CC_class_name,
                             TO_NUMBER (TO_CHAR (mth.creation_date, 'yyyy'), '9999')
                             ) Target
                                    where dim_date.Year=Target.Year) Targ,
                                  (SELECT --TRUNC (count_date_current) count_date_current,
                             TO_CHAR (count_date_current, 'MON-YYYY') Month_year,
                             abc_class_name,
                             count_status count_stat,
                             organization_id,
                             cycle_count_header_id,
                             count_status,
                             SUM (NUMBER_OF_COUNTS) Actual_count
                        FROM MTL_CYCLE_COUNT_ENTRIES_V
                    GROUP BY organization_id,
                             --TRUNC (count_date_current),
                             cycle_count_header_id,
                             TO_CHAR (count_date_current, 'MON-YYYY'),
                             abc_class_name,
                             count_status)Act
                           WHERE act.cycle_count_header_id(+) = targ.cycle_count_header_id
                   AND act.organization_id(+) = targ.organization_id
                   AND act.abc_class_name(+) = targ.cc_class_name
                    AND act.Month_year(+)=targ.month_year
                    AND targ.organization_id=254
                            AND targ.Cycle_count_header_id=3026
                             AND targ.CC_CLASS_NAME= 'A PARTS'
                             and act.count_status (+)='Rejected'I need to replace the final line act.count_status(+)='Rejected' with
    (act.count_status='Rejected' and act.count_status is NULL)But i am getting difference in data. what might be the reason?.. I am a naive user to oracle. Kindly help me and any help will be appreciated.
    Thanks alot.

    Data set for both i am enclosing here. Kindly have a look in to that.
    254     OPSCAST0909     3026     A PARTS     7     1     Dec-09     Rejected     2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Feb-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Sep-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jul-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     May-09          2009          Data Set for outer join          
    254     OPSCAST0909     3026     A PARTS     7     0     Oct-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jun-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jan-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Nov-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Apr-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Aug-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Mar-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     1     Dec-09     Rejected     2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Feb-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jul-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     May-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jun-09          2009          Data set of IS NULL          
    254     OPSCAST0909     3026     A PARTS     7     0     Jan-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Apr-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Aug-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Mar-09          2009                    

  • Why this select statement is failing

    Hi to all experts.
    Im not able to understand why this select statement is not fetching the record with this parameters. When i give the same parameters in se11 table t512w.. It has one record, but here the sy-subrc Value is 4.
    select  * from t512w where molga EQ '15'
             and lgart in g_lgart01
           and endda gt pn-endda
       and begda lt pn-endda.

    Dear Mohamed,
    This Select Statement is bound to Fail. When you are doing a select * from T512W, you intend to get a single record from T512W into the work area T512W which you have declared using TABLES statement. So, here you need to use Select single instead of Select *
    If you want more data, then you declare an internal table, say gt_t512w type standard table of t512w and use "
    Select from T512W
    Into TABLE GT_T512W
    WHERE ........
    Hope this solves your problem.
    Regards,
    Amit Sharma

  • HT1925 When I try to uninstall apple updater I get a message that says " The feature you are trying to use is on a network resource that is unavailable." I dont understand this. How can I finish uninstalling the apple update program?

    When I try to uninstall apple updater I get a message that says " The feature you are trying to use is on a network resource that is unavailable." I dont understand this. How can I finish uninstalling the apple update program?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a

    I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a page.
    Also I have noticed opened windows that I have not opened.
    I have verified the sharing folder and also the remote access but it not let me turn it off.
    Also I have add a password to my computer and even using the same one it looks like is not working.
    The I photo stopped working, Mac Mail does not let me add rules (this is from one day to the other)
    The computer is mine, the internet I use is payed by me with a password. I did not give permission to anyone to use my computer or share my files.
    In system preferences in the sharing folder is showing everyone and staff.
    My computer is private I do not own a company and I do not have a network set up in my house.
    I had my photos removed from my computer and even after trying to reinstall I photo and fix the Mac Mail is not working.
    I am receiving emails saying that I have sent emails to people that I do not know and including in a time where I am working and not using the computer.
    Any suggestions in how to fix this issue?
    I really appreciate.

    With the multitude of issues you have I would take it to an Apple store or AASP and have them sort it out. Then I would sign up for Apple camp or one on one.

Maybe you are looking for

  • Number of currently displayed rows in report with pagination?

    Maybe I'm thinking to complicated, but ... In my report I use the HTMLDB_ITEM.CHECKBOX function in order to display a checkbox for each row: HTMLDB_ITEM.CHECKBOX(1,"ID",NULL,:P311_ASSIGNED,':') " " Some of the checkboxes are selected depending on whe

  • My 6th Gen iPod nano is not recognised in iTunes, but is in windows.

    Up until this morning my ipod was working fine with iTunes. I updates iTunes this morning and then a message came up stating that iTunes knew there was a device but it couldnt access it or something along those lines. It said if this problem continue

  • Problem inView Attachment List in ECC6

    For creating View Attachment List, I code like below. data  ls_object type borident. ls_object-objtype = 'ZRECON'.     ls_object-objkey = gs_rec_all_scr-reconobj.     create object go_myobject     exporting is_object = ls_object     ip_no_commit = 'R

  • How to access the sql database in applet?

    How to access the sql database in applet? Please help me.

  • Automate face finding & cropping

    Hi, I am looking for a software or plug-in for Photoshop which can automatically find face on photo and then crop it (if cropping of the face is not perfect it is ok) or make a portrait. Then save result which can be used by Photoshop scripts. There