HOW to get date max of meaningless months USING SYSDATE

DATE_X
------------
2 JULY 10
JUNE 3, 10
6 JUNE 10
15 JUNE 10
JUNE 20, 10


OUTPUT WOULD BE: -.
---------------------------
JUNE 20, 10

I tried with following query returns the same result

SELECT MAX (ADD_MONTHS(SYSDATE,-1)) FROM < table_x >
output:-
2 JUNE 10

Concerning
Amou

Please press OK button or the helpfu

SELECT MAX(DATE_X)
FROM 
where DATE_X >= ADD_MONTHS(SYSDATE,-1);

Tags: Database

Similar Questions

  • How to get data for submission of form using REST or SOAP API

    Hello

    Can someone let me know how to recover data using REST or SOAP API for example, also I need to know how to delete some data from form submission using REST or SOAP API for submission of form. Answer please I need to implement in one of my projects.

    Thanks and greetings

    Angela

    Post edited by: Md Shahid

    Here the answer How to recover data for submission of form using REST or SOAP API

  • How to get the name of the month of week number

    Hi gurus,

    I have week a year numbers.
    I want to get the name of the month using the number of the week.

    Is it possible to do this by using SQL.
    Help, please.
    Thank you
    Dominic
    SQL> var week number
    SQL> var year number
    SQL>
    SQL> begin
      2   :year := 2007;
      3   :week := 30;
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select to_char(trunc(to_date(:year,'yyyy'),'iyyy') +  :week * 7, 'Month') month from dual
      2  /
    
    MONTH
    ---------
    July
    
    SQL>
    
  • How to get the CPU usage in LabWindows using C program

    Hi all

    Please help me...

    How to get the CPU usage and the use of the RAM in LabWindows CVI 12.0 using C.

    Any help with this will be appreciated.

    Thank you in advance


  • How to get the frame number current timeline using jsx?

    How to get the frame number current timeline using jsx?

    Thanks for the link!

    Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.

    function getCurrentFrame() {}

    try {}

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));

    ref.putClass (stringIDToTypeID ('timeline'));

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ('null'), ref);

    var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    Return TC.getInteger (stringIDToTypeID ('currentFrame'));

    } catch (e) {return null ;}

    };

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to get data from excel

    Hello world

    How can I get data from excel inside my program? I'm using labview 8.2. I have tried to find the solution for this but seems that the solutions are not suitable. Can someone help me? Thank you.

    Hi jieah,

    Inside of the attachment nijams don't you see this?

    read_excel_values. LLB

  • Does anyone know how to get data from a web service of Labview with ajax or JSON?

    Hello

    I try to use ajax and json to service Web restful which I build with the labview. However I get errors

    For example. I create a web service from a labview vi (z = x / y http://localhost: 8080/math/divide/5/20 will give {Z: "4,000,000"})

    I get errors for the attached html files.

    Does anyone know how to get al labview WebService with ajax or json data?

    Thank you... Eran


  • Urgent: How to get data analog sbRio 9632?

    Hi ~
    I have new in Labview.
    I want to ask how to get analog data of the SbRio-9632 with FPGA?
    Example of
    I want to get the voltage/current of a solar panel.
    So I connect the unit to the analog input.
    But how to write a program to read the data?
    Need urgent help ~ thanks ~

    Hi GTHao,

    I think you can consult this manual for sbRIO 9632. There the guide step by step on how to extract data from sbRIO (although it says about RIO that includes cRIO but they are more a less the same thing in regards to getting analog data for your case)

    Please take note the voltage and current that the analog input sbRIO pines can take before you plug.

    It will be useful.

    Thank you

    Warm greetings,

    Lennard C

  • How to get data from an Excel file exist using report generation tools

    I try to use the Excel vi get the data of the report generation tool, but I can't understand how to activate a path can be explored in the right type for the VI.  I tried to use the new Report.vi, but this does not work unless you use a template.  It will not open an existing excel file and make an open report to extract data from.

    Essentially, I have a bunch of excel files that have data in them, and I want a VI allows to analyze the data.  I'm going to pull in all the data directly from the excel file so I don't have to reproscess them all in text so I can use the more standard datasheet live but to convert even the excel file programtically in labview I still need to be able to open the excel file and get the data?

    I found my problem.  It turns out that only not to have had a problem with the tool box new report vi.  I had accidentally wired an input control of path of folder instead of an input control of path of file to it.  Changing the file type took care of her and I was able to access excel files, I tried using the new report VI to extract the file, and Excel Get Data to extract the data.

  • How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2

    Hello

    can any body tell me how to get the data in the new table created in the procedure. because it gives following error.

    • Error (47,21): PL/SQL: ORA-00942: table or view does not exist

    tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');

    tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;

    EXECUTE IMMEDIATE backUpDDL;

    COMMIT;

    DELETE FROM Table1;

    How to select the data in the newly created table. as...

    Select * from ". tableName;

    Do not choose anything to get the number...

    Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.

    Oh and DDL engages automatically, your commitment is redundant.

  • How to get data from vROps?

    Hello

    In older versions, we could get out vROps via an adapter of repository data. But with vROps 6.0, I couldn't find that everything about repository adapter and the other as the HTTP Post adapter. I've seen a few posts on CaSa API and SDK, but there is no documentation on this topic. What can I use to get data on how do I configure it? I'll be happy if I can help.

    Kind regards

    Ramazan

    Hi Ramazan

    The API of CaSA is Cluster and Administration of the Group and is located at https://vrops-url/casa

    I have not found any documentation for it.

    What you need is https://vrops-urlsuite - api

    It is a small site with sample code and complete documentation. You can even call the API directly from your browser!

    Start with this, for example: https://vrops-url/suite-api/api/resources? name =something

    Kind regards

    Michael

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • How Adobe gets DATE and its format?

    Hello

    I'm current date (today) to below JS in some flds and below using FormCalc for some flds in my_form;

    JS:

    var currentTime = new Date()

    Form Calc:

    $.rawValue = num2date (date (), DateFmt(MM/DD/YYYY))

    But I have not much idea how adobe is at that date? For my business it is the first form, that's why they ask me how adobe gets so, date format and its

    1) count local address IP/Internet provider, format?

    (2) or PREMISES of the portable PC/computer user settings, date format? If Yes, for example, if the user (the laptop settings) Germany has a DD. MM YYYY configured, if this user is delivered to the United States on a business trip and if the user opens the form, and then how the date looks like for this user? Depending on the settings of computer laptop user JJ. MM YYYY or local internship provider date format MM/DD/YYYY?

    Thank you

    Go to PDF... No!

  • How to get data from one or several times of perticuler dates

    (1) how can we get data from one or more dates perticuler.
    for example. date of 01/01/2011 and time is 00:00:00 to 23:59:59

    and

    (2) how can we get data from one or more dates perticuler.
    from date 01/01/2011 to 01/02/2011 date and time e.g. is from 00:00:00 to 23:59:59.

    can we?

    Hello

    Use a WHERE clause to include only certain lines.
    For example:

    SELECT     *
    FROM     table_x
    WHERE     dt     BETWEEN TO_DATE ( '01/01/2011 00:00:00'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
              AND     TO_DATE ( '01/01/2011 23:59:59'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
    ;
    

    In this example, the first date (before the keyword AND) and second (after the keyword AND) lie on the same calendar day. It's just a coincidence, they can be on different dates.
    The first date must not be later than the date of the second; If this is the case, you will get 0 found lines.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

Maybe you are looking for

  • Stolen Hotmail accounts

    I wish that everyone in the forum knows, it's a total waste of time to ask for help here because there are no positive responses and the just wishful thinking. The owners of hotmail with their money and resources should have enough we find a way to a

  • A message that says I don't have permission to access my programs.

    Original title: access My computer does not allow me to access the internet and some if not most of my programs. The error message indicates that I have perhaps not allowed access to these that I am the administrator on the computer. What is happenin

  • Want 7640: New software - new problem

    I just want to again 7640. Put in place and to work with my computer and smart phone Samsung galaxy III. Tried to print photos of phone today and got the message that I needed to download the software update (HP all-in-one to a distance...) that I di

  • How change the mouse wheel as next/previous in Windows Photo Viewer?

    Hello!Is there a way do so mouse wheel it change between PVS moroccoin instead of zoom?By default if the mouse has 5 buttons, the 4th and 5th buttons jump to the previous/next image. Thank you.

  • Files queued will be not print

    Windows 7 The printer is hardwired. I just moved. Printer was on wifi, but now it is wired. Printer series HP Photosmart Prem 310 - use offline It is what I see and then the 2 files in my queue. I click Restart click file nothing happens. I'm sure it