A query to know which all rows have been modified???

Question: A column stores a number (or sequence) for say Invoice Number and it has values like say
Invoice_Number
1
2
3
4
5
6
7
8
9
10
Assume that someone updates/deletes few of these rows...say 3,4,6,9
now auditors want to find out how many invoice_numbers are missing....offcourse in real life there might be millions/billions of rows...
using only SQL how can one find out this info quickly.

Eric,
Instead have a DELETE_FLAG or END_DATE or something indicating the row is now effectively deleted. Nice one, but that implies you don't work on table but on a view and INSTEAD OF trigger, to avoid any delete directly inside your table.
But in that case, you must avoid any SQL*Plus (or any other tools) access, do not update directly the table, or add a trigger on delete for your table and raise an error.
Well, that depend of application code.
Nicolas.

Similar Messages

  • Sales docs for which all OD have been completed are appear in BW

    Hello experts,
    I have few sales docs for which all outbound deliveries have been completed... Now the issue is these delivered items shouldnt appear at BW side.
    Can somebody give me some light... what should be taken care and whr (in R/3 or BW)
    As per me i didnt found any issue with BW side... as general these completed OD shouldnt appear in BW and these can be deallocate in R/3. But i dont know the process or steps of de-allocation.
    Regards
    Reddy Srinivasa
    Edited by: SiNU reddy on Feb 16, 2011 6:15 PM

    Gopi
    I think you should work from SD Sales Order first. Did you try rejecting the sales order items without doing anything to the PO.
    Also check what requirement routines you have in IMG T codes OVB5 (Maintain Requirements For Purchase And Assembly Orders) and OVB8  (Maintain Requirements For Transfer Of Requirements).
    Hope this helps.

  • How do I know which add-ons have been validated as safe? When clicking "Add to Firefox" I get the scary warning window about only using add-ons from trusted

    The scary warning that appears when I click "Add to Firefox" for a certain add-on discourages me from actually installing it.
    "Install add-ons only from authors whom you trust. Malicious software can damage your computer or violate your privacy . . . (author not verified)"
    In particular, I'm interested in the Password Exporter add-on. I want to be especially cautious as this will access all my passwords stored in Firefox. How do I actually know if an add-on is safe or not?

    If you are talking about "Password Exporter 1.2.1", it's safe as I have been using that add-on for years and love it.

  • Not all rows have been retrieved.Data may be inaccurate

    Hai all,
    I have 12500 records in my table..when using disco, when am fetching all the records it is always displaying only 10,000 records.. and it displays the a/m subjected error and displays only 10k rows..
    Any suggestions ?
    Yusuf

    I have a user that is getting this error when she attempts to print the report.
    However I've run the SQL separately & I don't understand why the error is occurring. The SQL returns only 40 rows and the default return is set for 2000 rows.
    Any ideas?

  • How to find out in program which all classes have implemented an interface

    Hello,
    I have created an interface and few classes are implementing the interface.
    I want to know in a program which all class have implemented the interface.
    Is it possible to find it out and how?
    Regards,
    Bikash.

    Hi Bikash,
    Read the Database view VSEOIMPLEM with where condition REFCLSNAME = Interface Name and version = 1.
    This would give you all the classes which have implemented the interface and are active...
    If you want to look at the values that the field version can have then see Type Group SEOC ans search for version....
    Hope this help...
    Regards,
    Sitakant

  • TS4268 I am being charged for international msgs which i haven't sent to a number of the UK.i tried to activate my iMessage and FaceTime using wifi but then it didn't connect. all settings have been turned off but my acc. is being charged.what to do?

    I am being charged for international msgs which i haven't sent to a number of the UK.i tried to activate my iMessage and FaceTime using wifi but then it didn't connect. all settings have been turned off in my phone! i also have reset my phone with all the settings. but when i contacted my carrier, he said that the balance deduction is because of the international messages i have sent, but i have sent NONE! every time i switch on my phone, balance gets deducted. imessage and facetime are all disabled! but then the problem started since yesterday when i tried to activate them but had disabled them all at the next moment! but the charges are still being applicable for some international messages as per my mobile carrier. what to do? is there some problem with my phone or carrier?

    I am being charged for international msgs which i haven't sent to a number of the UK.i tried to activate my iMessage and FaceTime using wifi but then it didn't connect. all settings have been turned off in my phone! i also have reset my phone with all the settings. but when i contacted my carrier, he said that the balance deduction is because of the international messages i have sent, but i have sent NONE! every time i switch on my phone, balance gets deducted. imessage and facetime are all disabled! but then the problem started since yesterday when i tried to activate them but had disabled them all at the next moment! but the charges are still being applicable for some international messages as per my mobile carrier. what to do? is there some problem with my phone or carrier?

  • SQL query to know which users are working on which forms in APPS R12

    Dear gurus
    We need the SQL query to know which users are working on which forms in APPS R12, and how to get the user.name of those records.
    thanks in advance
    best regards

    Hi,
    Please see this thread.
    USERS CONNECTED
    Re: USERS CONNECTED
    Regards,
    Hussein

  • How to know how many carts have been ordered as "bought on behalf of"

    I'm looking for a way to know how many carts have been order in the past six months as "bought on behalf of" I've looked at tables CRMD_PARTNER and BUT000 but, I'm not sure how to determine what are the key fields and the SAP queries that I'll need to obtain such count. Any help will be appreciated. Thanks,

    I'm in Classic scenario which means that the PO and other relevant documents are stored in ECC. A programmer here helped me to obtain the information that I was looking for by querying the PO header and PO items tables (EKKO, EKPO) for those orders where the requestor and the bought on behalf of persons where different (ERNAM, AFNAM):
    SELECT DISTINCT EKKO~EBELN EKKO~ERNAM EKPO~AFNAM
    FROM EKKO
    INNER JOIN EKPO ON EKKO~EBELN = EKPO~EBELN
    WHERE EKKO~BSART = 'EC'
    AND EKKO~ERNAM <> EKPO~AFNAM
    AND EKKO~AEDAT > '20110101'
    Thanks All for your help,
    Oscar.

  • Check which data records have been updated or created by the business rule.

    Dear all,
       Is there any way to check which data records have been updated or created by the business rule?
       For ex:
       When I run a data package which execute some standard store procedure and the log shows :
    Executing SPRUNCONVERSION  'LEGALAPP', [ACTUAL], [GGGG],'GLOBAL','SPSCOPE_42412','SPLOG_125272'
    SPRunConversion Version 2.06
    20071200 - 210 Rows Calulated
    20071200 - 84 Rows Updated
    Anyway to see the data content of "84 Rows Updated "?
    Best Regards,
    Jeff

    Yes each aplication has 3 fact tables:
    FACTWB:Real time storage, when you send data it is stored here and this is linked to the FACTWB partition in OLAP which is a ROLAP partition to enable real time updates of the data.
    FAC2: Short term storage. If too many records are in the FACTWB the aplication becomes slow because these records need to be queried by the OLAP engine everytime new records are send to the database. To clean up te real time storage you can do a lite optimize, which will move the FACTWB records to the FAC2 partition. this lite optimize can be done even when users are in the system.
    FACT: this is the long term storage. When your reporting is finished you can run a full optimize to clean up both FACTWB and FAC2 tables and store it in the FACT table. This contains all your historical records.
    Evertime you run a reort, SAP BPC is looking at all 3 partitions and combines the data of the 3 partitions to present the correct value in your report. Remember that BPC is posting differences in the WB and not the final values. So if you have for example a record with 10 in the FAC2 partition and you send 12 to the database for that intersection, BPC will post only 2. When running a report it combines the 10 and the 2 which makes 12.
    Hope this makes it more clear.
    Joost
    Edited by: Joost Hoppenbrouwers on May 6, 2008 12:19 PM : Seems that James and I where writing pretty much the same post at the same time

  • How to Know, No. of Rows has been Update, throught Triggers

    Hi all,
    I am having problem in after update trigger. I want to know How many rows has been updated by a sql statement, for that I have written on (AFTER UPDATE TRIGGER ON EMP). But it is not giving any result. I am executing Update statement from
    Sqlplus (UPDATE EMP SET SAL=23 WHERE EMPNO=7369;) We cant use Commit, and dbms_output.put_line in trigger. thats why I have used exception.
    CREATE OR REPLACE TRIGGER EMP_UPDATE AFTER UPDATE ON EMP
    DECLARE
    NO      NUMBER;
    NOROW      EXCEPTION;
    PRAGMA      EXCEPTION_INIT(NOROW, -20101);
    BEGIN
    NO:=SQL%ROWCOUNT;
    IF NO<>0 THEN
    RAISE_APPLICATION_ERROR(-20101,'Some Rows UPDATED');
    END IF;
    END;

    Hi Sachindra
    What SQL*Plus version you are using?
    Some versions that come with forms6i they dont write the number of rows updated, they just write operation 44 succeeded or something like that.
    But if you use the SQL*Plus database client (sqlplusw.exe or sqlplus.exe) which those 2 get installed with the db you will be able to see the number of rows update/deleted/inserted
    SQL> conn scott/tiger
    Connected.
    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)
    SQL> UPDATE EMP SET SAL = 23 WHERE EMPNO = 7369;
    1 row updated.
    SQL>
    Hope this helps
    Regards
    Tony G.

  • SAP report showing sales orders on which pricing conditions have been chang

    Is there a SAP report that shows a list of sales orders on which pricing conditions have been changed.
    My knowledge is:
    Review pricing condition transaction data table (‘KONV’) helps is some way.

    Hi Ashish,
    I don't know any such a report, but I guess you can play arround with table CDPOS.
    Change doc. object = VERKBELEG
    Table Name = KONVC.
    Actually this will take lot of time.
    Thanks,
    Mandar

  • How do I download an iTunes purchase when it says "All purchases have been downloaded for this Apple ID."

    I have a season pass, so I've already 'purchased' all episodes as they come out.
    I get an e-mail saying a new episode is available, I go to iTunes, then Store > Check for Available Downloads...
    After a few seconds, I get an error: "All purchases have been downloaded for this Apple ID."
    This happens to me frequently. Eventually (usually when the next episode comes out), it just works.
    It never allows me to start the download. Since the episode isn't recognized as being on my Apple ID to download in the first place, I obviously can't "re-download" it. Neither checking for downloads, nor redownloading will alow me to get the new episode.
    Since I only have one Apple ID, I'm obviously using the right one. I just logged out of my Apple ID and back in, nothing. I changed my password and updated my Apple ID details, logged in again, nothing. I don't have any special firewalls/scanners/security software, just Apple's built-in Mac OS firewall.
    This is iTunes 11.0.2 (the current version) on my MacBook Pro.
    So... how do I get the episode?

    I pressed my Apple support person to verify if this was a known issue, here is her response:
    This is Irish again from the iTunes Store Support.
    I have confirmed that this is a known issue. Please trust that Apple is currently working towards a resolution. I know that this has been said a lot, but I apologize for any inconvenience this has caused you.
    As an alternative, we recommend our customers to try downloading the latest episodes through our iTunes in the Cloud feature.
    For those of you who do not know how to download the episode manually:
    1.     Go to iTunes and log in
    2.     Go to the iTunes store, home page
    3.     On the right, click on "Purchased"
    4.     At the top, choose "TV Shows"
    5.     On the right, choose the TV show you want to download (eg: Walking Dead)
    6.     Choose the Season (3 for Walking Dead)
    7.     A window of episodes will open, scroll down to episode 30 and you'll notice it says it's not downloaded yet. 8.     Click on the Cloud icon and start downloading.
    Not as easy as clicking once on "Check for available downloads!"
    Cole

  • Trying to do a password update but it asks me for a four digit pass code. Does anyone know if that would have been a significant date or set of letters or numbers I was prompt for in the past when I first bought my phone?  Thanks.

    Trying to do a password update but it asks me for a four digit pass code. Does anyone know if that would have been a significant date or set of letters or numbers I was prompt for in the past when I first bought my phone?  Thanks.

    It rather depends on where you are seeing the demand for a passcode. If, as I assumed, you are trying to change the password at http://appleid/apple.com then that will ask for a passcode if 2-step verification has been set up. On the other hand, if, as Csound1 has assumed, you have changed the password on that website and are trying to enter it in your phone (for which you need to sign out completely before you can do this) and are being asked for a passcode that can only be one you set yourself (unless of course the phone is second-hand in which case that would open a whole new can of worms).

  • "All purchases have been downloaded for this Apple ID." What does this mean?

    I must be misunderstanding what this means. I assume that when I choose the menu item Check for available downloads... it will find things in the store that I have purchased, but not downloaded. For example I subscribe to Justified and Better Call Saul. I choose this menu item on the morning after these shows air, and I get the dialog box telling me 'All purchases have been downloaded for this Apple ID." I have find show in the store and then download them manually.
    2011 iMac
    Yosemite
    ITunes 12.1.0.50

    I pressed my Apple support person to verify if this was a known issue, here is her response:
    This is Irish again from the iTunes Store Support.
    I have confirmed that this is a known issue. Please trust that Apple is currently working towards a resolution. I know that this has been said a lot, but I apologize for any inconvenience this has caused you.
    As an alternative, we recommend our customers to try downloading the latest episodes through our iTunes in the Cloud feature.
    For those of you who do not know how to download the episode manually:
    1.     Go to iTunes and log in
    2.     Go to the iTunes store, home page
    3.     On the right, click on "Purchased"
    4.     At the top, choose "TV Shows"
    5.     On the right, choose the TV show you want to download (eg: Walking Dead)
    6.     Choose the Season (3 for Walking Dead)
    7.     A window of episodes will open, scroll down to episode 30 and you'll notice it says it's not downloaded yet. 8.     Click on the Cloud icon and start downloading.
    Not as easy as clicking once on "Check for available downloads!"
    Cole

  • All purchases have been downloaded for this Apple ID

    Starting three days ago, my ITunes says "all purchases have been downloaded for this Apple ID" when there is content available for download.
    Apple responded to my first support request by making the episode available.  The next day, same issue!  I again wrote tech support, but no response.  Day three, same issue and I've written them again.
    When I go to purchases, the episode is there and says that it has not been downloaded.  But if I use "check for available downloads" it says they have all been downloaded.
    I've done all the obvious things, rebooted, made sure I had the latest copy of iTunes, cleared the iTunes cache, but those did not help.
    I have not made any changes to the computer or iTunes around the time this started happening.
    Anyone else experiencing this?  Any ideas for a solution?
    The convenience of automatic downloads has suddenly disappeared!

    I pressed my Apple support person to verify if this was a known issue, here is her response:
    This is Irish again from the iTunes Store Support.
    I have confirmed that this is a known issue. Please trust that Apple is currently working towards a resolution. I know that this has been said a lot, but I apologize for any inconvenience this has caused you.
    As an alternative, we recommend our customers to try downloading the latest episodes through our iTunes in the Cloud feature.
    For those of you who do not know how to download the episode manually:
    1.     Go to iTunes and log in
    2.     Go to the iTunes store, home page
    3.     On the right, click on "Purchased"
    4.     At the top, choose "TV Shows"
    5.     On the right, choose the TV show you want to download (eg: Walking Dead)
    6.     Choose the Season (3 for Walking Dead)
    7.     A window of episodes will open, scroll down to episode 30 and you'll notice it says it's not downloaded yet. 8.     Click on the Cloud icon and start downloading.
    Not as easy as clicking once on "Check for available downloads!"
    Cole

Maybe you are looking for

  • 100% CPU usage with XP Cooler from PCAlert4

         Any idea why I would be running 100% cpu usage when running XP Cooler from PCAlert4?  I noticed PC was sluggish when running it so CTRL+ALT+DEL and under performance is 100% CPU with 245MB Ram Usage. No other TSR's running - several application

  • Scrollpane to applet size urgent!!!

    Hi, I have 2 issues in my project. 1. I want JScrollPane container in my applet to take the size of applet. 2. I want applet to take the size of browser. Applet might be run on different computers with different resolutions. So, I want the applet to

  • Open Documents window Title

    Hello I am a SAP user (purchasing manager) of 2 companies, one in USA and one Colombia. in Both we run SAP Business One. I like the software and that is why I take time asking employees their user experience to pass it on to SAP developers. THe open

  • Help required in substring the name

    Hi, I have column with name = lastname,firstname, i want divide and insert into firstname = firstname and lastname = lastname, how can i do that??? Thanks in advance regards, naveen

  • Satellite X200 20G - Fn keys pop-up screen doesn't appear anymore

    Good morning, I hope you could help me on the following: I have just noticed that when I place the cursor at the top of the screen, the pop-up screen with the functions keys no longer appears... What did I do??? I don't think I have made any change t