How to show the two original and change the line

I have a table looks to and it store the two original and change lines, how can I get the Original lines both edit? In this case, I want to display the first two lines (all columns are composite keys)

In the meantime, I use more Partition BY with line number, but I get a line

flag

APPNO

EXAM

TYPE

EXAM

YEAR

EXAM

MONTH

Object

Origin

1234567890

HL

2015

01

Art and Design

Edit

HL

2015

01

Art and Design

origin

SL

2015

01

Math

New

SD

2015

01

English

Please check this one, I think it can meet your needs.

SQL> with meta_data (flag,APPNO,EXAM_TYPE ,EXAM_YEAR ,EXAM_MONTH,SUBJECT)
  2          as (select 'Origin',1234567890,'HL',2015,01,'Art and Design' from dual union all
  3                  select 'Edit',1234567890,'HL',2015,01,'Art and Design' from dual union all
  4                  select 'origin',1234567890,'HL',2015,01,'Math' from dual union all
  5                  select 'New',1234567890,'HL',2015,01,'English' from dual )
  6  select *
  7    from meta_data
  8  where exists ( select 1
  9                             from meta_data outer
10                           where flag ='Edit'
11                              and meta_data.APPNO          =outer.APPNO
12                              and meta_data.EXAM_TYPE          =outer.EXAM_TYPE
13                              and meta_data.EXAM_YEAR          =outer.EXAM_YEAR
14                              and meta_data.EXAM_MONTH          =outer.EXAM_MONTH
15                              and meta_data.SUBJECT          =outer.SUBJECT)
16  /

FLAG        APPNO EX  EXAM_YEAR EXAM_MONTH SUBJECT
------ ---------- -- ---------- ---------- --------------
Edit   1234567890 HL       2015          1 Art and Design
Origin 1234567890 HL       2015          1 Art and Design

SQL>

Tags: Database

Similar Questions

  • Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of a pickture?

    Hello

    Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of the image?

    How to choose the area? Which tool?

    Thank you in advance, Karl

    Make sure first that your range of information is visible: window menu / Info (shortcut F8)

    In this palette, click the small icon 'more '.

    Select "Palette Options".

    and choose HSB to second reading of palette.

  • How to show the multiple declaration for an application

    How to show the multiple declaration for an application

    Thanks for your suggestions...

    Looking at the javadocs you can only save an indicator by application. You will need to do three separate applications and package them as an If you want three different indicators to be visible at a time. Or change the flag that (or which group) of the indicators you want to display.

  • How to show the main screen (home screen of blackberry)

    Hi guys,.

    I need to know how to show the main screen (home screen of the blackberry), even if it's in any screen (like saying "Calculator" etc)...

    This must be done by programming... is there a solution for this?

    Thanks in advance,

    I also had. This is to disconnect incoming call and display the main screen (home screen of the blackberry).

    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0, 100));
    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0, 100));

  • How to draw the line under STROKE and fill of an object in illustrator cc? Ideas: D...

    How to draw the line under STROKE and fill of an object in illustrator cc? Any ideas ...

    Aleksandar,

    If I (put) understand it, you will need to divide the object. You can:

    (1) select the object and Ctrl / Cmd + C + F, and then remove the filling of the copy and the blow of the original;

    Draw 2) and drag the new piece down between Division 1 objects) in the layers palette, or select 1 copy) and Ctrl / Cmd + C + F + X + F or similar.

  • How to show the photo album in Apple Tv screensaver.

    How to show the photo album in Apple Tv screensaver. ?

    You can use your photo stream or albums shared for the screen saver, the iCloud photo library can be viewed only manually.

  • How to show the ink levels on the computer for Officejet 6600

    How to show the ink levels on the computer for Officejet 6600

    What is the full product name or product number?

    is your printer?

    This is the Manual of your printer the following image was derived.

    You can use the printer's built-in web server to get the status of the printer information from a browser.

  • How to show the photograph next to a project?

    How to show the photograph next to a project?

    in Adobe MyPortfolio

    It isn't a way by default to show them side by side, but we are looking in new views of project for the future.

  • How to choose the line PFI to use on the port of the 5761?

    I understand that the VIDEO that I use on my DAC 5761 allows me to access 8 PFI lines.  However, when I access my 5761 devices in the project window by clicking the "+" next to the name of the module, I see that 'PFI Input' and ' output PFI.  I tried to get this to send a signal in the past, but I have been unable to determine how to select the line PFI I want to use.   How can I select the PFI line?

    Any ideas?  I was able to get the my AWG PFI (5422) for work and it is amazing.  I want to order an attenuator digital step for a ground penetration radar that I develop.

    Your time and your help is very appreciated.

    PS: I have worked with this PXI system (chassis, embedded controller, FPGA digitizer 5761 and AWG) for 1 year and I am afraid that it is time to learn this one way or another.

    Good day!

    -Daniel

    I found the solution. In addistion to the node which is visible in my previous post, there must be a node to enable PFI write with an entry of decimal number indicating the line is activated. Then, there must be a node PFI active connector, set to true. Not sure if the node of the latter is really necessary, however. Otherwise above examples should work as is.

  • How to show the email address complete in the message and other areas

    How to view the email address complete address in To, Cc and other fields?  When I type a name that the name does not appear the part @xxxx.com address.

    Hello there jimhaynes,

    Looks like you see the names of people you're emailing, instead you send your e-mail to the e-mail address. You should be able to change that behavior by disabling the option called "Smart addresses using" located in Mail > Preferences > look a.

    If it is already disabled, it switches on, then back to refresh the setting. Once you have done this, you should see the name of the person next to their email when you type one in. It should look like this example: "Kelly Westover [email protected]>.

    If you want to continue to use smart addresses, you can click on the name to reveal more information about the contact by the following article:

    Address postal (El Capitan): use smart addresses

    https://support.Apple.com/kb/PH22294?locale=en_US&viewlocale=en_US

    Thank you for using communities of Apple Support.

  • IOS XR - How to show the complete changes before committing?

    In IOS XR, there is an order to see the complete changes before committing? For example:

    RP/0/0 / CPU0:INET #show running-config prefix-set MYPREFIX
    Mon Oct 24 15:06:16.288 ARBUE
    all of the prefix MYPREFIX
    the 10.0.0.0/8 32,
    172.16.0.0/12 32,.
    192.168.0.0/16 32
    end-set
    RP/0/0 / CPU0:INET #Configure terminal
    Mon Oct 24 15:06:30.427 ARBUE
    RP/0/0 / CPU0:inet (config) #no set prefix MYPREFIX
    RP/0/0 / CPU0:inet (config) #show the configuration
    Mon Oct 24 15:06:38.767 ARBUE
    Building configuration...
    !! Configuration of the IOS XR 6.1.1
    !
    no set prefix MYPREFIX
    end

    But I want to see the full content of all of the prefix before validation, something like this:

    RP/0/0 / CPU0:inet (config) #show configuration?
    no set prefix MYPREFIX
    ! the 10.0.0.0/8 32,
    ! 172.16.0.0/12 32,.
    ! 192.168.0.0/16 32
    ! - cover

    Ditto for the political course and for the BGP neighbors. Thank you.

    You can get a diff of the changes, like this:

    lab01(config)#no prefix-set MYPREFIXlab01(config)#show commit changes diffWed Oct 26 15:56:21.322 CESTBuilding configuration...!! IOS XR Configuration 5.3.4 !- prefix-set MYPREFIX- 10.0.0.0/8 le 32,- 172.16.0.0/12 le 32,- 192.168.0.0/16 le 32- end-setend
  • How to show the extent of the day and date a month before her?

    Experts,

    I have a list of dates and measures. If I select a date from the calendar (as a command prompt) prompt, there bring it records of this date and the date of the month previous (reduce the 30 days of the date of the day). I have no idea on how to proceed with this requirement. Any help is appreciated.

    I'm using OBIEE 11 g.

    Kind regards
    LIBERATOR

    Manon says:
    Experts,

    I have a list of dates and measures. If I select a date from the calendar (as a command prompt) prompt, there bring it records of this date and the date of the month previous (reduce the 30 days of the date of the day). I have no idea on how to proceed with this requirement. Any help is appreciated.

    I'm using OBIEE 11 g.

    Kind regards
    LIBERATOR

    If you are looking for two dates, the date of the command prompt and a "30 days prior", then follow these steps:

    (1) create a dashboard on the date column and assign a TICKET called pv_Date.

    (2) in your report, put a filter on the same date column:

    table. "Date = ' @{pv_Date}"

    OR
    table.date = TIMESTAMPADD (SQL_TSI_DAY-30, TIMESTAMP ' @{pv_Date} "")

    If you wanted to say: 'all values up to 30 days before the maximum value of the line,' enter the following:

    table.date BETWEEN <= '@{pv_date}'="" and="" table.date="">= TIMESTAMPADD (SQL_TSI_DAY-30, TIMESTAMP ' @{pv_Date} "")

  • [JS] How to show the label and the name of the object?

    Hello.

    This image is FrameLabel SDK sample.

    I want to show the label and the name that I set as image.

    For example,.

    App.Selection [0] .label = "label";     App.Selection [0] = [TextFrame object]

    App.Selection [0]. Name = "name";

    What is show and code to set property?

    You can not via JS, unless first do you a plugin to c ++ as that in the SDK and make it scriptable.

  • How to show the mouth full function

    Hi all, I'm sure this is a stupid question, but I can't seem to track it down.

    When I use the Palace of function, it shows a view of abbreivated, Express, Favorites, user libraries and then an arrow down to show the rest of the Palace.

    How can I put it so that it always opens the mouth (as if you had hit the arrow down)?

    Thank you

    (If you get the palette via right click, you will need to nail it down to see the 'view' button).

    Press 'view' in the top right, select "Change the visible categories", then tap on ""select all "." Quite.

  • How to show the background application

    Hello

    I want to follow an alert in my application when the application is in the background.

    I tried with this code: -.

    Alert: AlertDialog var = new AlertDialog();

    Alert.title = "alert";

    Alert.message = 'Notification '.

    alert.addButton ("Cancel");

    alert.addButton ("Show");

    alert.dialogSize = DialogSize.SIZE_SMALL;

    alert.addEventListener (Event.SELECT, alertButtonClicked);

    Alert.Show ();

    But it does not show the alert outside the application.

    But on further research on the web, I had found earlier than alert.show (IowWindow.getAirWindow .group ()); will allow the alert to be strictly within the application. Is this means that show() alert will generate alerts in the foreground, even when the application is in the background?

    Also, I want to put the application in the foreground when you press the button display. is it possible

    That is to say, the application state must be changed programmatically to 'normal '.

    Please help me

    Thanks in advance

    Vineeth K

    Looking for QNXSystemPowerMode to learn more about how to run your application even when it is in the background.

    Note, however, that if you do it wrong, you're going to drain the battery too fast and no one will want to use your application.  Do not set up just to sit in THROTTLED mode all the time if, for example, you want to just check a timer and do something later.  There are ways to use this very effective stuff, if you spend the time to learn.

    In addition, with regard to the "bring programmatically the app in the foreground", it is not possible unless you use a dialog box modal system (in other words, what you get with alert.show (()) just does it automatically.

    And it's probably a good thing... If I installed an app which itself has jumped to the forefront, becomes the active application, I would probably uninstall it immediately.  After all, how do you know that what the user is doing is not more important to him that no matter what your application wants to report?  It might be in the middle of a game, or give a presentation, or else where he does not want your application is throwing in the view.

    The same goes for using the 'modal system' form of the dialog as well.  I highly recommend that you not use it.  I believe that it is really only meant for critical problems of the system, such as the lack of flash memory or memory, and you will notice that it is not even use it to the situation of the latter.  (It might not for low flash either... I've never tried still get there.)

    If you want to attract the attention of the user, using a sound index (for now, the way that only acceptable, in my humble OPINION) or wait until the Notifications feature is documented and fully available for us.  That do the little "red flash" appears in the upper left corner and display a notification in the tray (top left corner) as well as how the PlayBook is currently app updates are available in the App World.

    If you insist on the use of the modal approach of the system, I would be very interested to learn what is the use case, as so far, I do not think that someone has described one that would generally be considered a valid use of this API, for most users.

    Finally, if you don't use a modal system, consider to give the user a way to disable it, as in your settings menu.

Maybe you are looking for