Is there any funcions available to pick up first day of the month?

I want to show the first month of the year given any date time stamp as input..
eg:
select sysdate from dual
assume sysdate is 10 Mar 2005
the output should be 10 Jan 2005.
We can take the last day of the month by using last_day
how to take the first day of the month given a input datetime?

I want to show the first month of the year given any date time stamp as input..There is a little confusion with the thread's title.
We all answered you about your title question : how to obtain the first day of month, not the first month of year. For which you can test something like this :
SQL> select col1,add_months(col1,(-1*to_char(col1,'MM'))+1)
  2  from (select to_date('10032007','DDMMYYYY') col1 from dual union all
  3*       select to_date('05012007','DDMMYYYY') col1 from dual )
SQL> /
COL1     ADD_MONT
10/03/07 10/01/07
05/01/07 05/01/07
SQL> Nicolas.

Similar Messages

  • Is there any app available to directly copy movies from in built Movies app on iPhone directly to a Nas. I currently use iTunes for this with the Mac, but want to know if its possible without actually using a Mac or PC with iTunes?

    Is there any app available to directly copy from iPhone or iPad from the movies app to a nas without having to use iTunes.

    wjosten - thanks very much for the detailed instructions. I'll try this as soon as I get my replacement and it looks like you'll probably end up getting the green tick

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Is there any API available to read drm files in ios devices?

    Hi,
    I am ios developer and trying to read DRM files using my app.
    I want to know is there any API available for the same.
    Thanks in Advance.

    Hi Prathap,
    No, there is no Java API specific for RDF functionality available. However, Java client applications can use JDBC to access the RDF store. A partially relevant post is at How do you query Oracle RDF database using Java program? . The JDBC documentation will have detailed documentation on using JDBC.
    Code snippets for one way of accessing SDO_RDF_MATCH through Java is below:
    <..........>
    sbStmt.append("select * from TABLE( ")
    .append(" SDO_RDF_MATCH('(?S ?P ?O)',")
    .append(" SDO_RDF_Models('")
    .append( <model_name> )
    .append("'),")
    .append("null,null,null))")
    .append(" where rownum <= ")
    .append(iNumRows)
    ResultSet rs = stmt.executeQuery(sbStmt.toString());
    while (rs.next()) {
    System.out.print("\n");
    System.out.print(rs.getString("S"));
    System.out.print(" (");
    System.out.print(rs.getString("S$RDFVTYP"));
    System.out.print(") ");
    System.out.print(", ");
    System.out.print(rs.getString("P"));
    System.out.print(" (");
    System.out.print(rs.getString("P$RDFVTYP"));
    System.out.print(") ");
    System.out.print(", ");
    System.out.print(rs.getString("O"));
    System.out.print(" (");
    System.out.print(rs.getString("O$RDFVTYP"));
    System.out.print(") ");
    <............>
    <...... handling CLOB values that are returned ....>
    // read CLOB if applicable
    Reader reader = null;
    try {
    CLOB clob = ((OracleResultSet) rs).getCLOB("O$RDFCLOB");
    if (clob == null) {
    System.out.print("not a long literal ");
    else {
    reader = clob.getCharacterStream();
    char[] buffer = new char[1024];
    // reading 1K at a time (just a demo)
    int iLength = reader.read(buffer);
    for (int i = 0; i < iLength; i++) {
    System.out.print(buffer);
    System.out.print(" ...");
    finally {
    if (reader != null) reader.close();
    <..........>

  • Is there any policy available by Apple through which I can exchange my iPhone 4s to iPhone 5?

    I have recently bought iPhone 4s. Within one month iPhone 5 get launched. Is there any policy available by Apple through which I can exchange my iPhone 4s to iPhone 5? I am ready to pay the extra amount.

    I have recently bought iPhone 4s. Within one month iPhone 5 get launched.
    I bought iPhone 4s on 20th July.
    Huh?  How did you figure that the iPhone 5 was launched "within one month" of your purchase??  The iPhone 5 wasn't released until September in the USA and later in India.  Your sense of entitlement exceeds your skill with a calendar.

  • Is there any documantation available on ADF java script?

    Hi,
    In my project i dealing with too many clientside functions, i am very happy if there any documentation available on the same.
    please let me know anybody come across any documentation on ADF specific javascript.
    thank you in advance,
    Dinil

    Hi,
    the FMW docs (http://download.oracle.com/docs/cd/E15523_01/index.htm) also contain a reference to the JavaScript API. Note that the recommendation is to use javaScript by exception. The Web Developer Guide - chapter 5 and others - contain JavaScript examples
    Frank

  • Is there any Software available to permanently delete data in iPhone?

    I recently purchased a new iPhone. I would like to erase all data from my old one before I trade-in the phone. Is there any software available to permanently erase all data from my old iPhone?

    Just Restore it as a New device.
    What to do before selling or giving away your iPhone, iPad, or iPod touch

  • HT1688 I just tried to install the latest software update for an iPhone 5, and now the phone is stuck in recovery mode.  Are there any options available to avoid going through with the recovery.  This seems really lame.

    I just tried to install the latest software update for an iPhone 5, and now the phone is stuck in recovery mode.  Are there any options available to avoid going through with the recovery.  This seems really lame.

    No.
    You must restore.

  • Are there any options available to trade in an old IPad for a new one?

    Are there any options available to trade in an older IPad for the newest version?

    You are most welcome

  • Is there any Program available to Copy a package from one System to Another

    Hi all,
    Is there any Program available to Copy a package from one System to Another ?
    Thanks in advance
    Raghu ram

    Hi,
    Put the Package into a TR using transaction SE80.
    Provide the TR no. to BASIS consultant & ask him to provide the file of that TR.
    Import the TR file in another system.
    Thats it.
    Best regards,
    Prashant

  • Help|| Is there any tool available to register Oracle datasource objects into JNDI

    Is there any tool available to register Oracle datasource objects into JNDI.If so please tell me where can I download.
    Thanks
    shiva

    I'd like to know the answer to this also.
    I just started reading about JNDI 2 days ago and have never used it. I'd like to use DataSource in my application with JNDI. If I can use the database as my JNDI "server", then I'd prefer to do that instead of having a seperate external server.

  • Is there any patch available so i can use it in Oracle 9i Standard Edition

    Incremental Backup and Recovery
    Parallel DML
    Parallel Query
    Export/import Transportable Tablespace
    these features are supported by Oracle 9i Enterprise Edition but not in Oracle 9i Standard Edition
    is there any patch available so i can use it in Oracle 9i Standard Edition

    A DVD is essentially a standard definition image (DV)
    So, if you are not adding titles or compositing, simple DV/NTSC (or DV/PAL) will work.
    If you are doing compositing, ProRes LT for standard definition would be the way to go.
    x

  • Is there any patch available to add kosovo in Territory list?

    Is there any patch available to add kosovo in Territory list?
    Regards .

    Please see these docs.
    How to Add 'Kosovo' to FND_TERRITORIES? [ID 739280.1]
    How Can A New Country Be Added To The Territories Table e.g. Serbia, Montenegro and Kosovo [ID 232508.1]
    How to add 'Kosovo' to FND_TERRITORIES? [ID 564567.1]
    Thanks,
    Hussein

  • Are there any free TV channels that can be received on the Apple TV?

    Are there any free TV channels that can be received on the Apple TV?

    No, it's not a TV tuner.  It's primarily marketed as a rental vehicle for iTunes store movies/purchases and for playback of compatible (see specs) media from iTunes.
    Some subscription streams are available eg Netflix, MLB as well as youTube and some limited internet content (no browser).
    Check the Apple tech pages.

  • Is there any way to download a backup to icloud over the internet

    is there any way to download a backup to icloud over the internet

    Welcome to the Apple Community.
    A back to iCloud of what. Your mobile devices can be backed up to iCloud using the iCloud settings.

Maybe you are looking for

  • Quantity field not getting displayed for all document types

    Hi, I have made a configuration to include field Quantity(BSEG-MENGE) in the GL account line item display.When I ran the report for stock adjustment account(FAGLL03), only the following document types are showing quantity against them. WI- Inventory

  • Where is the file sharing option in ITunes?

    I got the Adobe Reader already and need to know how to import a PDF file to my iPad besides email it to the ipad?

  • RE: Variants in forte [Ref:C614383] [Ref:C635762]

    Hi Travis. Another quick way of creating a variant would be CrystalReport1.Destination = VariantInteger(Value = 1); The Integrating With Windows and Macintosh manual has information on using variants, but it isn't the clearest subject in the document

  • French special characters and navigateToURL problem

    I'm trying to pass accented French characters into an email using the  code below, strangely the ' character comes through Ok, but the é comes through as È, does  anyone know why? Thanks! body ="J%27ai d%E9couvert ce site et j%27ai pens%E9 qu%27il po

  • Easy Reports Question

    Hi all, Platform Windows NT/2000, Reports 2.5 I have to print the report to a file. The thing is that my report is very wide. It contains a lot of fields, and I want them all in one line, because ultimately it will be read in excel. Now i set the MOD