Suite from the date

Hello

I need a list of the IDS that end (pass received a grade of A) for unit ABC123 and then complete a second unit.

Which means that I will just look forward to when they arrived for the ABC123 A and if they chose to do another shortly after.

In my view, there is something to with the PERIOD where I'd see when ABC123 has take and if it was spend in the affirmative, was another Jack on the UNIT AFTER it (so more then the PERIOD of ABC123) and spent

I just want to see successful IDs unity ABC123, and then of the second PASSAGE.

CREATE TABLE DAN_GR9

(VARCHAR2 (12) ID,)

DATE OF TAKEN_DATE,

NUMBER (12) OF THE YEAR.

THE PERIOD NUMBER (12).

UNIT VARCHAR2 (12),

GRADE VARCHAR2 (12),

STATUS VARCHAR2 (12));

INSERT IN DAN_GR9 (ID, TAKEN_DATE, YEAR, TIME, UNIT, RANK, STATUS) VALUES ('1', 12 February 12 ', '2012', ' 1201', 'FRF569', 'F', 'P');

INSERT IN DAN_GR9 (ID, TAKEN_DATE, YEAR, TIME, UNIT, RANK, STATUS) VALUES ('1', 19 May 12 ', '2012', ' 1202', 'ABC123', 'a ', ' P');

INSERT IN DAN_GR9 (ID, TAKEN_DATE, YEAR, TIME, UNIT, RANK, STATUS) VALUES ('1', 22 June 13 ', '2014', ' 1305', 'PPO989', 'a ', ' P');

INSERT INTO DAN_GR9 (ID, TAKEN_DATE, YEAR, TIME, UNIT, RANK, STATUS) VALUES ('1 ', 22-Sep-14', '2014', '1424', 'LKL875', 'F', 'P');

INSERT IN DAN_GR9 (ID, TAKEN_DATE, YEAR, TIME, UNIT, RANK, STATUS) VALUES ('2', 22 June 14 ', '2014', ' 1405', 'ABC123', 'a ', ' P');

HAVE

IDTAKEN_DATEYEARPERIODUNITGRADESTATUS
1February 12, 1220121201FRF569FP
1May 19, 1220121202ABC123AP
122 June 1320131305PPO989AP
122 sep-1420141425LKL875FP
222 June 1420141405ABC123AP

Here you are

ID

1

ID 1 as they the unit and continues to do more)

ID 2 not as long as they don't this unit and nothing else

even though there were 3 ID if they have studied before but the last unit was ABC123 I won't choose this ID

Hello

Another way is an EXISTS subquery.

SELECT id - or all coolumns you want

Dan_gr9 m - M is hand query

Unit WHERE = "ABC123".

AND grades = "A".

AND THERE ARE)

SELECT 1

OF dan_gr9

ID = m.id WHERE

AND taken_date > m.taken_date

AND grades = "A".

Unit AND <> "ABC123".

)

;

You can also use a self-join, or, if you are using Oracle 12, line filtering.

Tags: Database

Similar Questions

  • Local data store has disappeared from the data store window (necessary emergency aid)

    Dear team,

    I m facing a very strange problem, all of a sudden one of the local ESX datastore disappeared thereafter are full details we have encountered/noticed.

    A local data store disappeared from the data store window.able to see this data store to add storage Wizard, which allows us to format the same.

    * If we take a session putty from here we can see and browse this store of data without problem.

    * Virtual computers that are running on this data store work as well (all files are accessible / VM is accessible on the network)

    * Unable to take backup image do error "the object has already been deleted or was not completely created.

    * Not able to take a «cannot complete the copy file... network» clone »

    Getting from newspapers in vmkernel:

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu1:4097) ScsiDeviceIO: 747: command 0 x 28-the device 'mpx.vmhba1:C0:T1:L0' failed, the data of sense H:0 x D:0 x 2 P:0 x 0 0 valid: 0 x 4 0 44 x 0 x 0.

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu1:4097) ScsiDeviceToken: 293: Sync IO 0 x 28-the device 'mpx.vmhba1:C0:T1:L0' failed: error/o H:0 x D:0 x P:0 x 0 2 0 valid sense data: 0x4 0 44 x 0 x 0.

    (14 dec 17:11:39 localhost vmkernel: 0:01:55:28.677 cpu6:4110) capability3: 5354: Sync READ error ('. fbb.sf') (ioFlags: 8): i/o error

    Need your help urgently to solve the same.

    concerning

    Mr. VMware

    Dear all,

    We have enclosed a case at VMware, please find their findings on the same.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    After the webex session, we just had, I discovered the root cause of the problem reported to an underlying problem on the block device (the logical drive, or a problem on the Board) presented to accommodate the data in question store successfully.

    In short, whenever we try to do raw reading from the disk (from sector 0), the same always fail when we reach the 30932992 bytes (31 MB) brand with an IO error (which is consistent, he is always on this region of the disc that read operations fail, no more, no less). This result can be seen, even if no partition is in the disk (using if = / dev/sdb instead of/dev/sdb1 with dd) and even after zeroing on all sectors (if dd \u003d/dev/zero of = / dev/sdb). Strangely, read operations work fine (as he writes zeros of random data) throughout the entire disk. Keep in mind that the tests I did with no VMware tools (I used almost only dd for these operations), which prohibits certainly a VMware problem (in fact, if you were to try to start the server with a Linux live CD and run the same tests that I did, you would see the same behavior).

    I know that there is no report of material of any bad behavior on the table, but data collected with our tests today completely invalid who. The next step is for you to take this to the server provider to check for problems on the table or discs, because they are there and they are the reason for the problem you reported initially.

    Please let me know if you have other questions about it.

    Thank you

    -

    David Meireles

    Technical Support Engineer

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Now we have blocked a case from the hardware vendor, to see what the next move will be.

    concerning

    Mr. VMware

  • Can photos be deleted from the data store directly?

    Hello

    I just doubt. Can shapshots be deleted directly from the data store.

    I checked the Snapshot Manager, but was not able to locate snapshots in it, but at the same time there were three snapshots in particular virtual machine data store. What it means?

    And what is my isNativeSnapshot = 'no'?

    I just doubt. Can shapshots be deleted directly from the data store.

    No, snapshots work as a string. Deletion of one of the links in the chain breaks the chain. Please take a look at http://kb.vmware.com/kb/1015180 to see how snapshots work.

    I checked the Snapshot Manager, but was not able to locate snapshots in it, but at the same time there were three snapshots in particular virtual machine data store. What it means?

    Information about snapshots are kept in .vmsd the virtual machine folder. If this file is corrupt - for some reason-you won't see the correct string snapshot in the Snapshot Manager.

    Please create a list of all files in the folder of the virtual machine (dir *. * /oen > filelist.txt (for Windows) or ls-lisa > filelist.txt (for Linux)) and after (tie) the filelist.txt, file .vmx VM as well as the file .vmsd for your next post.

    André

  • get more records of 30 days from the date of the day

    I use MS SQL 2000 How can I recover the data that are older than 30 days from the date of the day? I put currendate "DateTime" field as data type and length is the '8 '.

    < cfset variables.getdate = DateAdd (would be ',-30, now()) >

    Select dataname
    of tabletest
    where currendate > = "variables.getdate."

    the sql stmt above does not work.

    Select dataname
    of tabletest
    where currendate<= #createodbcdate(dateadd("d",="" -30,="">

    You say that you want records which are more than 30 days from now, so that it must be less than or equal to the date
    But if you want the Chronogram of 30 days there are until now then it must be greater than or equal to

    Ken

  • Why the date of the INVOICE is different from the date of the ORDER?

    Something weird is happening... I get notifications of workflow of the Business Catalyst for invoices, but sometimes the date of the order is the eve of the invoice. Causing havoc on the side shipping because when I print the invoice, good delivery and export order files, they do not correspond to the top and sometimes customers are duds.

    No idea why the date of the invoice would be different from the order date and how do I do to make them the same?

    Thanks in advance!

    Hey there,

    An invoice is not an order. It's an important thing to know.

    An order is generated by a few ways but especially as soon as a product is added to a basket - this order exists and that date. An invoice is a purchase and comes from an order.

    You create an order in the admin and save it but add no invoice number. You can see that you have just made an order and you'll see the button to generate the invoice.

    API may make an order and no invoice, a person can add items to the basket and finish the next day if they have their session open that long... Many reasons why these dates may differ.

  • Error when displaying data from the data store

    Hello gurus,


    We are also facing the issue with driver when we try to view data from a data store links to Hyperion Essbase technology.
    ODI version is 11.1.1.6.
    Here is the error we receive:

    java.lang.IllegalArgumentException: Driver name cannot be empty
         at org.springframework.util.Assert.hasText(Assert.java:161)
         at com.sunopsis.sql.SnpsConnection.setDriverName(SnpsConnection.java:302)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.setDefaultConnectDefinition(DwgConnectConnection.java:380)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:274)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:288)
         at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.createDwgConnectConnection(DwgConnectConnectionCreatorImpl.java:53)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.snpsInitializeSnpsComponentsSpecificRules(EditFrameTableData.java:85)
         at com.sunopsis.graphical.frame.SnpsEditFrame.snpsInitialize(SnpsEditFrame.java:1413)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:623)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:868)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:176)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Is there a specific JAR file associated with Hyperion Essbase?
    and where do I find the default drivers provided with ODI?

    Help, please.

    Thank you
    Santy.

    You cannot view data from a store of essbase data as it is not configured with a driver that supports this feature

  • Help display information from the data store

    Hi, I'm trying to format a table with information from various commands, and I can't find out how to do it.

    Basically I want the table to have the following information:

    ESX host - DatastoreName - CanonicalName - CapacityMB - MultipathPolicy

    The problem is the get-scsilun cli annoys me only the canonical ability and multiple trips, but I want to add the other get-vmhost and get-datastore information

    The command I'm ussing is:

    Get-vmhost | Get-ScsiLun | WHERE-object {$_.} Seller - eq "EmC" - and $_. LunType - eq 'disc'} | Format-Table-property CanonicalName, CapacityMB, MultipathPolicy-auto | Out-String-width 120

    No idea how to do that?

    Thanks in advance!

    Pablo. -.

    Try something like this

    $report =@()
    
    foreach($esx in get-vmhost){
        foreach($lun in (Get-ScsiLun -VmHost $esx -LunType disk | where-object {$_.Vendor -eq "EMC"})){
            foreach($ds in (Get-Datastore -VMHost $esx)){
                $ds.ExtensionData.Info.Vmfs.Extent | %{
                    if($_.diskName -eq $lun.CanonicalName){
                        $row = "" | Select Host,DS,CanonicalName,CapacityMB,MultiPathPolicy
                        $row.Host = $esx.Name
                        $row.DS = $ds.Name
                        $row.CanonicalName = $lun.CanonicalName
                        $row.CapacityMB = $lun.CapacityMB
                        $row.MultiPathPolicy = $lun.MultipathPolicy
                        $report += $row                }
                }
            }
        }
    }
    
    $report | ft -AutoSize
    

    The link between the data store and the logic unit number is done by comparing canonicalname the LUN with each canonicalname of the extent of the disk of the data warehouses.

  • Recovery of a virtual computer from the data after removing inventory store

    Hello

    I am new to VMware, so I apologize if this is a stupid question.

    I am running ESXi 3.5.0 and to manage the server using Vsphere Client 4.0. I tried to move a virtual machine from a to another data store, and by playing, I decided to try 'remove inventory' on the virtual machine, I was trying to move. Given the files of all the VM are still in the data store, I thought that it should not be difficult to re - add to the inventory. However, I can't figure out how to do this. Any help would be appreciated.

    In the second part of the question, why past a VM to a local data store on the server to another local data store on the same server seem to be so difficult as well? I think that I finally understand how using the VMware Vcenter Converter Standalone to clone the virtual machine for the 2nd data store, and then I guess I'll remove the original after the clone is done? This is the right way to do it, or there at - it an easier way?

    It seems to me all these things are basic operations that should be fairly straightforward to achieve, because it is expected to just move the files from one disk to another, but they are revealed to be a real pain in the butt. Am I missing something?

    Thanks in advance!

    1. In the Client, select your ESX Server host computer.

    2. Click the summary tab.

    3. Look for the icon of the data store, inside the resources box.

    4. Right-click on the data store, and then select Browse the data store.

    5. Browse the directory for your virtual machine structure.

    6. When you find the folder where your VMis, locate the file with a .vmx extension.

    7. Right click on this file and select Add to the inventory.

    Rick Blythe

    Social media specialist

    VMware Inc.

    http://Twitter.com/vmwarecares

    http://Twitter.com/vmwarekb

  • Cannot turn off the field from the date of entry into application workflow

    Hello

    We implement the workflow application in OIM11g.

    We use application templates to achieve this.

    We want to disable or remove the field from the effective date in the rationale page that appears when we raise a request. Did one of you has implemented or came across this scenario. Please update if you have an idea about that.

    Thank you

    The property system will remove the entire page of the process, including the justification box.

    -Kevin

  • How can I apply the automatic spelling correction for selected fields from the data entered by the users of forms?

    I would like to be able to apply the spelling correction of selected fields in the forms I created using LiveCycle Designer 8.2 at runtime, as opposed at design time.  I understand that version 8 LCD has a spelling corrector new OWL for form designers.  But I want to say check the data entered by users using Acrobat Reader.  And I want to apply the spelling correction automatically on only selected fields.

    Currently it seems that fill out my forms, users must know how manually right-click on each field, and then select "Spell Check" from the dialog box to check spelling mistakes in the data that the user entered into the form.

    I would like to discover a way to apply the correction spelling in certain areas, as well as I am able to do in forms created using Acrobat Pro.  Acrobat Pro, I can set a property for each field to require the spell check.  but this feature seems to be missing in Livecycle Designer.

    I have check the object model for XFA forms hoping I could find a method I can call a JavaScript file, check the spelling based on an event such as onBlur.  But I have not found a method of spelling.

    Am I missing something simple?  Is there a way to define each field out controls when a user is filling out the form using the free software Acrobat Reader?

    Our users are not sophisticated and forcing spell check each field separately just doesn't cut it...

    Any help on this will be greatly appreciated.

    Thank you!

    -David Bartholomew

    Hi David,

    Two things...

    At design time has set the locale of the form to that coming out Acrobat checks. For example the locale English (United States) and English (United Kingdom) have Spellers; However the English (Ireland) does not work. Check the warnings tab to see if the spell checking is supported for your locale.

    If your locale form supports spell checking, so you can go to the script of the button below.

    If you form local does NOT support spell checking, Stephanie has a great work-around to force spell (http://forums.adobe.com/message/2233945#2233945).

    Put a normal button on the form and in the click event must have the following:

    app.execMenuItem ("spelling: spell check");

    Which will open the checker spelling for all fields.  Thanks to Paul for extract all elements of menu available (http://forums.adobe.com/message/1912914#1912914).

    Good luck

    Niall

  • Delete zero of the rows from the data source target

    Hi all

    We have an ODI interface that loads data directly on a DB2/400 data source into an Essbase cube. The routine uses a SQL Server staging area. We are summarizing the source data and transforming before members of the load in Essbase. It is version 10.1.3.5.5 ODI.

    We would like to remove the zero lines created after the sum. Is it possible to do so within the same interface? We understood that we could accomplish this by dividing the interface into 2 parts: 1) load the source data in the staging area and 2) load data from the staging area into the target. We wonder if we can take advantage of the existing interface and somehow add a filter to the target data source.

    Thanks for your help,
    O

    "I pull out the filter on a column in the data source and then put the content of the declarations AMOUNT and CASE in there?"-Yes. Deepak may be just fine. Is it JDE G/L, a/c balance treatment?

  • Loading of the keys from the data store

    Hello

    I have a near cache, supported by a cache partitioned using a dumps. When I call cache.keySet (), I get only the keys that are currently in the partitioned cache. Not those who have been expelled for dumps. Right?

    If I would also like to receive those, can I retrieve it from the database separately? Or is there another way?

    Best regards
    Jan

    user10601659 wrote:
    Hello

    I have a near cache, supported by a cache partitioned using a dumps. When I call cache.keySet (), I get only the keys that are currently in the partitioned cache. Not those who have been expelled for dumps. Right?

    Fix. The cache does not remember anything on the expelled entries, they are as if they have never been.

    user10601659 wrote:
    If I would also like to receive those, can I retrieve it from the database separately?

    If you know these keys, you can simply ask that them and load the cache-store them. If you do not know the key, then you must go to the database to find out them and either put the data in the cache of your own (and do it in a way that the cache-store won't write their), or you must apply entries with the now well-known keys.

    user10601659 wrote:
    Or is there another way?

    Best regards
    Jan

    You can write a cache store hides another which takes query parameters including a key cache, and on obtaining a value, it returns the result of the query according to the query parameters as a value cached. You should be aware, however, that this cache will contain deep stale data, then you probably want to configure this cache of very rapid expulsion.

    Best regards

    Robert

  • How to transfer data from the data in table 2D only once file?

    Attached file will write same data in table 4 times 2D file. Output must be in a table 2D.

    Someone will provide a solution or a reason to explain why the data are been ouputted 3 more times? Thank you

    I already told you a better and more effective method. The function of reading worksheet is on the exact same range as your text file and does everything for you. If you insist for some reason strange kernel to reinvent the wheel and write your own code, take the correct path. The use of 4 separate spreadsheet String to Array is the cause of your problem and I already said too much. Don't you think that get you 4 times the data is in correlation with the fact you are using 4 times the functions necessary at all? It is simply not true. Look at the diagram-writing block on a spreadsheet file.

  • Display of information from the data CAN at a gauge table

    Hello

    I'm new to Labview and just know the basics. I use a sample code to send and receive messages CAN. I need to view the data of received messages (only the first two bytes) on two gauges, i.e. the first two values of the data matrix. Is it possible to do? Also, it would be useful if I could control the value of the first byte of data using a button or dial. Any help would be appreciated.

    Thank you

    Brian

    Hello Brian,.

    You can use the "Subset of the table" function in your range of tables in your diagram and choose zero index and size two (2 items out of the table) in order to extract the first two values.

    Here is a link to the help of the service document:

    http://zone.NI.com/reference/en-XX/help/371361E-01/Glang/array_subset/

    You can have all of your comments as a control and set the default values for the items you want to change. You can access this property by setting the value on the control, and then right-click on it to go to the "information Operations" then 'Create this value default value'. Then, you can right click the control you want to change and replace with a dial. Make sure you only select properly its representation. For example, a byte you would probably select U8.

    Attached is an example, please take a look and let me know if it helps.

    Kind regards

    Michael S.
    Technical sales engineer
    NEITHER UK & Ireland

  • from the data varying in queues, error code 91

    Task:

    pass data varying in a cluster as a data type of queue, i.e. the bundle a boolean and a string (the string is converted to a Variant).  Create two while loops (producer + consumer).

    Everything works fine the consumer using variant of the Labview if timeout for the dequeue is - 1 service data function.  Then when the data is sent (in response to a press of button in the producer) data are received and displayed correctly.

    However to modify the time-out of the consumer to say 500ms and then each time-out time that 91 error as shown in the attachment.

    I would like to know what I'm doing wrong, because it is not completely clear to me why it works with the infinite time-out but not the time 500 ms.

    Hello

    When "wait" wait times the function provides an empty cluster as output.  When you try to convert a white to a string type, it generates an error.

    Just do not transmit data to the conversion operation when the dequeue tiimeouts.

Maybe you are looking for