Select the year, current and future year

Hello world
I have the select statement where I want to put the current year and the following year like this: 2011-2012
That's what I have so far, but I do not know how to bring the other party.
I added a when-validate-point trigger and put the following inside:
BEGIN
SELECT (TO_CHAR (SYSDATE, 'YYYY') |) » -'|| TO_CHAR(SYSDATE,'YYYY+1')) IN: SCHOOL_YEAR
FROM DUAL;
END;

Gives me an error on the second tank. Can someone help me on this please?

Mayen something like this:

SELECT EXTRACT(YEAR FROM sysdate), EXTRACT(YEAR FROM add_months(sysdate,12)) from dual

François

Tags: Oracle Development

Similar Questions

  • Select the crop tool, and then select a ratio (based on the name of the file)

    I have a lot of files that when I their culture that they need a specific report. Currently, they are stored in the tool.

    I wish I could make a shortcut so that it selects the crop tool and the report to the file name. I can understand the file name information.

    i.e. Fr10 = a 2:3 Ratio

    or

    20 = 3:4

    There is no need to crop the image simply select the tool.

    I found this to select the tool

    The beginning is the same.

    if (app.documents.length > 0) {
        var myDocument = activeDocument;
        var fileNameNoExtension = myDocument.name;
        
      fileNameNoExtension = fileNameNoExtension.split( "." );
        
      if ( fileNameNoExtension.length > 1 ) {
          fileNameNoExtension.length--;
        }
    
        fileNameNoExtension = fileNameNoExtension.join(".");
        
        var BrandString = fileNameNoExtension.substr(0,4);
      
      }
    if (/^(FR10|WA35)$/.exec(BrandString)){
        var the_x_Ratio =2
        var the_y_Ratio =3
        }
    

    2016, use it at your own risk.

    #target photoshop

    If (app.documents.length > 0) {}

    myDocument var = app.activeDocument;

    var originalRulerUnits = app.preferences.rulerUnits;

    app.preferences.rulerUnits = Units.PIXELS;

    var width = myDocument.width;

    var height = myDocument.height;

    var rel = 1;

    If (myDocument.name.indexOf ("AB10")! = - 1) {var rel = 0,666};

    If (myDocument.name.indexOf ("CD10")! = - 1) {var rel = 0.75};

    If (myDocument.name.indexOf ("EF10")! = - 1) {var rel = 0.8};

    If (myDocument.name.indexOf ("CH10")! = - 1) {var rel = 0,833};

    try {}

    // =======================================================

    var idCrop = charIDToTypeID ('Crop');

    var desc3 = new ActionDescriptor();

    idT var = charIDToTypeID ("T");

    var desc4 = new ActionDescriptor();

    var idTop = charIDToTypeID ('Top');

    var idPxl = charIDToTypeID ("#Pxl");

    Desc4.putUnitDouble (idTop, idPxl, 0);

    var idLeft = charIDToTypeID ("Left");

    var idPxl = charIDToTypeID ("#Pxl");

    Desc4.putUnitDouble (idLeft, idPxl, (width - height * rel) / 2);

    var idBtom = charIDToTypeID ("Btom");

    var idPxl = charIDToTypeID ("#Pxl");

    Desc4.putUnitDouble (idBtom, idPxl, height);

    var idRght = charIDToTypeID ('Rght');

    var idPxl = charIDToTypeID ("#Pxl");

    Desc4.putUnitDouble (idRght, idPxl, (width - height * rel) / 2 + height * rel);

    var idRctn = charIDToTypeID ("Rctn");

    Desc3.putObject (idRctn, idT, desc4);

    var idAngl = charIDToTypeID ("Marko");

    Bryan var = charIDToTypeID ("#Ang");

    Desc3.putUnitDouble (idAngl, Bryan, 0.000000);

    var idDlt = charIDToTypeID ("Dlt");

    Desc3.putBoolean (idDlt, false);

    var idcropAspectRatioModeKey = stringIDToTypeID ("cropAspectRatioModeKey");

    var idcropAspectRatioModeClass = stringIDToTypeID ("cropAspectRatioModeClass");

    var idpureAspectRatio = stringIDToTypeID ("pureAspectRatio");

    Desc3.putEnumerated (idcropAspectRatioModeKey, idcropAspectRatioModeClass, idpureAspectRatio);

    var idCnsP = charIDToTypeID ("CnsP");

    Desc3.putBoolean (idCnsP, true);

    executeAction (idCrop, desc3, DialogModes.ALL);

    } catch (e) {};

    //

    app.preferences.rulerUnits = originalRulerUnits;

    };

    Edit: Using the indexOf can be problematic and if-clauses are inelegant, then a switch clause would be probably better.

  • Printer all in one HP3520 - how to select the wireless network and enter the WEP key?

    According to print my wireless network is detected.

    How to connect the! @# % printer $ fo the wireless network and enter the WEP key?

    Instructions on the HP site tell me to selet NETWORK on the printer control panel.  Well, there's a way to select the NETWORK from the control panel.  It is not an option for him.

    I downnloaded and installed the latest drivers.

    I have restored the default settings.

    How to select the wireless network and enter the WEP key?

    All of HP's instructions seem to be for a newer printer with a touchscreen.

    I want that the printer is connected to my main computer via the USB port.  I want to be able to print wireless phones and tablets.

    My 3520 is not a 'touch Screen' and it has wifi.

    However, the following work:

    Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.

    This leads me to believe that ONLY the wireless doesn't work.  I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.

    Thank you for your help

  • My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted the bridge and PS, and I rest

    My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted bridge and PS, and I restarted the computer (Mac). Still the same problem.

    I thank assani, but it wasn't the answer. The problem was, I finally understood, that the "option for generation of quality and preview thumbnails" wasn't on "high quality" as it usually is. I have no idea how this happened as I never change this option.

    Thanks a lot for your help.

    Mitchel Gray

  • I'm not able to select the cloud, polygons and drawing markup tools lines connected to this end.

    I recently installed Adobe Pro XI. I can't select the cloud, polygons and lines connected markup drawing tools. I can see them, but they are greyed out so I am not able to choose them.

    I am running Windows 7 64 bit on an Asus ZenBook laptop.

    Any help would be really appreciated.

    Kind regards

    KF Panda

    This touchscreen laptop is capable?

    If this is not the case, check if you have the Touch preference in Adobe Acrobat active XI.  If you, then turn off.

  • Availability current and future CB5 Chromebook 13 (with Tegra (K1) in the shops in Barcelona? Plug?

    Hello.

    I looked at the web sites of the different countries and a list any chromebook 13 and others not.

    They list different specifications in different countries. The Spanish site lists the chromebook 13 but not

    all models or specifications. Is this laptop available in physical stores in Barcelona or is it?

    If so, could you suggest what stores and when (and the price would be nice too)?

    Could we know the specifications of the models available here? at least for each model:

    RAM

    battery

    screen resolution

    the keyboard layout

    WiFi chipset

    controller board, as appropriate

    Thank you very much.

    I invited people from Acer for the list of models available, put on the Spainish site, I hope that they will be done soon. It looks like to the CB5 is available, but there is no way yet to know what reference numbers. You can call around to different stores that could have, to see if anything. I'm afraid you'll have to do either that or drive to each of them, even when the Acer site is well updated. When the acer site is updated, you will be able to see what is available, but neither where they are available.

  • Select the criteria - IN and AS?

    just a question that I can't understand...
    Im running this sql...


    Select
    *

    Of
    regardless of the table

    where

    object_name like '12.02%.
    or
    object_name IN (' 02.03 test ', ' 02.06 test ', ' 02.07 test ")
    order by project


    It works but I get an error. ORA - 01652.
    Can I use one and the SAME choose?

    Basically, I want to get all the object_names who are accurate to a few distinctive names, but want also all object_names which are like 12.02%.
    can I use a select statement nested within the IN and select similar?

    Published by: Jay on January 18, 2012 11:39

    Your application works well. The error you are getting is ' ORA-01652: unable to extend temp segment by... in the tablespace... »

    I think your "order by" clause made the sort operation using the temp tablespace and it is short of space.

    How many lines will have to be returned by your query?

    Check with the DBA user to enlarge the temp tablespace.

  • Select the year max and max date for a code

    Hello

    I need to extract max year and month max for one code particulare.

    My table contains:

    YEAR MONTH CODE

    ====   =====    ====

    2014 6 X

    2014 7 X

    2013 5 Y

    2013 6 Y


    I need to extract:


    2014 7 X

    2013 6 Y


    I don't like max(YEAR|| le mois), I want the column separated.


    Thank you

    Try this:

    WITH test_data AS (
      SELECT 2014 AS yr, 6 AS mth, 'X' AS code FROM DUAL
      UNION ALL
      SELECT 2014 AS yr, 7 AS mth, 'X' AS code FROM DUAL
      UNION ALL
      SELECT 2013 AS yr, 5 AS mth, 'Y' AS code FROM DUAL
      UNION ALL
      SELECT 2013 AS yr, 6 AS mth, 'Y' AS code FROM DUAL
    )
    SELECT yr
         , MAX(mth) KEEP (DENSE_RANK FIRST ORDER BY 100*yr+mth DESC) AS mth
         , MAX(code) KEEP (DENSE_RANK FIRST ORDER BY 100*yr+mth DESC) AS code
    FROM   test_data
    GROUP BY yr
    ORDER BY 1;
    

    Obviously by storing your dates as the DATE, then ranked by who would be more elegant!

  • After download, box that says 'you have chosen to open' 'gray out' after selecting the button browse and full page is frozen / crashed. PC reboot needed.

    Hi Firefox
    After I finished downloading a file, see the Mozilla download page.
    I right click on the download to open it and the box "you have chosen to open" appears in the lower right of the screen with the "radio button", already selected for "open with...
    So far, all this is perfectly normal.
    However if I click on the "Browse" button to make a choice then the title at the top of the box, closing "Cross" and the "OK" button all gone gray and are unusable.
    In addition, all the page Firefox is frozen / crashed and cannot be closed.
    I have no other option but to reboot the PC.
    I tried various suggestions I found on your forums, including the removal of cookies, disable hardware acceleration, and I uninstalled and reinstalled Firefox 12.
    I looked at your "troubleshooting information" and it does not show a graphic driver problem. However, my driver is the latest driver nVidia for my GeForce FX5200 card and it worked fine with firefox 12.

    WebGL RendererBlocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.
    GPU accelerated Windows0. Blocked for your version of the graphics driver. Try to update your driver graphics version 257.21 or newer.

    Here are the specs of my computer:

    MSI K8N Neo motherboard (N1996 MS-7030 VER: 1),
    an AMD Athlon (tm) 64 processor 3200 + (Socket 754)
    3 GB of RAM.
    At present, it has a NVIDIA GeForce FX 5200 graphics card.
    The system runs Windows XP Professional 32-bit with SP3 and all the drivers are up to date.

    I have used Firefox for many years and not that another browser would never use!
    I did have a problem until now. I hope you can help me.

    Kind regards
    Chris

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

  • I'm cutting an image with the pen tool and when I make a selection it selects the entire image and not cutting. How can I stop this?

    The selection inverse basically when I don't want to do that! Any help would be great, it becomes very annoying.

    Thank you

    You will need to have the selected operation before you begin to chart your way?

    You can always for this instance to save time you Ctrl + Alt + I, and then return?

  • How to select the same fonts and apply auto kerning?

    How to select all the blocks of text with the same font (for example "BoldItNewCenturySchlbk-Roman") and apply the automatic kerning?

    Thank you.

    For all documents open:

    for (i = 0; i< app.documents.length;="" i++)="">

    var targetDocument = app.documents [i];

    activeDocument = targetDocument;

    var app.activeDocument = docRef;

    for (var w = 0; o)< docref.textframes.length;="" w++)="">

    var textRef = docRef.textFrames [w];

    If (textRef.textRange.characterAttributes.textFont is {textFonts.getByName('NewCenturySchlbk-Italic')})

    textRef.textRange.characterAttributes.kerningMethod = AutoKernType.AUTO;

    }

    }

    Redraw();

    }

  • Select the pre-order and when the stock is out

    Hello

    We want to be able to define the product, so when it is out of stock poster a pre-order form and the client can fill it out and we can get back to them with a price. Goods are bought from overseas as well as price changes all the time.

    What is the best way to do it?  I noticed the ' activate Pre-Order ' option in the 'low stock Notification' fall down, but I think he just tells us low stock?  We require details of customers so that we can contact them.

    Thanks for any help or suggestion.

    Joe

    Hello

    You can use javascript to automatically check if the stock is 0 and if true submit the form online (assuming it is prefilled).

    This configuration requires some knowledge of JS - https://api.jquery.com/submit/

    Thank you

    Mihai

  • Need help... There's a prompt on the year, but he has to shoot another

    There is a prompt on the year, but he has to shoot coloumn another say like quarter_desc not on the year coloumn, how do slove this problem.

    Thanks in advance.

    Hello

    Assuming you have quarter and year invites.
    1. in the first prompt, create a presentation at the quarter prompt variable.
    2. in the second guest in the sql logic, write a similar query
    {Select the year of subject_area where quarter=@{pres_var}

    Hope this helped / replied

    Concerning
    Young

  • Report of the year several

    Hi all

    I have a report prompt based on the year. I have 2 sections of report either we should display the prompt value-based report and the other report should show a value larger than that. Ex: If I select the year 2005 in the prompt the first report should display 2005 data and the second report should display reports more than 2005, 2006,2007 data.
    To do this, I created prompt as below.
    Column-> Calendar_Year
    -> Equals Opertaor
    Control-> drop-down list
    Show-> all values
    -> The default server Variable
    Set Variable-> presentation Variable.
    Name of the vAriable-> yr_val

    In the reports, I used the filter year = @{yr_val} for the first report and year > @{yr_val} for the second report.
    I'm getting first report properly but second report shows the same data rather than the selected value years.
    Please let me know how to achieve this.

    Thank you
    Venerable.

    for the second report first convert this filter sql and put > @{PV_VAR}. Take care of the syntax.

    This should solve the problem.

    Kind regards
    Sandeep

  • Select curve chart WPF and nickname of curve in the ToolTip

    Hello

    How can I do, view the name of curve in the ToolTip, if I moved the mouse over the curve?
    Or view the name of curve staring above the curve?
    And, how can I select a curve with the click of a mouse?
    Possible?

    Kind regards
    Tamas

    P.S.: Community VS2013 & MS2015 Standard

    Using the logic of tool tip of the point value of graphic display WPF overviewand the GetPlotAt function, here's an example that uses mouse clicks to select tracks in a chart:

    partial class MainWindow: Window {}

    _selectedPlot of private land;

    public MainWindow () {}
    InitializeComponent ();

    Tour (option) on the hit test for lines, in addition to the actual data.
    Graph HitTestMode in the Group PlotHitTestMode.RenderedInterpolation;

    Updated tooltips to display quickly and for a long time.
    ToolTipService.SetInitialShowDelay (graph, 0);
    ToolTipService.SetShowDuration (graph, int. MaxValue);

    Fill in the chart with the data and the locations of the example.
    Graph BeginInit ().
    var plotBrushes = new [] {Brushes.Red, Brushes.Orange, Brushes.Green, Brushes.Blue ;}
    < plotbrushes.length;="" ++i="" )="">
    label As String = "Plot" + (i + 1);
    rendering engine of var = new LinePlotRenderer {Stroke = plotBrushes [i]};
    var field = new plot (label) {Renderer = renderer};
    Graph Plots.Add (field);

    Graph data [i] = new [] {i, i + 1};
    }
    Graph EndInit ().

    Monitor the plot area of the chart for mouse clicks.
    Graph. PlotAreaMouseLeftButtonDown += OnPlotAreaMouseLeftButtonDown;
    }

    private void OnPlotAreaMouseLeftButtonDown (object sender, MouseButtonEventArgs e) {}
    Check if a new route has been shown at the current position.
    Point ScreenPosition = e.GetPosition (graph);
    field var graphics = (Plot). GetPlotAt (screenPosition);
    If (plot == null | plot == _selectedPlot)
    return;

    Deselect the previous plot, if it exists.
    If (_selectedPlot! = null) {}
    ((LinePlotRenderer) _selectedPlot.Renderer). StrokeThickness = 1.0;
    (Graph (ToolTip). Tool - tip). IsOpen = false;
    }

    Select the new path and display a ToolTip.
    _selectedPlot = conspiracy;
    ((LinePlotRenderer) plot. Rendering engine). StrokeThickness = 2.0;
    Graph ToolTip = new ToolTip {Content = string. Format ('"{0}' selected', plot. Label), IsOpen = true};
    }
    }

    "Display the name of curve staring above the curve", with respect to the simplest approach would be to use a PointAnnotation to display a label to a particular position (probably hiding the target and arrow).

Maybe you are looking for