Gathering data from entire month, from a date within that month

hello, i have the following code
select 'Shipped Amount' Descrip,(SELECT ROUND(sum(line_item_amount),2) from v_bi_invoiced_sales
where client='PROD' and mat_type='CAST'
and to_char(trunc(invoice_date),'YYYYMM')= TO_CHAR(TO_DATE(:P1_FROM_DATE,'MM/DD/YY'),'YYYYMM')) as Monthly,
(SELECT sum(line_item_amount) from v_bi_invoiced_sales
where client='PROD' and mat_type='CAST'
and to_char(trunc(invoice_date),'YYYY')= TO_CHAR(TO_DATE(:P1_FROM_DATE,'MM/DD/YY'),'YYYY')) as Yearly
from dualI have a different report that has only one date field, and i want to find whatever total montly shipping from whatever date is entered. Example: today is march 26th, and if this is entered, i want to find all this shipping from march 1st, 2010 through date. Another example: if Jan 6th, 2010 is entered, i want the entire month of Jan2010 shipping in the monthly shipping field displayed.
thanks
Corey

select sum(nvl(total_invoice_amt,0)) from a_invoice_header
where client ='PROD'
and invoice_date between :p1_date('01-'||to_char(:p1_date,'MON-RR'),'DD-MON-RR') and last_day(:p1_date)and BILLING_DOC_TYPE ='IN'my ":p1_date" is a date displayed from the date picker (use application format mask) and its source is:
SELECT TRUNC(SYSDATE) FROM DUALso it is basically the system date, i change everything to :p1_date and am still getting:
ORA-01403: no data found
Error ERR-1020 Error in PLSQL item processing (function).
OK
corey

Similar Messages

  • In MS Exchange, if I turn off mail, does it delete all of those emails from the device, within that Account?

    Hi,
    I'm currently experiencing difficulties with linked my iphone with MS Exchange for email.
    Within my MS Exchange account, I want to deactivate my mail, but keep Contacts, Calendar etc. My question is, if I was to switch mail off, does this delete all of the emails from my iPhone or just stop displaying them? What is the impact of this?
    The reason being is that I have a few thousand emails, which takes a long time to transfer and this is something that I may wish to re-activate in the future.
    Any help would be greatly appreciated! :-)
    Thanks in advance,
    Rich

    Just uncheck mail and the contacts/calendars will be fine.   Only mail will be removed.

  • Encoding Problem: Losing German Umlaute from gathering data from Oracle 8i

    my problem does concerns the diplay of german Umlaute such as äöüß etc. The OS is NW65 out of the box with Apache 2.0.49 and tomcat 4.1.28, JVM 1.4.2_02 and JDBC-driver Oracle 8i 8.1.7 JDBC Driver.
    The Data containing Umlaute which are retreived from the Database does somehow lose it´s Umlaute. The Umlaut which are coded in the servlet directly in order to generate the regular HTML does display the Umlaute without any problem.
    The same servlet and request from a Unix Enviroment does work fine. We have checked all Codepage settings (Java, NetWare, Tomcat etc).

    Hi Sven and Ingmar,
    I will try to kill 2 birds with one stone here. First of all you should check the definition of your current database character set and make sure that it can support all the characters that you need to store in your database.
    Please check out
    http://www.microsoft.com/globaldev/reference/iso.asp
    WE8ISO8859P9 is for Turkish and WE8ISO8859P1 is for western European (without Euro support).
    Next you need to set your client NLS_LANG character set (eg. for your SQL*Plus seesion), so that Oracle can convert your client operating system characters correctly into your database character set. The NLS_LANG character set also determines how SQL*Plus interpret/display your characters upon retrieval from the db.
    In both of your cases , I believed that the client NLS_LANG setting was not defined , hence this was defaulting to AMERICAN_AMERICA.US7ASCII. This is telling SQL*PLUS that the your client operating system can handle ASCII data only , hence all the accented characters are converted to ASCII during insertion into the database. Likewise upon data retrieval.
    If you are running SQL*PLUS client on English Windows then you NLS_LANG character set should be WE8MSWIN1252 and for Turkish Windows it should set to TR8MSWIN1254 .
    If the client character set and the database character set are the same , Oracle does not perform any data conversion, that's why if you use a US7ASCII database and set you NLS_LANG character set to US7ASCII .then you can insert all the accented Latin characters , Japanese , Chinese etc. This configuration is not supported, and it can cause many issues.
    For more information on character set configuration and possible problems.
    Please check out the white paper Database Character set migration on http://otn.oracle.com/products/oracle8i/content.html#nls
    And the Globalization Support FAQ at:
    http://technet.oracle.com/products/oracle8i/
    Regards
    Nat
    null

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How can I periodicaly get data from a CAN interface that works in "Transmit by response" mode??

    Hello Again!
    I am a very new user of LabView, and last week I got the order to implement a Comunication with  a CAN interface.
    I am trying to get Information from a CAN interface, that works as a "slave", as it is said in the very short handbook. This means it only responds, when it is asked to.
    As i want to get the 20 different datas periodicaly it would be fine to do this in a kind of loop. This means:
    -tell the interface to send data1
    -read data 1
    -tell the interface to send  data 2
    Are there any examples or ideas, how to create similar loops? 
    As I am absolutely no expert in computing, it would be nice if you answer with very little technical terms...
    Thanks RT

    Hi RT,
    Try the attached example, which writes a remote frame to your slave and reads the response. It is doing this 20 times in a for loop and a specified timing.
    Hope that helps.
    DirkW
    Attachments:
    CAN Receive Periodic using Remote.vi ‏97 KB

  • My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    Since you have purchased a new Mac (which, BTW, is not typed in all capitals) why not buy a Time Capsule <http://www.apple.com/airport-time-capsule/> which is designed specifically to work with OS X and Time Machine?
    You don't say what part of your Sony "crashed." If it was not the HDD it is possible to take the computer apart, put the HDD in an external case, then recover the data off of it (including the music) simply drag-n-drop. If it was the HDD that "crashed" that makes it more difficult.
    If you are able to recover the music from the Sony you can then add it to the iTunes library on the Mac and iTunes Match will then scan, match and upload the tracks to be mirrored in the cloud.

  • How Do I Wipe Data from a BB Curve that won't come on?

    My BB Curve died yesterday on me and it was under warranty. To get the $160 credit for it under the warranty plan, I need to send it back.  The problem is that it has all kinds of data on it... account numbers, personal information (birthdates, addresses, numbers, etc.) of 800 people in the  directory,
    But since it  won't come on, I'm stumped. How do I wipe it? I've tried changing the battery out time and again, I've tried connecting the charger with and without the battery, I've tried connecting the data cable to maybe access the phone to wipe it--all to no avail. 
    The pop-up I get when I plug it into my computer says: "USB Device Not Recognized." 
    Short of applying a hammer to it (in which case I lose the warranty), how do I reliably wipe the data from it?
    Please advise. 
    Thank you,

    Hello agunodm
    Welcome to BlackBerry Support Forums
    If you're device is dead then its not an easy task to wipe that device , But there are a few methods and some third party software which you can use to wipe and if succesful you may be able to recover your device also .
    At first I suggest try this Kmowledge Base, if you're successful then it will delete all data within your device and also will get your device working :
    KB27956 :  How to recover a BlackBerry smartphone from any state
    Or you can try JL_Cmder , which you can find it here http://www.blackberryfreaks.com/JL_Cmder.html
    So try it and let us know .
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data.

    I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.

    Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
    You need to mount the sparsebundle then check the actual info inside the bundle.
    Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
    Pondini has a lot of stuff about getting access to the sparsebundle.
    http://pondini.org/TM/17.html
    But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself.

  • Recently had to purchase a replacement phone a friend of mine had backed up the data on the lost phone to his Mac laptop how do I get that backed up data from the lost iPhone that's on his Mac laptop to my new replacement phone? Please give step by step

    recently had to purchase a replacement phone a friend of mine had backed up the data on the lost phone to his Mac laptop how do I get that backed up data from the lost iPhone that's on his Mac laptop to my new replacement phone? Please give step by step instructions xoxoxo
    And my iTunes sign in is also screwed up... It is underneath my friends email (the one with my backed up data on his Mac laptop) HOW DO I CHANGE THIS SO THAT I CAN DOWNLOAD APP's again...

    I suspect unless he had some items in iCloud backup then they are gone.  Connecting an iPhone to a different library from that to which it was previously connected will result in the device asking if you want to erase it.

  • Just transferred data to iMac from working Mac Pro that is using Parallels and Windows 7 and the Biblesoft 5  and it will not open on the iMac the only change is the my new iPhone number is  OS.  Any ideas?

    Just transferred data to iMac from working Mac Pro that is using Parallels and Windows 7 and the Biblesoft 5  and it will not open on the iMac the only change is the new Maverick OS from the macpro Lion OS.  Any ideas?
    <Personal Information Edited by Host>

    Setup Assistant and Migration Assistant do not restore MS Windows, it only does the OS X partition. All of your Windows stuff must be backed up and restore using a MS Windows application. If no one on this forum is able to answer your question then I'd repost it on a Parallels forum to see how other Windows users approach this.

  • How can I generate a data merge that includes a barcode from excel spreadsheet to InDesign?

    Can you please advise if the following process is possible within InDesign CS 5.5? (Mac OS 10.8.2).
    We need to create a data merge that includes a barcode. The data merge is for several thousand records.
    We have a customer-supplied Excel spreadsheet that contains seven fields, one of which is a number that ultimately needs to print as a barcode when we make the data merge in InDesign.
    As you would expect, the conventional six fields data merge perfectly - but we can't find a way to make the barcode print correctly within the data merge.
    We have investigated several possible solutions without success.
    Some solutions suggest a plug-in for Excel to convert the number into a barcode whilst still in the spreadsheet - but this doesn't come across correctly when we import the CSV file into the InDesign data merge.
    We have investigated certain third party software applications but none provide the full solution we require. Some, for example, appear to create the barcode within the Excel spreadsheet but don't produce the barcode correctly when we data merge in InDesign; and some will allow us to create a one-off barcode within InDesign but have no automated way of retrieving the thousands of Excel numbers and turning them into barcodes.
    We have also come across possible 'font' solutions but have had no success with these either.
    For a previous job we needed to produce we outsourced to a specialist mailing company, who assured us they produced the whole job (very quickly) within InDesign. They, understandably, won't tell us how they did it. But, given the speed with which they produced the job for us, we imagine - with the correct software - the whole process is easy to do.
    Can you please advise?

    See second posting atHow do I generate a data merge in InDesign from an excel spreadsheet which includes a barcode

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.

    What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.
    This has worked fine with MobileMe with only a couple of minor glitches in the past.
    Any experience doing this the "right" way?

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • When jpeg's are sent as email attachments from other computers, they arrive on my imac as winmail.dat files that I can't open.  What do i need to do to receive such attachments as jpegs that I can open?

    When jpeg's are sent as email attachments from other computers, they arrive on my imac as winmail.dat files that I can't open.  What do i need to do to receive such attachments as jpegs that I can open?

    tommybwin wrote:
    Perhaps go edit>attachments>always send windows-friendly attachments.
    That has no effect on emails that you receive.

Maybe you are looking for

  • How can I install the Dreamweaver 8 from my CS2 Creative suite?

    When I originally installed my Adobe programs for CS2 about 5 years ago, I did not at that time install the dreamweaver from the CD. Now I'm trying to download it, but it will not accept the serial number from the suite (Dreamweaver 8 was still from

  • Ahhhgh! Coventry 02476 s-l-o-w broadband 1mbps

    Yesterday I noticed my broadband was slow. It was down to 0.5 - 1.5mbps - it is normally about 16 mbps. I rang the helpline and they tested my line and said there was a network fault in the area after a fault at the exchange was  "resolved" on Saturd

  • Installing snow leopard on 10.5.8 Leopard G5

    Is there a way to install snow leopard 10.6.3 on an iMAC G5 with 10.5.8 Leopard?

  • A favor to ask of you...

    Hello, I am starting a wedding videography company and I need to see if my Flash wedding demo plays smoothly on the web for my website. Could you please go to the below link to check it out? I need to know if there are any stutters. Could you also no

  • Oracle idle time

    Hi all, In one of our test database(11.2.0.1.0),we want to disable idle time out for developers. There resource_limit=true and default profile has been assigned to all users,where idle time is unlimited. Also SQLNET.EXPIRE_TIME=0. But still the sessi