Percentage calculation from a certain point in time

I am trying to calculate the pass rate from after the ID studied a particular UNIT.
So I want to get the rate AFTER they studied their PREP01 unit
So right now  the code below works fine but it considers all units.
ID 1 studied one UNIT in 2010 which is before PREP so I do not want to consider it.
Also studied FGT459 in 2011 SP 1 as well as their FIRST PREP unit in SP 1 so i DO NOT want to consider it. IF A UNIT HAS BEEN DONE AT THE SAME TIME AS THE PREP01 UNIT I WOULD LIKE TO IGNORE IT.
After the PREP unit i want to consider any unit which has the Status as PRESENT. so out of the 3 remaning units they passed 1 and failed 3 so the percentage pass is 33.3%
Right now my code gives me 66.7% coz i condier all units.
I would only like to consider after PREP has been studied (PRESENT) IF A UNIT HAS BEEN DONE AT THE SAME TIME AS THE PREP01 UNIT I WOULD LIKE TO IGNORE IT.
Thanks for any assistance.
The code I tried is:
select  d1.id, ROUND(avg(case PASS_OR_BETTER
              when 'Y' then 1
              else          0
              end ) * 100,1)  as Pass
FROM DAN_SPIL_GRADE_IDS D1, DAN_SPIL_GRADE D2
WHERE D1.GRADE = D2.GRADE
AND D1.STATUS = 'PRESENT'
group by d1.id
TABLE1
CREATE TABLE DAN_SPIL_GRADE_IDS
(ID     VARCHAR2(8),
UNIT    VARCHAR2(8),
STATUS VARCHAR2(8),
GRADE VARCHAR2(12),
YEAR VARCHAR2(12),
PERIOD VARCHAR2(12));
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','FGT458','PRESENT','HD','2010','SP4');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','FGT459','PRESENT','HD','2011','SP1');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','PREP01','PRESENT','P','2011','SP1');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','OPT878','ABSENT' ,'F','2011','SP2');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','FRE111','PRESENT','D','2011','SP3');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','PREP02','PRESENT','F','2012','SP1');
INSERT INTO DAN_SPIL_GRADE_IDS (ID, UNIT,STATUS,GRADE,YEAR,PERIOD) VALUES ('1','PREP03','PRESENT','F','2013','SP4');
ID
UNIT
STATUS
GRADE
YEAR
PERIOD
1
FGT458
PRESENT
HD
2010
SP4
1
FGT459
PRESENT
HD
2011
SP1
1
PREP01
PRESENT
P
2011
SP1
1
OPT878
APSENT
F
2011
SP2
1
FRE111
PRESENT
D
2011
SP3
1
PREP02
PRESENT
F
2012
SP1
1
PREP03
PRESENT
F
2013
SP4
TABLE2
CREATE TABLE DAN_SPIL_GRADE
(GRADE     VARCHAR2(8),
PASS_OR_BETTER VARCHAR2(12));
INSERT INTO DAN_SPIL_GRADE (GRADE, PASS_OR_BETTER) VALUES ('HD','Y');
INSERT INTO DAN_SPIL_GRADE (GRADE, PASS_OR_BETTER) VALUES ('D','Y');
INSERT INTO DAN_SPIL_GRADE (GRADE, PASS_OR_BETTER) VALUES ('P','Y');
INSERT INTO DAN_SPIL_GRADE (GRADE, PASS_OR_BETTER) VALUES ('F','N');
GRADE
PASS OR BETTER
HD
Y
D
Y
P
Y
F
N
GIves:
ID
PASS RATE
1
66.7
Want
ID
PASS RATE
1
33.3

Thanks for you assistance
I found an example which has  me puzzled
using your code on a case such as
ID
UNIT
STATUS
GRADE
YEAR
PERIOD
2
SUS108
PRESENT
F
2013
SP1
2
PREP01
PRESENT
F
2012
SP1
2
SSH100
PRESENT
F
2012
SP3
2
COD125
PRESENT
F
2012
SP2
2
SOC134
PRESENT
D
2012
SP1
2
SGY110
PRESENT
F
2011
SP1
2
SOC105
PRESENT
F
2012
SP3
Where ID 2 studied 4 units after PREP01 in 2012 SP 1
STUDIED:
2
2012
SOC105
SP3
OTHER
F
2
2013
SUS108
SP1
OTHER
F
2
2012
SSH100
SP3
OTHER
F
2
2012
COD125
SP2
OTHER
F
Your code gives 20% when it should give 0 because after PREP01 2012 SP1 the ID Failed everything

Similar Messages

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • I'm having problems creating a slideshow that I can burn to a DVD. I can see all of the pictures but it goes black at a certain point every time. I'm using iPhoto. I've tried copying it but the same thing happens. Ideas?

    I've loaded about 100 photos into a slideshow that I would like to burn into a DVD to share with friends at a 50th birthday celebration. It keeps going black at a certain point but I can see the pictures in the cue. Any ideas on how to correct this and how to burn it to disc easily? Thanks! This is my first time trying to do this.

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    how are you trying to export the slideshow?
    Here's how I recommend one get a slideshnow to iDVD: export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Anyway to watch project from a certain point in imovie?

    Is there anyway to watch your project from a certain spot? Instead of having to watch the whole thing? Whenever i click on a specific spot for my video to start it just starts from the beginning.

    Why yes indeed, just move the mouse to where you want to start playing on the timeline. Now press on the Spacebar and Voila, it starts playing from that point forward. Stop, just hit spacebar again. It's like play/pause button on a cd player or vcr.

  • I think my restoration freezes at a certain point each time I try

    I run on Windows XP and have an Ipod Touch 3rd generation. I had the 3.1.2 OS, and I tried to update to the 3.1.3. version. My ipod fell off my desk and pulled itself free of its cable that keeps it connected to my tower. Because of that, my OS screwed up and needed restoring. So, when I try to do that, it starts all the normal processes. But once the ipod touch's screen changes to the picture of the Apple logo and the first loading bar, the bar stops filling in just a bit into the process, and the process seems to stop without showing any errors or anything.
    Is this just a really long process (like days)? Or do I need to do something else?
    I've updated tot he latest itunes and have even tried rebooting my computer, but the same problem occurs each time.
    Thank you.

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    how are you trying to export the slideshow?
    Here's how I recommend one get a slideshnow to iDVD: export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • How can you play the project from a certain point without having to watch it over from the beginning?

    I'm doing a project on iMovie and whenever I want to replay it replays from the beginning not from the point in the project that I would like to preview it from. How can I change this?

    Move the playhead to wherever you want to start then press the space bar.
    Geoff.

  • On macbook pro when logging in the loading bar gets to a certain point every time then crashes

    I recently upgraded to yosemite, I tried to go on my macbook but after I log in the system shuts down automatically

    OK, let's try this: as it sounds as if there's something wrong with your hard drive.
    Try booting into Internet recovery by holding down the command, option and R keys whilst booting. Make certain that you have a good Internet connection before doing this. Eventually (and it will take a while) you'll see a globe on your screen and then, eventually again, the Recovery screen. Select Disk Utility, then at the top left highlight your boot drive (usually named "Macintosh HD" unless you've changed it) and click on the "Verify" button. If everything's OK with your boot drive you'll get a green text telling you that. If it needs to be repaired, then you can try to repair it. If it does need to be repaired, I'm hoping that you already have a back-up in place as there's probably a 50/50 chance of Disk Utility being able to repair the drive.
    Clinton
    MacBook Pro (15” Late 2011), OS X Yosemite 10.10, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display

  • When Logic will only play from a certain point...

    Hey
    Did a search on that. No result.
    What is this about? What am I overlooking?
    I have this song: I go to locator 1, press play, and then it jumps to bar 84.
    Whenever I press play it jumps to bar 84!
    I´m sure it´s straghtforward simple, but help me out.
    Thanks!
    JanD

    Eriksimon wrote:
    What happens at bar 84?
    A lot, in the middle of a chorus.
    Have you got Cycle mode on?
    Yes, but this also happens when cycle is off.
    What key is play for you?
    Spacebar
    What does the *key command window* tell you this key is assigned to?
    Play and stop
    And what happens at bar 84?
    When you close the song and reopen it, does it still happen? And if you quit and restart Logic? - restart the Mac?
    A restart often helps. I´ve seen this 3 or 4 time before.
    If you make a fresh song, does it still happen?
    No.
    And please tell me what happens at bar 84...
    I wish I could tell.
    This issue comes and goes.
    This problematic song was just around a MacPro with a PTHD system.
    And working on that system I noticed a few anormalities...Like the key command for
    colors didn´t work, even though I imported my own set of KC.
    In general I experience most problem when I move projects between computers.
    (I don´t mean missing samples and plug ins)
    So maybe that´s the culprit.
    JanD
    JanD

  • Calculating MAP at a point in time

    Hi,
    I need to find the MAP for a list of materials as of 06-30-2009.  Which table do I use?  MBEW, MBEWH or both?
    If I have to use both, please explain SIMPLY and CONCISELY how to do it.  Looking at these tables is confusing.  It seems that both have dates for periods/fiscal years in the past. 
    Thanks,
    Kevin

    Hello Kevin,
    MBEW stores the the latest stock valuation details & MBEWH stores the stock valuation history for the material.
    Suppose you are in 03.2009 &  for Mat. M1 there is no stock movement till period 03.2009 (for the year 2009), MBEW will have the data for 03.2009 (the period & year are irrelevant as it is the current stock valn) & in MBEWH you have the data for the last year i.e., 12.2008 (LFGJA = 2008, LFMON = 12).
    Now in 04.2009 you have some stock mvmt & there is change in mat. valn. So the latest valn will move to MBEW & the last valn details (i.e., of 03.2009) now moves to MBEWH (LFGJA = 2009, LFMON = 03).
    It will be very clear to you once you check MBEW, MBEWH along with MB5B. In MB5B you can check the mat. mvmt data & see how the data in tables MBEW & MBEWH are modified based on mat mvmt.
    BR,
    Suhas
    PS: Try consulting an MM functional, he may answer in a better language

  • Point in time snapshot

    Hi,
    I'm very new to Oracle and this is my first post so if I miss anything important, please excuse my ignorance...
    We have a Oracle 10g datawarehouse which contains service desk data on tickets, agent performance etc.
    I'm specifically trying to obtain a count of tickets that were in an active status and were sat with a certain group at a certain point in time.
    The table TICKETS contains the usual ticket data, ticketnumber, open date, close date etc and the refgroup field which indicates current group ownership.
    The select statement below works for all tickets currently owned by Group1 that were active (not closed) at 00:00:00 on Monday but doesn't take into account changes in group ownership so a ticket could be counted by the statement on first run but if the group changes, it will not be included.
    We have a table which records SLA events for each ticket such as (but not only) group transfers and the date each transfer took place and this table is linked from the TICKETS table via a ticket ID field in each.
    Each row in this table has a GroupName value to show the group responsible for each event, as in the below example.
    If for example the snapshot date is 13/07/09 00:00:00, is there a way to calculate from the SLA events records as below, whether Ticket1 fits this criteria?
    This is basically an expression field in Crystal Reports so I can work with either a field that returns a 1 or 0 at the ticket level and then count within the app, or a field that returns a total count of all tickets that fit this criteria.
    Thanks alot in advance.
    Andy.
    TicketNumber GroupName EventDateTime
    Ticket1 Group1 09/07/09 08:43:21
    Ticket1 Group1 09/07/09 14:28:35
    Ticket1 Group2 14/07/09 13:12:10
    SELECT
    COUNT(TICKETNUMBER)
    FROM
    "ORGANIZATION"
    INNER JOIN "TICKETS"
    ON "ORGANIZATION"."ORG_ID" = "TICKETS"."ORGANISATION_FK"
    WHERE
    "ORGANIZATION"."ORG_NAME" = 'Org1'
    AND "TICKETS"."REFGROUP" = 'Group1'
    AND
    "TICKETS"."OPEN_DATE" < LEAST(TRUNC(SYSDATE),TRUNC(SYSDATE,'IW'))
    AND "TICKETS"."CLOSE_DATE" > LEAST(TRUNC(SYSDATE),TRUNC(SYSDATE,'IW'))
    OR
    "TICKETS"."OPEN_DATE" < LEAST(TRUNC(SYSDATE),TRUNC(SYSDATE,'IW'))
    AND "TICKETS"."STATUS" <> 'Closed'
    )

    Hi,
    user11696977 wrote:
    Thanks again Frank.
    Looking at the doc you linked I think this query should do what I'm after but running it gives me an insufficient priviledges error.In case you're wondering what privileges are ineeded, under "SELECT - Prerequisites" the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2065699] says:
    "To issue an Oracle Flashback Query using the flashback_query_clause, you must have the SELECT privilege on the objects in the select list. In addition, either you must have FLASHBACK object privilege on the objects in the select list, or you must have FLASHBACK ANY TABLE system privilege."
    Will have to see how this goes if I can get priviledges assigned to the account I'm using.
    SELECT
    COUNT(TICKETNUMBER)
    FROM
    "ORGANIZATION"
    AS OF TIMESTAMP LEAST(TRUNC(SYSDATE),TRUNC(SYSDATE,'IW'))
    INNER JOIN "TICKETS"
    ON "ORGANIZATION"."ORG_ID" = "TICKETS"."ORGANISATION_FK"
    WHERE
    "ORGANIZATION"."ORG_NAME" = 'Org1'
    AND "TICKETS"."REFGROUP" = 'Group1'
    AND "TICKETS"."STATUS" <> 'Closed'
    Looks good.
    This will join the organization table as it exsited at 00:00 on Monday to the tickets table as it exists at run-time.
    TRUNC (dt, x) is never later than dt, so you can just say
    AS OF TIMESTAMP TRUNC(SYSDATE, 'IW')

  • Need help with Backup Recovery using Rman - Point in Time.

    Hi all,
    I am trying to recover my database to a certain point in time. Here are the details below.
    Oracle database version is. 11G R1. on 2 Node RAC. OS is AIX.
    Database name is Sales.
    Due to a mistake by the Application team, the database is written over by bad data. Now I have to restore the database in to a point in time, where the database was good.
    For this, i took a whole (full) RMAN backup, everything, all the archivelog files and Controlfiles as well.
    After doing this, i dropped the entire database. So now everything is clean.
    Now i have to restore and recover the database to this point in time.. 03/16/2011 12:45:00
    Please guide.
    The backups are located at.. /backup/sales/rman/
    I am trying various things, but each time i get the msg..
    ORA-01507: database not mounted
    I understand.. the reason for this message is the controlfile does not exist.. as the database is in mount mode. But as i said.. i have dropped the database in order to proceed with entire restoration.
    But i have taken a whole backup.. which also includes the controlfiles + archivefiles.
    Please guide.. with proper steps and commands.

    Hi,
    Priror to start with restore and recovery - Try to restore the control file from backups "/backup/sales/rman/"
    Then further you can mount the db and further carry on with recovery (catalog the backups prior to recovery)
    - Pavan Kumar N

  • Materialized View - Point in time refresh

    I have a MV group which refreshes from a bunch of master tables. The master tables are constantly getting updated from an OLTP application. In this scenario, I want all the MVs to hold data which was available at the time the refresh started and not the changes after that.
    Eg:
    Master tables are T1, T2 ... T20 refresh to MVs T1_MV, T2_MV ...T20_MV
    All the MVs T1_MV to T20_MV are in a refresh group.
    At 3 PM: Execute an explicit refresh for the MV refresh group
    At 3:05 PM: OLTP application inserts a record into table T5 & commits
    At 3:06 PM (rather any time after 3:05 PM): Refresh of T5_MV happens. Will the latest insert get captured in T5_MV? I actually don't want this to happen for my requirement, because I want the data captured as of 3 PM into the MVs.
    The Oracle Advanced Replication guide says the following about Materialized Views -
    +"A materialized view is a replica of a target master from a single point in time."+
    From the above line, it looks like by default this will not be captured in the MV. Can someone please confirm my understanding ?

    MVs in a Refresh Group when refreshed as a Refresh Group are refreshed as of the same point in time.
    So if the Refresh Group begins at 3:00pm and ends at 3:25pm, all the MVs in that group reflect the data as in the source tables as of 3:00pm, ignoring any updates to source tables after 3:00pm (i.e. while the Group is being refreshed).
    However, if you refresh MVs individually, then each MV is refreshed at it's relative point in time -- so individual Refreshs of MVs would not be to the same point in time.
    How have you defined the Refresh Group ?
    How do you execute the Refresh for the whole Group ? What PLSQL procedure do you use ? What parameters do you use ?
    Ensure that you do not execute an individual MV Refresh.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Mac OS deletes Bookmarks, History and files to a point of time

    hello,
    i have a serious problem! my Snow Leopard erases after returning to desktop (minimum 1 hour) from Screensaver my bookmarks always. recently it has deleted 20 GB of personal photos. every day in Crash-Log folder appearing several new log files. currently i do not use the screen saver, but it is a hard cutback.
    there are made lot of callings to the Apple support and my trader. they changed lot of hardware (without Superdrive and display), but it's the same always.
    i am really unhappy about my situation, especially about the deleted pictures. actually i am very careful with my datas. but due to the unnoticed erasing i have overwritten my backup with the wrong datas. and no, TimeMachine isn't usable with FileVault.
    my question is:
    what can I do, to trace the error? what are the first steps? software, readings etc.
    some more information about the error:
    1. the problem appeard the first after copying my entire datas from external to internal harddrive. i have executed only Apple apps (e.g. Textedit or Safari)- nothing special (e.g. addons or external apps).
    2. bookmarks become deleted only from a special point of time. after a installation i replacing the bookmark.plist for my older bookmark.plist. the erasing deletes only the newer bookmarks.
    3. with the deleted picture the special point of time is the 6th februar. not matter whether or not there was been a installation. i made lot of them. the same pictures became deleted from two different folders- very odd.
    4. in former installation, i have imported the Safari history. this is deleted to a point of time as the bookmarks, too. recently i do not copy that, and the problem didn't appeard since then.
    really thanks a lot for help!

    hello, serious thanks for trying to help!
    Is the internal drive your boot volume?
    yes, it is
    What exactly did you copy, just pics and docs and music, or did you try and move an entire account? You can copy the files, but you cannot just copy an account if it is the only account on the system.
    no, i havn't tried to copy an entire account. it is been a clean install. the problem occured the first time direct after copying my 430 GB of data and bookmarking a randomly site. after a while i copy system relevant (old) data from external drive to internal.
    after a while i copy from user library the bookmark.plist file, complete folder of "Calendar", complete folder of "Address Book" and keychains "login.keychain" file.
    You mention that you lost 20G of pics. Is this not still on your external drive? Just copy them back.
    impossible, as i have written: the erasing didn't displayed any warning or hints. after all, i backuped my (faulty) data from internal to external backup drive. after a while i recognized the erasing- to late.
    Time Machine don't support FileVault.
    The bookmarks problem. The new bookmarks are going to be lost as you are replacing the file from a previous date.
    no. once after a new clean install and copying of all my data, but without my user library and upper described data, i made a test. i bookmarked randomly an internet site and launched the screensaver. voila: bookmark gone.
    I am starting to see a pattern here and it starts with
    installing the system.
    The system comes preinstalled and you
    create an account on first boot. From that account you can
    add file and folders (doc, movies music pics) as you see fit.
    you can install apps to your hearts content,
    I have several hundred. I strongly recommend that you, as a user, do not modify anything in the system or library folders.
    sure, first appearance happend before i have copied upper described library data.
    I am not sure why you feel the need to turn on FileVault as long as you are not doing something that calls for that level of security. A quality password with at least 12 characters (numbers and letters) and there are several option in the general security pane of system preferences you could use.
    i know, but i am lot on the road with lot of personal and important data. so, in case of burglary i know that my data is safe.
       You appear to be reinstalling your system on different occasions. Back up your system before any changes that you do! There are basically two options for install OSX erase and install and install. A install will upgrade your system and leave your account in tact (you must turn off  fileVault). So your account is the same as before you did the install and nothing has to be changed for Safari or your printers. If you move your account back from a previous backup, it may be out of sync with the version that you installed. Should you with to reinstall your account, either use timemachine of migration assist.
    i make always a clean install. first i erase with Disk Utility my drive, once i have overwritten entire drive with 0. then i install Mac OS, activate FileVault, activate encoding RAM, copy my data.  
    Be careful with your files and do check the dates on the files that you rare moving. Copy over newer ones and data will be lost!
    i am very carefully with my data. after every backupping my system, i am checking randomly the backup.

  • Just purchased 27" iMac had my iTunes library on PC on an external drive I've been trying to copy from pc external drive to mac external drive. at a certain point while copying i get error system 8260 unable to continue any suggestions

    trying to copy my Itunes music library from external drive(previously had PC) to new hard drive. at a certain point system error 8260 warning appears unable to continue coppying

    What formats are the two drives?  NTSF on the PC side is usually not readable by Macs unless they have changed something recently or you are using some third party support.
    Since this is a file copying issue and not really iTunes, you might wish to have this moved to the Lion forums since people there might recognize it.  I couldn't find that error anywhere on the web for Mac.

  • Pl/sql block reading reading table data from single point in time

    I am trying to figure out whether several cursors within a PL/SQL block are executed from within a Single Point In Time, and thus do not see any updates to tables made by other processes or procedures running at the same time.
    The reason I am asking is since I have a block of code making some data extraction, with some initial Sanity Checks before the code executes. However, if some other procedure would be modifying the data in between, then the Sanity Check is invalid. So I am basically trying to figure out if there is some read consistency within a PL/SQL, preventing updates from other processes to be seen.
    Anyone having an idea?.
    BR,
    Cenk

    "Transaction-Level Read Consistency
    Oracle also offers the option of enforcing transaction-level read consistency. When a transaction runs in serializable mode, all data accesses reflect the state of the database as of the time the transaction began. *This means that the data seen by all queries within the same transaction is consistent with respect to a single point in time, except that queries made by a serializable transaction do see changes made by the transaction itself*. Transaction-level read consistency produces repeatable reads and does not expose a query to phantoms."
    http://www.oracle.com/pls/db102/search?remark=quick_search&word=read+consistency&tab_id=&format=ranked

Maybe you are looking for

  • How do I set up a desktop/laptop network with a WRT54G v5

    I'm a novice when it comes ot networking, but I was hoping someone could guide me as to how to set up a wireless network with a laptop (non-linksys wireless card) and a desktop with a WRT54G. I've already got it where the laptop can connect to the in

  • JInitiator issue with VIA Processor based motherboard

    I am having VIA EPIA-V Motherboard loaded with Windows. I have installed Jinitiator. But My Jinitiator is not working. I got error saying that HotSpot Virtual Machine Error : EXCEPTION_ILLEGAL_INSTRUCTION # Error ID : 4F530E43505002BD Finally I found

  • Qmaster not using all computers in cluster, is it a version issue?

    hi i'm new to cluster compressing. I just set up a cluster and a compressor batch. the batch is running fine, however it's only using two of the three computers in the cluster. I rechecked the qmaster settings on the offedning computer and they are c

  • Subcontracting - Provision of components

    Hi The requirement is like this: 1. A PO is given to vendor A for the procurement of raw materials ( X and Y ) required for subcontracting and to be delivered to vendor B(Subcontarctor). 2. Another Subcontarcting PO is raised to vendor B to provide t

  • Is the iPhone 5 magnetic?

    I need to use a stylus and would like to have it stick to the phone. Thank you