Search for recordsgreater than 45 days and between user input fields

Hi,
How can I query where the
Status id '3' greater than 45 days from the setup_date. (which is the sysdate)
select ppcontract from proj_track where status_id = '3' and SETUP_DATE >= ADD_months (sysdate, +1.5)
Also, How can I put a search criteria to the query which selects the creation_date between the beginning date (user input field) and the end date (user input field)
I guess it would be like this, but it doesn’t work
and creation_date between :p12_start and :p12_end
Thank you in advance. Rav
Message was edited by:
user486969

Try out this.
Where START_DATE = Trunc(Sysdate) - 45
Assuming both input fields are text/varchar2 type,
DT Between To_Date(BEGIN_DT,'MM-DD-YYYY) And To_Date(END_DT,'MM-DD-YYYY)

Similar Messages

  • Ive had my 13 inch macbook pro for less than 30 days and the battery health has gone down to 92% and the computer itself is so slow...i paid %50.00 for an OLD windows computer with 512 mb of ram and it is much faster..is this normal for mac??

    Ive had my 13 inch macbook pro for less than 30 days and the battery health has gone down to 92% and the computer itself is so slow...i paid $50.00 for an OLD windows computer with 512 mb of ram and it is much faster..is this normal for mac?? Also, apple says there is nothing they can/wil do even though i got the apple care....i mean really? $50.00 for 2002 computer with windows XP and 512mb of ram and a single core processor......faster and more usable than $1400.00 computer with 4gb of ram and dual core processor.....***???

    Willtc92 wrote:
    Ive had my 13 inch macbook pro for less than 30 days and the battery health has gone down to 92% and the computer itself is so slow...i paid $50.00 for an OLD windows computer with 512 mb of ram and it is much faster..is this normal for mac??
    obviously not.
    Ive had my 13 inch macbook pro for less than 30 days and the battery health has gone down to 92% and the computer itself is so slow...
    Give examples of how it is slow.

  • Accounts that have not been logged into for more than 90 days

    Hi Folks,
    Good Day.
    Can anyone help me to update below powershel script?
    below script find in my domain all the AD users accounts that have not been logged into for more than 90 days and export the report to .csv file. in addition what I want:
    1. OU=Others, Sales --> exclude this OUs
    2. Disable all the user based on 90 days export report .csv file 
    import-module activedirectory 
    $domain = "test.com" 
    $DaysInactive = 90 
    $time = (Get-Date).Adddays(-($DaysInactive))
    $timer = (Get-Date -Format yyyy-mm-dd)
    # Get all AD User with lastLogonTimestamp less than our time and set to enable
    Get-ADUser -Filter {LastLogonTimeStamp -lt $time -and enabled -eq $true} -Properties LastLogonTimeStamp |
    # Output Name and lastLogonTimestamp into CSV
    select-object givenname,Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString('dd-MM-yyyy_hh:mm:ss')}} | Export-Csv c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv –NoTypeInformation
    Many thanks for advance Help:

    Hi Anna,
    Good Day.
    Many thanks for your responce.
    with your help i can manage to exclude the OUs as wellas can get the .csv report via mail.
    Now i want to disable all the user based on 90 days export report .csv file.
    could you help me on this please? the report will come everyday like below:
    filename=90DaysInactive-dd-mm-yyyy.csv
    sample output:
    Given name User Name
    Last LogOn
    Test User1 user1
    03-10-2006_05:30:59
    Test User2 user2
    02-10-2006_12:00:34
    import-module activedirectory 
    $domain = "test.com" 
    $DaysInactive = 1 
    $time = (Get-Date).Adddays(-($DaysInactive))
    $timer = (Get-Date -Format yyyy-mm-dd)
    $FileName="c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv"
    $from = "[email protected]"
    $to = "[email protected]"
    $smtpHost = "smtpservername"
    $Subject = "90 Days Inactive Accounts"
    $body = "90 Days Inactive Accounts report"
    # Get all AD User with lastLogonTimestamp less than our time and set to enable
    Get-ADUser -Filter {LastLogonTimeStamp -lt $time -and enabled -eq $true} -Properties LastLogonTimeStamp | where {($_.distinguishedname -notlike "*OU=HR*") -and ($_.distinguishedname -notlike "*OU=OT*")} | 
    # Output Name and lastLogonTimestamp into CSV
    select-object givenname,Name,@{Name="Last Logon"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString('dd-MM-yyyy_hh:mm:ss')}} | Export-Csv c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv -NoTypeInformation
    Send-MailMessage -From $from -To $to -Subject $subject -cc $cc -SmtpServer $smtpHost -Attachments $FileName -Body $body -BodyAsHtml
    Thanks for your advance help.

  • The original 5 meters distance router in WiFi signal is full, but the beginning of the past few days more than 3 meters on the search to the WiFi signal, my own iPhone 5, iPhone 4S received signal is full, only iPad2 searching for less than the signal.

    The original 5 meters distance router in WiFi signal is full, but the beginning of the past few days more than 3 meters on the search to the WiFi signal, my own iPhone 5, iPhone 4S received signal is full, only iPad2 searching for less than the signal.

    The original 5 meters distance router in WiFi signal is full, but the beginning of the past few days more than 3 meters on the search to the WiFi signal, my own iPhone 5, iPhone 4S received signal is full, only iPad2 searching for less than the signal.

  • My macbook pro won't hold a charge for more than a day...do I need a new battery?

    my macbook pro won't hold a charge for more than a day...do I need a new battery?  I have a 13" early 2011 model.

    A: did you leave most of the time or always plugged in?
    B: did you often drain the battery very low?
    If so, then thats the issue
    From Apple on batteries:
    http://support.apple.com/kb/HT1446
    http://www.apple.com/batteries/
    Storing your MacBook
    If you are going to store your MacBook away for an extended period of time, keep it in a cool location (room temperature roughly 22° C or about 72° F). Make certain you have at least a 50% charge on the internal battery of your Macbook if you plan on storing it away for a few months; recharge your battery to 50% or so every six months roughly if being stored away. If you live in a humid environment, keep your Macbook stored in its zippered case to prevent infiltration of humidity on the internals of your Macbook which could lead to corrosion.
    Considerations:
    Your battery is subject to chemical aging even if not in use. A Lithium battery is aging as soon as its made, regardless.
    In a perfect (although impractical) situation, your lithium battery is best idealized swinging back and forth between 20 and 85% SOC (state of charge) roughly.
    Further still how you discharge the battery is far more important than how it is either charged or stored short term, and more important long term that cycle counts.
    Ultimately counting charge cycles is of little importance.  Abuse in discharging (foremost), charging, and storing the battery and how it affects battery chemistry is important and not the ‘odometer’ reading, or cycle counts on the battery. 
    Everything boils down to battery chemistry long term, and not an arbitrary number, or cycle count.
    Keep your macbook plugged in when near a socket since in the near end of long-term life, this is beneficial to the battery.
    Peace

  • Quota deduction when EE has been inactive for more than 180 days / Advance quota days when employee does not have enough balance

    Dear experts,
    We have two requirements regarding to the "Anual leave" quota.
    1. Quota reduction when employee is inactive for more than 180 days
    2. Advance quota days when employeee does not have enough balance
    We have in place an "Anual Leave" quota related to a calendar year period, that gets generated dialy in time evaluation. This quota gets the employee entitlement from a set of rules that stored the corresponding balance in a period time type, that is the one that we defined in the customizing. This is working fine. The problems start when we try to incorporate the other two requirements.
    Regarding the first requirement, if the employee has been inactive for more than 180 days in a calendar year due to unpaid leave, we need to start quota reduction as follow,
    First, we need to clear the balance that was calculated above in the schema.
    Then, we need to calculate one leave day for every 20 days worked till the end of the year, considering as such, everyday the employee is expected to work, except days on which the employee has been absent on unpaid leave.
    For the second requirement we created a manual quota call "Advance Anual Leave". So, if the employee, wishes to take 20 working days holiday, but in his/her Anual Leave quota has only 10 days available, we have to create an "Advance Anual Leave" quota manualy for 10 days. When the quota for next year gets generated, we need to deduct these advanced 10 days from it. This deduction should stop the year after.
    The problem we are finding with these two requirements is that, due to the Anual Leave quota gets generated dialy, we can't get the balance right.
    Thanks in advance!
    Kind regards,
    Alex

    Hello binbingogoABC,
    Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
    Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
    I'm very grateful that you wrote to us with your concerns.
    Sincerely,

  • HP LaserJet 1300 not connected for more than 1 day

    Since Apple came out with the Yosemite printing system, I cannot print wirelessly for more than one day. I have reset my modem, changed the location of my network, unplugged and repowered Airport Extreme, started in Safe Mode, and more.
    No matter what I do: I either get:  a printer name with a number in parenthese or a long Bonjour number when deleting and adding a printer on my laptop.
    Whatever I do, it only works from about 24 to 36 hours. Then when i go to print it says Printer is Not Connected. I can delete and add again, usually it will find the printer, add it, print, and then a day or two later, the printer is not connected again.
    But I have to keep redoing this both to my laptop and my wife's, and we have not had reliable printing since Yosemite cane out about October 18, 2014.
    Equipment
    iMac:
    Operating Sysem: 10.10.1
    Printer: HP LaserJet 1300
    Network: Comcast
    Router: Airport Extreme
    The only thing I have not done I can think of is reset Airport Extreme.  I can do that, but don't know if I will then have additional problems.
    This all started with the YIosemite update but at this point I don't know if it is an HP-related problem or a general Yosemite-related problem.
    I appreciate any help I can get. Have wasted probably 40 hours over two-plus months trying to get this fixed. When Apple could not fix it back in October, the person referred me to HP. The person at HP Business did not know my printer was supported for Yosemite although his own web site said it was. So that was not much help And after resetting printers, deleting and adding printers, etc., I don't know what else to do.
    Thanks for listening.

    Did it start not syncing after the iOS 4.2 update?

  • How can I get rid of ios6 ? I have had this iPad for less than 2 weeks and,ade the mistle of "upgrading" to ios6 and now my map is completely useless.  Feel like I have been robbed

    how can I get rid of ios6 ? I have had this iPad for less than 2 weeks and made the mistake of "upgrading" to ios6 and now my map is completely useless.  Feel like I have been robbed

    There are alternatives. But none of them have Google street view, able to work on iOS 6. Apple should have offered this as a beta version, for a few more months instead of inflicting us with an inferior product. This iPad will probably be my last Apple product. A shame, because until last a few days ago, I thought the iPad and iPhone were fantastic.
    Apple should quit their petty squabbling with, Google and Samsung and concentrate on supplying the best product.
    Google and Samsung must be enjoying this particular fiasco.

  • Attach Database running for more than 2 days

    Hi,
    I have a sql sever 2005 database of SAP development which is having a deferred transaction error while DBCC.  After restart the SQL log says the below. Still the DBCC error exists.
    2013-04-19 14:27:22.10 spid14s     Recovery of database 'BDS' (5) is 99% complete (approximately 3 seconds remain). Phase 2 of 3. This is an informational message only. No user action is required.
    2013-04-19 14:27:22.10 spid14s     1830496 transactions rolled forward in database 'BDS' (5). This is an informational message only. No user action is required.
    2013-04-19 14:27:22.71 spid14s     Recovery of database 'BDS' (5) is 99% complete (approximately 3 seconds remain). Phase 3 of 3. This is an informational message only. No user action is required.
    2013-04-19 14:27:23.34 spid14s     CHECKDB for database 'BDS' finished without errors on 2012-10-14 19:22:43.603 (local time). This is an informational message only; no user action is required.
    I have copied the mdf, ndf and ldf file to another location and try to attach the database it is running for more than 2 days now. Still not given any error.  DVM  shows the create database  status as running.  The SQL Log shows the below
    message.
    2014-03-29 19:19:52.04 spid52      Recovery of database 'BDS' (8) is 99% complete (approximately 3 seconds remain). Phase 2 of 3. This is an informational message only. No user action is required.
    2014-03-29 19:19:52.04 spid52      5313464 transactions rolled forward in database 'BDS' (8). This is an informational message only. No user action is required.
    2014-03-29 19:19:52.29 spid52      Recovery of database 'BDS' (8) is 99% complete (approximately 3 seconds remain). Phase 3 of 3. This is an informational message only. No user action is required.
    Please help me to solve this issue.  
    Regards,
    suren

    >I have copied the mdf, ndf and ldf file to another location and try to attach the database it is running for more than 2 days now.
    It is safer to:
    1. Backup the database:
    http://technet.microsoft.com/en-us/library/ms187510.aspx
    2. Copy backup file over to destination server
    3. Restore the database
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • REQUEST RUNNING FOR MORE THAN ONE DAY - HOW INVESTIGATE ABOUT THIS

    Hi Everyone ...
    As you know when you submit any request throigh concurrent manager . The request completed normal or give warning or error .
    My probelm I have request running for more than one day .but I don't know right tool how invetigate about this issue .
    I checked alert log and database lock but nothing wierd .
    We are using 11.5.10.2 with 10.2.0.4 DB .
    Thanks in advance ...
    Edited by: user12010537 on 26/09/2010 05:39 ص
    Edited by: user12010537 on 26/09/2010 05:46 ص

    Hi,
    schavali wrote:
    Use MOS Doc 735119.1 (How to Find Database Session & Process Associated with a Concurrent Program Which is Currently Running) to determine the PID of the concurrent request, then follow the steps identified in MOS Doc 1058210.6 (How to Enable SQL_TRACE for Another Session or in MTS Using Oradebug)
    enable tha trace
    Re: enable tha trace
    Thanks,
    Hussein

  • SCCM 2012 Secondary site some client's are scan hardware inventory for more than 30 days

    Hi, 
    In our SCCM 2012 environment we have secondary site configured which connected with 8500 computers, on those 5500 machines scanning hardware inventory and send latest inventory details to Secondary Site Management Point, but remaing 3000 machines are not
    sending latest hardware inventory for more than 30 days. I verified clients log  found it is generating report on inventory agent.log however it is not available with secondary site Management Point.
    Are anyone experienced this issue, please share your thought how to fix this issue.
    Thanks in advance. 
    Madhan

    Yes i did verify but the client isn't listed on both log files. Also i couldn't open IIS log because of it size has more than 800MB. currently this site has connected with 8500 machines do you think these many clients are supported by secondary site server. 
    If you can't open the IIS log then how do you know that the Client's IP is not listed within them?
    5000 is the max for a secondary site. You will need to secondary sites at this location.
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigClientNumbers
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012 Secondary site client's are not doing hardware scan for more than 30 days

    Hi, 
    On our SCCM environment around 2500 active clients mapped for particular secondary site not performed hardware scan for more than 30 days. Can anyone provide suggestion how to fix this. 
    Regards,
    Madhan

    Yes i confirmed it is listing correct MP and software scan is working fine. we have around 8500 machines connected to that site buy only 3000 machines are having this issue. anyone has faced this issue ?
    Only 5000 Computers are supported by a secondary site.
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigClientNumbers
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • My iphone randomly shut off. I left it in the car for less than two minutes and went to grab it and it was off. I tried to turn it on but it wouldn't.

    I left my Iphone in the car for less than 2 minutes and when I came back it was shut off. Someone told me to hold down the home button and the lock button down for 10 seconds but my lock button does not work. I didnt drop it didn't get it wet it just stopped working. It was fully charged when this happened. I don't know what to do. i plugged it in and it was still a black screen, Help me please!

    Dear Ashley - Y'day, I had the same problem.  Before shutting off the phone vibrated for a minute or two and then the phone stopped working.  I tried restart, charge all through y'day but it did not work.  However, I left the phone without charging over night and tried today morning - luckily, it started and prompted me to upgrade to 5.1.1, which I did.  I too have posted a question for help if there is some bug to fix.  Hope your phone will also work again.  All the best.

  • I accidentally changed a setting on my ipod touch and now it won't change back. I have had my ipod for more than two years and i dont know what to do. If i go to the apple store, would they fix it, or would i need to get a new one?

    I accidentally changed a setting on my ipod touch and now it won't change back. I have had my ipod for more than two years and i dont know what to do. If i go to the apple store, would they fix it, or would i need to get a new one? If it could be fixed, how much would it cost?

    If it is still under warranty you can call the 800 number to apple and enter the serial number and it will tell you if it is under warranty or not if not its like $30 basically for them to help or something like that it said today when i called...
    Or take it to a genius bar if you have one near?
    Or further explain what setting you are needing fixed back and im sure someone here can help you for free!

  • The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a long dead product used by big companies, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (please check your invoice, as Adobe have many similar products), and we can perhaps direct you. Good luck!

Maybe you are looking for

  • Keeping my BT Yahoo Premium Mail Account, I am hav...

    I cancelled my BT Broadband Option 3 subscription around Nov 20th 2011 and I discovered on the internet that my BT Yahoo Premium mail would be terminated 90 days after my BT Broadband was cancelled, I've had my bt email account for around 10 years so

  • BPM Process trigger -  giving error

    Hi , I have created the WSDL file to trigger start process of BPM. When i am executing the webservice from WSNAVIGATOR am getting the below error:- process() [EXCEPTION] com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: Technical

  • Global Hints in oracle

    Hi all, Can any one please tell me what is Global Hints in oracle. i know normal hints usage. what is difference between normal hints and global hints. Thanks in Advance, Sanjeev.

  • About project

    Hi , Any body pls explain about different steps present in a project development and supporting . And how we will submit our project to the client . I want detail description about real time environment Technical terms.

  • New Intel Xserve Lights Out Management dies

    Have a new Xserve with LOM. Problem is that after about 1/2 an hour of monitoring with the Server Monitor application from my desktop MacPro the Xserve stops responding via Server Monitor. The only way to get it to work again is to reboot the server.