problem to insert only month and year instead of the full date

select b.penjara_id, p.penj_lokasi, a.no_daftar, b.episod, b.nama1,to_char(a.trkh_mula_prl,'dd/mm/yyyy') as trkh_mula_prl, to_char(bulan_proses,'mm/yyyy') as bulan_proses,
        b.epd, b.lpd
from prl_daftar_proses a, senarai_pesalah b, penjara p

where a.no_daftar=b.no_daftar
and a.episod=b.episod
and b.penjara_id = p.penjara_id
and a.setuju_jplp is null
and a.bulan_proses between to_date(:FROM,'dd/mm/yyyy') and to_date(:TO,'dd/mm/yyyy')


order by b.penjara_id, a.bulan_proses,a.no_daftar
Hi, can someone help me how I can register only the month and year of the value which have full day in the database?

for example, the date is 18/09/2012, but I want to just insert 09/2012 as a parameter. If I want to insert only one setting, I can do... But I have problem when I want to insert two parameters...

Lina saleh wrote:
I already try before that and he invites me error like this...
"name of the invalid host/identification variable.

Change the name of the connection variable to: from_date and: to_date

Is a reserved keyword.

Tags: Database

Similar Questions

  • Set the calendar to display day, month and year

    In addition to the time of day, my computer began giving the day of the week (Monday) only instead of day, month and year as it did before. Tried to go back to 29/12/2014 or something similar without success.  Any suggestions?

    Hello

    Sorry for the late reply and I appreciate your patience.

    User profile corruption might have caused the problem. As a solution, I suggest to create a new user profile and check if the date format displays the same thing.

    To do this, see the link below.

    http://Windows.Microsoft.com/en-us/Windows/fix-corrupted-user-profile#1TC=Windows-7.

    It will be useful. Just answer us with the State, and we will be happy to help you.

  • spend months and year in a query

    I created_date in my table... I want to only get the records of a month or a year of records

    How we can write a query to spend months and year to a query

    example is my name of the x table

    Select * from x where trunc (created_date) =?

    Hello

    Rather than convert all DATES in your array to a string and then compare these values to a parameter of sting, it would be more efficient to convert your DATE string parameter and then compare all your DATEs unchanged to her.
    For example, if: year_month is the string "201108', you might say:

    SELECT  *
    FROM    x
    WHERE   created_date >=             TO_DATE (:year_month || '01', 'YYYYMMDD')
    AND     created_date < ADD_MONTHS ( TO_DATE (:year_month || '01', 'YYYYMMDD')
                          , 1
                          )
    ;
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT statements) for table x, some values for: year_month, and the desired results for each value of: year_month from these data.
    Always tell what version of Oracle you are using.

  • I want to collect rain for the day, month and year; Can what formula I use?

    I want to collect rain for the day, month and year; What formula or expression that I can use.

    I use a Rain Wise product that converts impulses to an analog value.  The rain wise device can be

    "the value measure up to 1", 5", or 10".  I will be setting the unit at 10 inches in increments of 0.01 inch.

    What I would do is at each time increments of signal I would consider it as 0.01 then after reaching

    a period of time a day or a month, back to zero.

    Need some advice on this problem.

    How about you, using a counter to count the number of times where the signal is less than 0.01?

    For example,.

    Counter.Count = signal<=>

    The total number of rain is

    Counter * 10 + signal

    Use TimeOfDay or TimeOfWeek to reset the counter.

  • Get the number of days in a month based on the month and year of fields

    I have a column in my form which lists the days in a month. I want to configure a hidden field that calculates the total number of days in a month, based on the month and year of the field inputs. The number of days will determine what appears on the column. For example, if I put 4 months, and 2016 in the field of the year, I get 30 in the hidden field. Thus, on the column 'Day', I'll have numbers 1-30. Or if I put 2 months and 2016 in the field of the year, I get the 29 in the hidden field. If the numbers 1-29 appears in the column 'day '.

    Found this on some forum javascript code:

    //Month is 1 based
    function daysInMonth(month,year) {
      
    return new Date(year, month, 0).getDate();
    }

    //July
    daysInMonth
    (7,2009); //31
    //February
    daysInMonth
    (2,2009); //28
    daysInMonth
    (2,2008); //29

    I do not know how to convert this code in JavaScript to adobe and don't really know how to use it. All I know how to do is to configure the field values for the field month and year as variables. I am a novice programmer and would appreciate it really all the help I can get. Thank you in advance!

    The code seems to be JavaScript and runs as needed by using the JavaScript console.

    I would like to consider making more general code, so if you have a date string that includes at least the month and year we could just call the function and get the number of days for that month.

    The following script will calculate the number of days in a month, by using at least the month and year values can display the result on the JavaScript console and all of the value field for the field that has this code as the custom calculation Script.

    function daysInMonth (oDate) {}
    return new Date (oDate.getFullYear (), oDate.getMonth () + 1, 0) .getDate ();
    }

    nMonth var = this.getField("Month").valueAsString; get the value of month;
    nYear var = this.getField("Year").valueAsString; get the value of the year;

    Event.Value = "";

    If (nMonth! = "" & nYear!) = "") {}
    var MyDate = util.scand ("' / mm/yyyy ', nMonth +" / "+ nYear); convert to date object;
    var nDaysInMonth = daysInMonth (MyDate); get the number of days;

    Console.Open (); Open the JavaScript console;

    Console.clear(); clear the console;

    Console.println ("Days in" + nMonth + ":" + nDaysInMonth); show days in month;

    Event.Value = nDaysInMonth; Set the value of the field;

    }

  • If I buy 1 annual contract with monthly payment app am I then linked throughout the year, or can I cancel after 3 months and then not pay the rest of the year?

    If I buy 1 annual contract with monthly payment app am I then linked throughout the year, or can I cancel after 3 months and then not pay the rest of the year?

    I found the answer myself via chat. the answer is Yes, you can cancel, but you must pay 50% of the remaining months of the annual contract

  • get the month and year of date type

    Hi all
    I need to get the month and year of type date.

    For example
    select to_date('2011-01-17', 'yyyy-mm-dd') from dual;
    Required result:
    01-2011
    Any ideas?

    Thanks in advance,
    Bahchevanov.
    select to_char(to_date('2011-01-17', 'yyyy-mm-dd'),'mm-yyyy') from dual;
    

    HTH

  • Get the number of days, months and year

    Hi all

    I'm using OBIEE 11 g. I have a line of dash for year (2010, 2011, etc.) and months (Jan, Feb,..., Dec). How can I get the number of days in a given month and year in my report?

    For example, if I choose to Jan & 2011, I'd get 31 and 356. And if I choose Feb & 2011, I would get 28 and 356.

    Thank you!

    I have something more good option here... Try to use this

    DAYOFMONTH (TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, TIMESTAMPADD (SQL_TSI_MONTH, 1, CURRENT_DATE)))

    This will give you the days for the month in progress (Oct 2011) after calculating the last day of each month... Similary dynamically pass the value Date or month... You will need to modify this function but shud be simple. Hope this helps :)

  • to get the month and year separated

    Hello

    I have the entry_date_fin of column (type of data-varchar2 (8))

    with values like Apr.-2008
    Feb-2009 etc.

    can I get the distinct month and year separated
    i tried select to_date(entry_date_fin,'MM') FROM  xyz  doesnt wrk
    kindly guide me

    Although you are (wrongly, IMO) storage of dates as strings, just use string manipulation...

    SQL> with t as (select 'FEB-2008' as txt from dual)
      2  --
      3  select substr(txt,1,3) as mnth
      4        ,substr(txt,5) as yr
      5  from t
      6  /
    
    MNT YR
    --- ----
    FEB 2008
    
    SQL>
    
  • I already bought an Adobe Acrobat Pro DC with order number: 10617099159, but unfortunately, I made a mistake choosing the upgrade instead of the full version. I already made the payment of US$ 199.00. is there a chance to pay deference and get the ful

    I already bought an Adobe Acrobat Pro DC with order number: 10617099159, but unfortunately, I made a mistake choosing the upgrade instead of the full version. I already made the payment of US$ 199.00. is there a chance to pay deference and get the full version stander? Please advise.

    Do not worry, you must contact Adobe technical support, they will certainly check and assist you accordingly.

    You can simply cancel this order and then to order the full version.

    Contact the customer service

    [Click the button still need help and select the Chat option.]

  • Permit refused: physical location, really you have to "re - serialize this device and add it to the full pool"?

    I am a teacher and have an Adobe CC license through my school, which is located in Valencia, Spain. However, the school year ends July 15 and I am now in the United States and will be until I return to teach next January.

    My Adobe products worked fine until a few days ago when I tried to open an Adobe application and I received the following message:

    License denied

    There is no license associated with this device.

    The license for creative cloud on this device was refused.

    Please contact administrator for re - serialize this device and add it to the full pool.

    Screen Shot 2016-07-27 at 12.22.28 PM.png

    I contacted my admin, and he said that I (or my computer) had to be physically at Valencia in order to re - authorize the device. (I have an Adobe ID, but a different Adobe ID of the school of the Department's it was used to install CC.) Because I won't be back in Valencia for 6 months, and I need to use the software now, it is a major problem.

    I hope that there is a way to do this remotely (it is 2016, after all) that my admin does not know, or did not bother to understand.

    Is it possible to "re - serialize this device" remotely?

    Thank you

    Jon

    > Different Adobe ID of the school of THIS Department was used to install CC

    Who could tell me that YOU do not have the subscription, it is up to your school when then means that YOU can not renew the subscription with your ID and your current place of residence

    The only option I see is to buy your own subscription... using the monthly option rather than the annual with monthly payments option since you won't need a personal subscription for one year plans membership FAQ: what is the difference between an annual and monthly plan?

    Or, as it is an open forum, not Adobe support... Click below to contact Adobe staff for help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Operations Manager 6.1 5.5 Web client on vSphere link refer to the IP address instead of the FULL domain name

    Hello

    We have a new environment vROps 6.1. Everything works like a charm, except when I get the Web Client vSphere. Hosts and Clusters - monitor - health, I try to click on the "see details in vCenter Operations Manager" and I get sent to the IP address to one of the nodes in the cluster vROps. This translates into a certificate error. We have signed all the certificates for the solution of vROps, but that doesn't help us when the link refers to one IP address. Any way to change the behavior of the link to go instead of the full domain name?

    Thanks in advance for your comments.

    Concerning

    Atle

    Yes, here is a code snippet PowerCLI to do:

    to connect-viserver

    $extMgr = get-view ExtensionManager

    $vRops = $extMgr.ExtensionList |? {$_.key - eq "com.vmware.vcops"}

    $vRops.Server [0]. URL = "https://vrops-fqdn/vcops-ngc.zip".

    $ExtExtendedProductInfo = new-Object VMware.Vim.ExtExtendedProductInfo

    $ExtSolutionManagerInfo = new-Object VMware.Vim.ExtSolutionManagerInfo

    $vRops.ExtendedProductInfo = $ExtExtendedProductInfo

    $vRops.SolutionManagerInfo = $ExtSolutionManagerInfo

    $extMgr.UpdateExtension ($vRops)

    AK

  • I, go, to, school, home, art, Institute, Pittsburgh, online, year, I, need, the, full, version, to be cloud creative teenager, My, reference, the number, your, company, East, 0186952372, I, again, can not, issue work, Creative, cloud, to, this, new, compu

    I, go, to, school, home, art, Institute, Pittsburgh, online, year, I, need, the, full, version, to be cloud creative teenager, My, reference, the number, your, company, East, 0186952372, I, again, can not, issue work, Creative, cloud, to, this, new, computer, my

    Hello

    I checked with your Adobe ID on the forums that there is no active subscriptions to this topic, please use the e-mail address to which you traded your redemption code and try again.

    Use the link below to install Adobe Creative cloud on the new system.

    Download and install Adobe Creative Cloud apps

    Kind regards

    Bani

  • I can not get the automatic updates on my samsung jack sgh-i616. _ "connection to the update server is not available. Check your data connection settings and make sure that the device date and time are correct "___RESULT CODE: 80072ee7__ _"

    I can't get the automatic updates on my samsung jack sgh-i616.

     

    "Connection to the update server is not available. "Check your data connection settings and make sure that the device date and time are correct.

     

    RESULT CODE: 80072ee7

     

    -It is a windows mobile 6.1

    Thank you very much! = D

    As a guide.

    This error code translates ERROR_INTERNET_CANNOT_CONNECT.

    You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
    http://support.Microsoft.com/kb/836941

    Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • I live in Colombia and I would buy the full suite in Colombian pesos creative, I try in the Web page and he makes me in USD. How can I buy it?

    I live in Colombia and I would buy the full suite in Colombian pesos creative, I try in the Web page and he makes me in USD. How can I buy it?

    They may also help:

    FAQ: Is creative cloud available in my country?

    FAQ: Why my purchase showing the wrong currency?

    FAQ: How can I view Adobe web pages in another language?

    FAQ: How can I change the country associated with my Adobe ID?

Maybe you are looking for