With the help of SQL, need to display the previous year, current year and the year next to single variable

Hi all

We have an obligation to state the previous year, current year and values of the year next as a LOV in the ADF page.

This is the query that retrieves the previous year, current year and next year. But the result of this query displays values in 3 columns:

Select (Extract(year from sysdate)-1), extract (year sysdate), (extract (year sysdate) + 1) twice;

Output:

2012 2013 2014


But I want to display them in a single with 3 rows as column:

2012

2013

2014


Please your ideas.

or in the same way

SELECT EXTRACT (YEAR FROM ADD_MONTHS (SYSDATE, 12 *(LEVEL-2)))

OF the double

connect by level<>

Tags: Database

Similar Questions

  • Create a slideshow with the arrows 'next' and 'prev' in Adobe animate CC?

    I'm a novice at HTML 5 canvas in Adobe animate.

    I'm working on the project with Adobe animate CC. The project includes 5 buttons that link to the quite different picture slideshows.

    I can't find a single reference online on how to create a simple 'next' and 'previous' buttons that will go forward or back a frame.

    The codes I have found online seem to produce inconsistent results (they will advance through the first slide show very well, but then the second will go to random slides).

    I also tried the this.gotoAndPlay (5); for each image, but that starts to have problems in the second show.

    Any help would be appreciated.

    I would be keys movieclip and label the first and the last frame of each slideshow and use these labels for your 5 buttons. If your buttons are on the first image (IE, frame 0) and starting slideshows after frame 1, you can use:

    in the first image (IE, frame 0)

    This.Stop ();

    var label_firstframeA = ['slideshow1frame1', slideshow2frame2', etc...];

    var label_lastframeA = ["slideshow1lastframe", "slideshow2lastframe", etc...];

    var num_firstframeA = [];

    var num_lastframeA = [];

    var first_frame;

    var last_frame;

    for (var i = 1; i)<>

    This ["button_" + i] .ivar = i;

    This ['button_' + i] .addEventListener ('click', slideshowF.bind (this));

    this.gotoAndStop(label_firstframeA[i-1]);

    num_firstframeA.push (this.currentFrame);

    this.gotoAndStop(label_lastframeA[i-1]);

    num_lastframeA.push (this.currentFrame);

    }

    this.gotoAndStop (1);

    This.next_button.addEventListener ('click', nextF.bind (this));

    This.prev_button.addEventListener ('click', prevF.bind (this));

    function slideshowF() {}

    FIRST_FRAME = num_firstframeA [this.currentTarget.ivar - 1];

    last_frame = num_lastframeA [this.currentTarget.ivar - 1];

    this.gotoAndStop (first_frame);

    }

    function nextF() {}

    If (this.currentFrame<>

    this.nextFrame ();

    } else {}

    do something else

    }

    }

    function prevF() {}

    {if(this.currentFrame>FIRST_FRAME)}

    this.prevFrame ();

    } else {}

    do something else

    }

    }

  • Problem with the button 'next' sideshow &amp; amp; Links

    Hello

    I am trying to create a slide show that has a 'next' and 'previous' button that allows you to see the next or previous movieclip when you click one of the buttons, and each movieclip contains a link to a Web site. Please see an example of what I've done so far - http://abwebsitedesign.co.uk/flashtest/

    The code I used for the links doesn't work, when you click a clip he only takes you the first url (which is the "Greenfield" in this case, but when you're on the image of "Millstock" do not you on 'Millstock' site, still need you to "Greenfield" one). Also, when getting to the last image, then click on 'previous', the 'next' button should appear, but is not, it shows that when you click on the "back" button 2 times. Please let me know if anyone can help with this! Attached, is what my code looks like.

    Thank you very much.

    Hello

    I think that your table indexing and counting is a bit off. If you change your managers of button for the code below, you should see your URL works correctly and your next and previous buttons works as it should.

  • join in the query with the result of a single line

    Hi all

    I have two tables
    create table item(item_id number primary key,
    item_desc varchar2(200));
    
    create table item_properties(item_id number references item(item_id),
    property_name varchar2(20),
    property_value varchar2(100));
    I insert the following records
    insert into items values(1,'CPU');
    insert into item_properties values(1,'RAM','2gb');
    insert into item_properties values(1,'PROCESSOR','2ghz');
    insert into item_properties values(1,'HARDDISK','2ghz');
    commit;
    now I want a query that produces the following results
    item_id      RAM      PROCESSOR         HARDDISK
    1              2gb        2ghz              2TB
    How to generate this result?
    I create a query, but it generates several lines, instead I need a single line like above.
    select i.item_id,p.property_value from items i , item_properties p
    where i.item_id=p.item_id and i.item_id=1;
    Kind thanks.

    Published by: Maahjoor on May 7, 2013 12:22 AM
    select i.item_id,
           max(decode(p.property_name,'RAM',p.property_value)) ram,
           max(decode(p.property_name,'PROCESSOR',p.property_value)) processor,
           max(decode(p.property_name,'HARDDISK',p.property_value)) hd
    from items i , item_properties p
    where i.item_id=p.item_id
    and i.item_id=1
    group by i.item_id;
    

    Or pivot to 11g

    with details as
    (
    select i.item_id,p.property_name,p.property_value
    from item i , item_properties p
    where i.item_id=p.item_id
    and i.item_id=1
    )
    select *
    from details
    pivot
     (
       max(property_value) for property_name in ('RAM','PROCESSOR','HARDISK')
     );
    

    Published by: JAC on May 7, 2013 13:04

  • RH9 WebHelp problem with the buttons next and previous topic

    The previous topic and next topic buttons do not work as expected. By example, if I navigate to topics and click on the previous topic, I expect to see the most recent section I read (similar to the use of the back button in a browser to see the previous page). However, the previous button is not available or the user to a random topic and next topic never brings up the next topic.

    I inherited this project, my first experience with RH9 and so am not sure something previous author included in the project to check the buttons appear or if these buttons are part of the interface default WebHelp. I looked in properties available to single Source for each output, but do not see any place to specify information on these buttons.

    As you can see in the screenshot, is not on the sequences of travel (I saw that there are other questions about Next and Previous as sequences associated to browse).

    Any help appreciated because this bug was found by QA and they would like to solve the problem in the next update...

    Carol1-25-2013 11-09-41 AMNextPrevProblem.png

    Hello

    These buttons above the table of contents are buttons for the navigation sequence. And that might explain their behavior.

    Do you mean any other key? Am I missing something?

    Take a bow

    Willam

  • Text of Center with the image next to it.

    I want to have a centered text and just to his left a picture which is an icon.

    I'm sure that's a very basic question, but while I can understand a few methods which almost achieve this, im not sure of the right way to do it.

    Can I Center the text with text-align: center, but this is not applied to the image.

    I can make the text in a div with padding on the left equal to the width of the image, and then set the image as a background image that appears on the left. I can then use margin: auto to center the div, but only if I specify a width for the div If I do this, then the text is not exactly centered on the page. If I do the fairly large div and add text-align: center, then the text is centered, but the image is not always in the right place.

    Is there a solution?

    Thank you

    Hello

    Yes, the solution was obvious, and it was only when I was witting that I realized that I had been focused on centering the text with an image to the left and not with an image just to the left of the text, sorry my mistake!

    What I usually do to allow resizing of the text is to allow for a value up to 150% of my setting specified in the design police (not always possible, but I'm trying!), and anything above that allow the text overflow-spaces for this: nowrap; a rule that I had in the #header css rule.

    PZ

  • I'm used to be able to open a new tab with the sign + next to the tabs open on the tab bar. It won't work now. Difficulty?


    Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? If not, perhaps an addon intrudes here...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • How to display XML data with the same form that generated?

    I am an inexperienced "developer", so bare with me please.  I just created an interactive form that my users will fill out and give me back.  I love the email button that let's them just click a button to send it - because it's so smooth.  However, all I get back is data XML that I don't know what to do with.  Is it possible that I can just open the form I send my users and have the XML data to automatically fill? Otherwise, suggestions?  I started a company - so it's just me without other resources (or fancy SQL DBs to pull this stuff, etc.).

    Hello

    You can configure a button on the form with the JavaScript next to the click event:

    xfa.host.importData ();

    This will open a window that will allow you to navigate to where you saved the returned XML file. Note that this button does not work in extended via Acrobat Forms.

    Depending on the version of Acrobat you are using (the menu changes slightly) you can go to the menu forms and select Manage form data / import data.

    Third option; You may also distribute the forms via Acrobat, which will put in place a response file, which will allow to import responses for you.

    Hope that helps,

    Niall

  • Help with the site of comics 'Next' and 'Previous' functions etc...

    I currently have a site powered by Dreamweaver for my comic and I would like to be able to move the strip back on the first page. Right now, I use a Flash slideshow, but this isn't what I want. I want it to work like this: http://www.amazingsuperpowers.com/ or this: http://xkcd.com/ with the buttons 'next' and 'previous' to go to the back or front. Maybe a "random" button

    If you want to suggest ComicPress by WordPress, I already went this route and ran into problems with the way I structured. I know it's possible with DW I can't find a reference material at all. If anyone could help, I would appreciate it, of course.

    These arrows preceding and following resemble their links hardcoded for me.

    You have a few options if you don't want to code by hand each page;

    1. create a database and use the rand function and the database identification numbers to launch the next and prev page.

    or

    2 propose a naming convention that uses numbers of identification in the name of the file, and then use javascript on each page to go to the next or previous or random. example: my_cartoon_01.html, my_cartoon_02.html - the script would simply add or subtract a 1 according to the file name.

    3. using a script of third party like that of the DMX zone:

    http://www.DMXzone.com/go?13984

    HTH

    -Daniel Hoviss

  • Upgrade to Windows 8 with the student discount

    So I want to update my desktop PC for Windows 8 by using the student discount price, but I have a problem. Can I replace my hard drive soon to something faster and more reliable (most likely a SSD). Without a drive, how can I reinstall Windows 8 on my new HDD (or at all) if I'm downloading online?

    To install a Windows 8 upgrade version, you must already have Windows 7, Windows Vista, or Windows XP installed on your PC.

    If you have formatted the drive until the upgrade of Windows 8 version has been installed, you will not be able to use your upgrade product key to activate Windows 8. To activate Windows 8, you will need to install your previous version of Windows, and then reinstall Windows 8. Help with the activation process, contact technical support.

    As long as you have an eligible license, you can upgrade from the following link:

    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

  • Save Indd Filename with the name of any PDF file

    Hi all, I'm not much more than a programmer, so this may seem like an incredibly easy problem for most of you, but it's confusing to me. I'm under Indesign 5.5, and I have a javascript that I hacked together who will have to intervene once PDF on a page to the specific spacing. I want the script to do next is to insert the name of the PDF file in a textbox somewhere on that and then you page prompts to save the indesign file with the default filename the name of the placed pdf file.

    Kel if the file name of the PDF file on this page is "TDC-smith - 1.pdf", the text "TDC-smith-1"appears in a text box on this page and then the indesign file would save with a file name by default of "TDC-smith-1 fr.indd". Who is?

    Thank you!

    Loic thanks for your help. You helped me to be part of the solution. In the end if I was able to find a more simple solution, based on a few other scripts I dug up, which did exactly what I needed. It is not quite as elegant as it should (there no controls or alerts if the script requirements), but it does the job well enough.

    Basically, it creates just a variable for the filename and the filepath of the first chart that it finds in the document. It then uses a replacement text script to remove the name of the PDF extension and exchange the text in a text box that contains "Default Text", also adding a variable that I use earlier in the script to indicate how many PDF files have been strengthened. Finally, it saves the document in the same folder as the PDF file using the MyImagePath variable, also the number of PDFs variable by the name of file.

    I hope that someone finds it useful!

    myDoc var = app.activeDocument;

    var myImage = myDoc.allGraphics;

    find the file name and path of the PDF in the document

    for (var i = 0; myImage.length > i; i ++) {}

    App.Select (myImage [i]);

    var MyImageName is myImage [i].itemLink.name;.

    var MyImagePath is myImage [i].itemLink.filePath;.

    }

    replace the text box that contains "Default Text" by "filename-number of labels variable-up."

    replaceText ("Default Text", MyImageName + '-' + myNumberOfLabels + 'up');

    replaceText (".pdf", "");

    function replaceText (input, output)

    {

    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.findWhat = entry;

    app.changeTextPreferences.changeTo = output;

    app.activeDocument.changeText ();

    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    }

    Save the file co-operate in the same directory as PDF, with the same name of PDF + variable indicating the number of labels stepping

    ;

    saveFile = File (MyImagePath.replace(/.pdf$/, ") +"-"+ myNumberOfLabels +"up"+".indd");

    app.activeDocument.save (saveFile);

    }

  • The charge would be created with the unique package with date id

    Hi all

    Thanks in advance,

    IAM new to ODI, in my process I dnt know below two constaraints how to do, please help me in this regard...

    1. the load would be created with the id of a single lot with the date and
    stamp under the unique number (when the load data from source to target).
    2. HIGHLAND field would have the line number incremented from
    .001 when records are inserted in the table

    30021986 wrote:
    Hello

    Thanks for the reply, my requirement is,
    1.i have field JELN in the target table, in that line number is incremented from de.001 in the table. (Field JELN would have the incremented number line from de.001 when the rows are inserted in the table)

    -> for what I had done using sequenceing odi_sequence craeating, but it will give higher error.
    and the second condition is

    Never use ODI sequence unless you do business with a technology that has no native sequence is
    (eg files). Most of the RDBMS has their own sequence, and you use these alone.
    For oracle, you must use . NEXTVAL in the field mapping. Be sure to run on the target.

    2. when iam loading the data from the source to target a unique batch number must be generated with the date and time stamp (the load would be created with the unique package with date id and + *)
    timestamp in the unique number +) *.

    You can use SYSTIMESTAMP in this area and do not forget to run on the target.

  • Bing - delivers with the watch list.

    Since the application of finance was updated in April, I noticed that my watchlist 6-point now magically has 8 elements. The other 2? They are completely * boxes of vacuum shaped in the same way for the other, with the exception of a single horizontal line in the lower left corner of the box, and two smaller horizontal lines in the lower-right corner of the box. I can't delete these empty boxes! The 6 I had pinned myself have little Xs appear when you right-click to remove them from the list. There is no such mechanism on these 2 boxes, however, making them impossible to remove. I tried to uninstall/reinstall. Doesn't fix it; they are always there. Anyone know how I can get rid of these? I've tried everything I can think of except by creating a new user account (which would be *). Is there a way to erase the personal data of underground apps? Any other ideas? Thanks in advance.

    The temporary fix for this is to use the Finance of Bing on Windows Phone application and connect it to your Microsoft account. You'll see the blank spaces in the pivot of the watch list, and typing "reorganize", you can remove the empty spaces. Therefore, the application of the Finance of Bing on Windows 8.1 should update. (I had to restart the application).

    I had to use this workaround on two occasions. Something weird occurs when you open the Bing app finance - maybe a problem syncing any?

  • hitTestObject does not work with the real

    try to make bombs detonate on impact, when it struck the balls at the bottom of the scene, with If (bomb1.hitTestObject (ball)) {.} But when the bomb struck one of the balls nothing happened. It works with other objects that are placed on the stage, but not with the balls. ball is a variable for 8 balls distributed randomly on the back of the stage.

    import flash.events.Event;

    bomb1.gotoAndStop (1);

    var minLimit: int = 31;

    var maxLimit: int = 42;

    var range: int maxLimit = - minLimit;

    var balls: Array = [];

    ball: bomb30a;

    for (var i: int = 0; i < 8; i ++) {}

    Prom = new bomb30a();

    ball.x = 150 + i * (Math.ceil (Math.random () * range) + minLimit);

    ball.y = 350;

    Balls.push (ball);

    addChild (ball);

    }

    thisButton.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

    function fl_MouseClickHandler(event: MouseEvent): void {}

    bomb1.gotoAndPlay (1);

    this.addEventListener (Event.ENTER_FRAME, handleCollision);

    }

    function handleCollision(evt: Event): void {}

    If (bomb1.hitTestObject (ball)) {}

    this.removeEventListener (Event.ENTER_FRAME, handleCollision);

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    }

    }

    Stop();

    You do not use the table of bullets that you should be.  You fill it with instances of the ball, but you don't try to target them in the service.  If anything you would be the target of this latest bullet that has been added, although I have to question because I do not see a var reported for a ball, just a line that looks like it should throw an error... ball: bomb30a;

    In the function that performs the hit test, you must be a loop through the range of balls and targeting each ball inside to check suddenly.

    function handleCollision(evt: Event): void {}

    for (var i: int = 0; i

    If (bomb1.hitTestObject (balls [i])) {}

    this.removeEventListener (Event.ENTER_FRAME, handleCollision);

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    break;

    }

    }

    }

  • Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    This is because the PDF file is not be open in Acrobat or Reader, but by the browser which is unable to handle the specific PDF content.

    If you use Firefox or Chrome, follow these steps: https://helpx.adobe.com/livecycle/kb/xfa-forms-firefox-chrome.html

Maybe you are looking for