Am in need of a sample (Newbie question)

I am very new to PL/Sql. I'm want to create a procedure that does the following (I need a sample or pointers to what to read):
I need a procedure that has cursor1 that searches for a list of invoices (createdDate > sysdate-3)
For each of these records i need a new cursor2 that will search for a new set of invoices that have the same invoice date as the returned invoice in the first cursor.
Depending on some criterias in the records in cursor2 I want the procedure to return a list of invoices from both cursor1 and cursor2.
To make this more clear, a sample output would be:
InvoiceNum 18, InvoiceDate 2007/01/02 (from cursor1)
Invoices with same date:
InvoiceNum 3 (from cursor2)
InvoiceNum 7 (from cursor2)
InvoiceNum 19, InvoiceDate 2007/01/08 (from cursor1)
Invoices with same date:
InvoiceNum 8 (from cursor2)
InvoiceNum 17 (from cursor2)
InvoiceNum 18 (from cursor2)
How do I make a procedure that returns two "tables"?
Thanks,
Botzy

My scenario is this:
We sometimes have the problem that an invoice is registered twice - let's say like this:
InvoiceNum        Amount           Date        Vendor
355             15.155,00      01/01/05    SomeVendor
R355            15.165,00      02/01/05    SameVendorNow the invoice 355 was paid yesterday, but today we got a reminder (and interests). With my Procedure I want to catch that newly created invoice, and prevent that it gets paid aswell. And the procedure should check every invoice that was registered today and look for simular invoices throughout the AP system.
If doublets exist, then I want to printout both the invoice today and the invoice that looks like it...
Do you have a suggestion how I should do this with one query (I think it's kinda complex)? The criteria for returning an invoice in the second query would be:
1: Does the vendor have simular name in both invoices?
2: Is the amount of the invoice the same? (plus/minus 5%)
3: Does the new invoice number look like the old one?

Similar Messages

  • Need Help! major newbie question

    I'm trying to place cgi scripts onto the host server and the
    folder is there but i can't find a way to place the scripts into
    that folder without changing the main website folder, and when i do
    it says i don't have access to that folder

    Some ftp favorites:
    WS_ftp
    http://www.wsftp.com/
    Cute FTP
    http://www.globalscape.com/products/ftp_clients.aspx
    File-zilla
    http://filezilla-project.org/
    (free open source)
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "timoteo06" <[email protected]> wrote in
    message
    news:ftof2t$mmi$[email protected]..
    > alright, the folder where they're supposed to go is
    called.
    /var/www/cgi/bin, and any suggestions on another ftp client
    >
    >

  • Newbie Question:  How much computer do I need?

    Newbie Question:
    I would like to use MainStage 3 in a live performance environment to play bars, parties, etc.  I'm not looping, using it to playback recordings, processing outboard equipment or vocal processing.  I want to stop carrying Rolands, Nords, Korgs, etc and get to a controller and a rack with a Mac Mini in it.
    I tested a download of Mainstage 3 on my home Mac Mini (late 2012, 3.5 Ghz i5, 4GB RAM, 500GB drive) and it seemed to run fairly well.  $30 well invested so I trekked forward... I purchased a Mac Mini (late 2009,  2.52GHz Core 2 Duo, 6GB RAM, 128GB SSD) for $200.  I started to do more elaborate keyboard setups to see how the CPU would hold up.  It typically runs from 30% to 50% of capacity (CPU and Memory)  It actually boots and runs better than the i5.  I hear the occasion gitch, but it actually seems to be getting better in time (or I'm rock and roll deaf.
    I got a rack, an Airport Express, a Radial USB interface and a Nektar Panorama P6.  It's starting to get expensive, but I'm emboldened by the actual quality for the sound and the flexibility of arranging for live performance.  What used to take me two and three keyboards to play, I can now fit on one performance patch.
    OK, now the question... am I at the limits of this little Core 2 Duo?  Should I upgrade the i5 with more RAM and a bigger SSD and use that?  Should I get a new(er) i7 and bite the $1,500 bullet for the additional RAM and SSD?
    I see that most of you are running pretty nice Macbook Pros with i7 and lots of everything.  My needs are modest; am I OK? 
    BTW, I want to run a Mac Mini in a box because I don't want to carry a laptop out in the open.  If I was doing bigger shows I wouldn't care but I play some rowdy bars and constantly have folks hanging off me while I'm playing.  It's fun, but hard on gear.  If you can't drop it or dip it in beer, it won't last long where I work.
    Matt Donnelly

    Rule of thumb: newer and faster is better. But, depending the complexity of your needs you may be OK with an older Mac. Some glitches that happen in a live performance are due to loss of communication with USB or Firewire inputs, so make sure they're secure. I recently upgraded from a 2010 Mac Mini 2.6 dual core with 16 GB RAM, which was used live for nearly four years, to the latest Mac Mini 3.0 i7 with 16 GB RAM and a 500 GB SSD. I was getting an occasional stuck note with the older one. The new one is rock solid. Some of my patches may have up to a dozen channel strips mapped to three keyboards. The Mini is mounted in a rack next to a MOTU Ultralite Hybrid. It is a good idea to map a panic button on your keyboard to controller # 123(all notes off). Also, you might want to invest in a battery backup power supply(APC, Cyberpower, etc.-$40-$60) to protect your Mac against power loss, which can damage you hard drive.

  • WebDynPro Newb question

    Hey All,
    I need to begin working with WebDynPro. I have a couple of Newb questions:
    1) I need to jump right in fairly quickly, so can anyone suggest any good documentation that could help me get the basics down about working with WebDynPro?
    2) I loaded a Sample WebDynPro project into NetWeaverDev Studio, but I am unable to export this to our instance of EP on our Development Server. For a .par file its easy to do exports, but I can't for the life of me find where i go in NetWeaverDev Studio to do an export of a WebDynPro project. When I goto export in the WebDynPro perspective, it appears to only want to allow me to export locally, but I need to push to a different server. Can anyone help me with this?
    I appreciate any advice and suggestions. Thanks All!!
    Take care,
    -Kevin

    Hey Rich,
    I have the Engine setup, but I do not get prompted for the SDM password, do I need to configure that somewhere? I get the following error when trying to deploy:
    <i>Jul 15, 2005 10:13:17 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [004]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !</i>
    Thanks,
    -Kevin

  • Total Newbie Question ... Sorry :-(

    I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question.
    When installing new programs on a Mac can you create shortcuts to the programs on the Dock? I did what I THOUGHT it would be, i.e I made an Alias and stuck it in the dock, but on rebooting my Mac later on, in place of the shortcuts where 3 question marks which when clicked on did absolutely nothing???
    Help?
    A.L.I
    Windows XP Pro Desktop, Macbook Pro, 60GB iPod Video   Mac OS X (10.4.5)   OS X

    You aren't installing something from a dmg file are you? The dmg is a disk image – kind of a virtual CD. So when you double click the dmg and then get the little disk/hardrive/custom icon on your desktop that is the same as if you had mounted a CD. You then need to drag the application off of that "CD" into your application folder. Then it is truly installed.
    You can then "eject" the icon your your desktop. This is what happens when you shutdown and without remounting the image your dock shortcut can't find the original.
    Just a thought.

  • Newbie Question. just installed IE7.. how do I set up a local host to preview sites?

    Sorry for the newbie question... but it's been a long time since I have done this
    Thanks!

    Just define your site in DW as always.  For a static site, that's all you need to do.

  • Domain name settings - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name? Any option?

    Setting up a mailserver and making sure it doesn't suddenly turn into a spambox is not something you do with the use of a few commands. I suggest to dive into the Solaris admin guide on docs.sun.com and read up on e-mail and network services.
    If that is asking too much of your time you'll be better off getting your ISP to handle all this for you.

  • Domain Name settings in Solaris - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name?

    Your questions are completely off-topic for the forum.
    These SunOS forums are for questions on <i>"how do I install my OS"</i>
    You particular question is in the <i>"how can I install Solaris while using the CD drive"</i> forum.
    So, if you had a question on how to edit the /etc/inet/hosts file to establish a FQDN on the computer, then it might be appropriate for the forum.
    Unfortunately, I don't have a clue on where to redirect you, except perhaps to the Sun Java Enterprise System suite of applications?

  • Newbie question - XML version, searching by artist

    Probably quite a common problems - apologies for newbie questions.
    I've changed the URL of my MP3s in my XML to a new location and refreshed my feed. Is there a way of seeing what version of the XML iTunes is using? (it takes around 24 housr to refresh, right?)
    Also, when I'm searching for my podcast by author it's not coming up (<channel><itunes:author>) - is there a reason for this or a way to get it to show up when people search for the artist, other than doubling it in the title? (This works by the way, but I'd prefer not to!)
    Thanks.

    you can do it in just one loop, going through all the image
    tags in index_content and for each tag fill the values of all four
    arrays
    for (i...) {
    get the appropriate child of index_content
    first_array[ i ] = value of first tag
    second_array[ i ] = value of second tag
    no need for multiple loops.
    flash has functionality for xml files, but it helps to write
    a little wrapper around it, to simplify programming, especially if
    you work with xml a lot.. I wrote my for work, so I can't show it
    to you, but it's not very complicated to do

  • SG200-08 Newbie Questions

    I have recently purchased the SG200-08 Smart Switch, but I have a few "newbie questions" about it as I get started using it.
    The on board firmware shows 1.0.1.0. Is that the latest firmware to the switch?
    Do I need to enable IPv6 Auto Configuration and DCHPv6 in my switch settings to be ready for IPv6 as my ISP rolls it out down the road?
    How do I go about changing the switch's username? I was able to easily change the password, but having issues getting the username to change.
    Do I need to do anything about the LLDP-MED settings? What exactly is that?
    How do I confugure the System Time Settings so the switch functions in my time zone (USA Central Time)?
    Thanks a bunch for any assistance!

    Hi Nathan,
    My guess is that NAT is already on - you have one public IP address from your ISP. Your router will use NAT (network address translation) to allow multiple clients (and either dynamically assign them private IPs via dhcp or you set them statically) to connect to the internet using the one public IP. It also sounds like your RV042G is assigning both ipv6 and ipv4 addresses, and theres nothing wrong with that. Unless you have specific information re: ipv6 from your isp, however, I would suggest not worrying about it until you hear from them. Are your macs connected to the router via the SG200 switch? If so, it looks like its passing ipv6 just fine.  UPnP is something completely different - thats with opening ports like you mentioned - its a way that your devices can communicate with the router to automatically enable the proper port forwarding for the device/application.
    Regarding the username, create a new user account. I don't think you can edit the cisco user, but try deleting it after creating and testing a new user account..
    I'm not familiar with the Polycom system, but I would leave the settings as default unless you are using true IP phones (rather than an ATA adapter). From a quick google of the polycom device, I don't think you will gain anything from LLDP/CDP as the handsets use regular cordless phone freqs. With my setup, we use cisco IP desk phones and cordless wifi phones, CDP makes life easy as the cisco access point, wifi phones, cisco switch, and cisco desk phones (connected via ethernet) see each other and know what they're dealing with automatically.
    I don't see the SNTP setting for unicast / broadcast that you're looking at. For the switch to get the time from a sntp server, under administration -> time -> sntp settings, add a server, and then back on time-> system time, enable sntp server as the main clock source. What are you using as your sntp source? Do you have an internal sntp server? You don't need to enable dhcp on the sntp server.
    May I also point you to the two manuals, I think they may be helpful:  RV042G  & SG200
    Hope thats helpful.
    Best,
    David
    Please rate any helpful posts.

  • Newb Question for burning DVD/CDs

    I have an external DVD writer on my iMac.
    I got the thing last month and an completely new to Apple (sorta)
    Now how do I make a data CD and DVD?
    On Winblows XP all I need to do is select the files, right click and click on SEND FILES TO CD for making data CDs.
    However for DVD I need 3rd party software.
    Will iDVD do the trick?
    Thanks for the looking at this simple newb question.
    GeekyBoy

    Now how do I make a data CD and
    DVD?Drag the files to the icon of the
    blank CD/DVD that appears in the
    Finder.However for DVD I need 3rd party
    software.You might want to try Patc
    hBurn.Will iDVD do the
    trick?No, iDVD is only for making video
    DVDs and it requires a G4 processor.
    Thanks for the tip Duane.
    I was just reading abotu burning CD on another site. It mentions about what you said, drag the files to the CD.
    However I am reading in my profiler that burning is NOT supported by OS X on this CD/DVD writer.
    Will Patchburn or any other software overcome this?
    Thanks

  • MailServer Newbie Question..

    So my first time i setup a Mail Server with Mac OS X Server.
    Everything works like a charme. I can send and receive emails internally. That means
    i can send and receive emails from mac to pc and vice versa. Now my question.
    How do I setup the Server to catch my external eMail adresses and send it to my internal account.
    And how do I setup to send throw my server to the rest of the world without getting banned and
    blacklisted
    I how someone can write a small tutorial for me or can post a link for this newbie question.
    Thanx in advance..
    mike
    P.S.: Sorry for my bad English. But I am from Germany

    how to configure the server to accept mail for my own domain ?
    Any domain you want to receive mail for goes into the Local Host Aliases pane (in Advanced-> Hosting tab). However, you said that you can already send and receive internally so presumably you have it set up for a domain already? If this is not the same domain as you want to use, just change whatever settings you are using to your real domain. You can then test sending and receiving internally for your own domain but without changing your external (public) mail provider. When you are ready to change your outside mail server for your own one, get the public MX record changed so that all external mail starts getting directed to your own server.
    how to get the public DNS record (MX Record)
    If you have a 'real' domain then someone is hosting your DNS for that domain. THis is probably whoever you bought the domain from. You need to get them to change your MX record (or the IP address for the host name record which the MX points to - see my first post).
    Is it really impossible to catch the external email-accounts with the server via pop.
    my idea behind that is to synchronize the external email accounts with the email accounts on the server..
    I have never really looked into getting a mail server to use a pop download from another external mail server - it may be possible by manual configuration but it never made sense to me. Why have two mail servers in a 'chain'? Basically, the public will see only one server responsible for your mail (via MX record) - you have to decide whether you want to leave this with your external provider or take the responsibility yourself.
    Your configuration for the incoming mail seems to me like you would change the
    external email server completely to my internal server.. right ??
    Correct. Once the public MX record is changed then all other mail servers will send to your server and not your current provider. You can always revert back by changing the MX record back to your existing provider (as long as your account is still open).
    -david
    Message was edited by: David_x

  • Need Blue print sample of BI

    My mail id:
    [email protected]
    I have to do Blue printing for the BI as an part of implementation going in our company ( partner is SAP india), i need some document sample which helps me in Blue printing the BI.
    thanks,
    regards.

    Hi Scruz,
    Check this link where you can download the solution scopt doc.
    http://help.sap.com/bp_biv235/BI_EN/html/Business_Blueprint.htm
    here is the doc you need:
    http://help.sap.com/bp_biv335/BI_EN/documentation/SolutionScope_EN.doc
    Business Blueprint
    In this phase you create a blueprint using the Question & Answer database (Q&Adb), which documents your enterprise’s requirements and establishes how your business processes and organizational structure are to be represented in the SAP System. You also refine the original project goals and objectives and revise the overall project schedule in this phase.
    check these link's as well.
    what does business blue-print consist?
    http://iris.tennessee.edu/Blueprint/BW/BW-Blue%20Print-Final.doc
    http://help.sap.com/bp_biv235/bi_en/html/BWspecific_Info.htm
    http://help.sap.com/bp_biv235/bi_en/documentation/Multi-dimensional_modeling_EN.doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2b50ac90-0201-0010-d597-8d833833f9e0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/828d9590-0201-0010-95a7-ea8cf8814b94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    http://www.sap.com/services/servsuptech/bestpractices/index.epx --- look for blueprint
    Also for Bw case studies u can refer to these links
    http://help.sap.com/bp_biv135/index.htm
    http://service.sap.com/bi .
    Check this post:
    /message/1447350#1447350 [original link is broken]
    Hope it helps.
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • MEGA-Newbie Question

    This has to be the most newbie of all newbie questions. Interestingly enough, it is the one that is most rarely answered in a non-technical way that the novice can understand.
    What exactly do I need Motion for? What, in common-sense, regular-language terms, does it do?
    My manuals tell me how to do all the things it does. But they assume I am an experienced editor (I'm an experienced filmmaker, but only just started working in editing) who already knows all the things that CAN be done and only wants to know HOW to do them in Motion. This is not me.
    So, say I am making a 90-minute HDV feature music doc. I have footage, I have stills. I will need captions, titles and text on screen. I will need an end credit roll. What is it I will probably want Motion to do for me that FCP can't do on its own?
    I'd appreciate an answer in somewhat non-technical language that addresses the practical use -- from a filmmaker's point of view -- of this no doubt amazing program.
    Thank you.

    hi Paul,
    You are right you can do much of the things Motion does in FCP, but Motion takes them further and often makes them easier to do.
    Briefly whereas FCP is generally for editing moving pictures from rushes to a coherent whole, Motion is used to composite or layers of moving pictures to make a new coherent whole picture.
    So i plain words, you can meld different sources of video, stills text and other sources together to make a new end peice. You can animate text, warp pictures, create fires, smoke, hide bits ( masking), animate graphical elements. In short whenever you need to layer up multiple sources of imagery Motion is your man. Sure FCP can handle a lot of this, but Motion is designed specifically and only to do this, and does it very well. ( You would not want to edit in Motion!)
    In your 90 minute example you could do it all in FCP and make it look very nice. But you might need to go the extra mile with the title sequence, perhaps the captions will have some kind of generic strap line ( lower third) under All these things could be done easier and better in motion. However you would not want to import the whole 90 minute programme into Motion and start throwing captions on it. Rather you would want to build each element ( strap line, animating titles, opening sequence etc) in Motion and then import them into FCP for the final mastering. Motion is for short sequences, and FCP is used to collect them all into one programme.
    I make music commercials for a living, do all the cutting on FCP and build all the graphic elements in Motion, take a look at my site for some examples if you'd like,
    http://www.moojoose.co.uk
    Hope this helps you
    regards
    adam

  • Newbie question. coldFusion w/ Flex 2 tutorial

    Hello.
    I am very new to F2 and CF. Fairly proficient at Flash, DW,
    css, html, etc. I have purchased and worked through a couple really
    great F2 and CF books. I am able to construct some good basic stuff
    with either. But am not really finding a tutorial or book that is
    exclusively committed just to the subject of to using CF with Flex
    2. There always seems to be a just a cursory mention, or a
    brush-by, but not much more than that. I get it: if you got this
    far, you probably arlready know everything about the two and
    shouldn't need such.
    If you could point me to a couple good references, I'd be
    very appreciative. I'm looking for a good step-by-step, just on
    this subject.

    Thank you. You are right on with the direction of your
    answer.
    Immediately, I am just trying to create a simple method of
    add/edit/delete records to tables from forms that I could access
    remotely with Flex 2. I just assumed that CF would be the best
    method, both being Macradobe products. If I am wrong about that, so
    be it. Utlimately, I would like to print specific "quotes" relative
    to specific customers and products to .pdf. This is for my own
    personal use (as an insurance broker). Not commercial. Nor is
    anyone paying me to develop this.
    Maybe a better newbie question would be: what would be the
    preferred method to add/edit/delete records, remotely, from a Flex
    2 application for later printing to .pdf based on various selection
    criteria? I have figured out how to do this on my own stand-alone
    machine. Now I want to be able to do it remotely from anywhere.
    I'm
    not looking for instruction from anyone here, just direction
    to your favorite learning tools so that I can dig in and learn.
    I bought the books you recommended (adding to my own Library
    of Congress).
    Thanks again!

Maybe you are looking for

  • Imac disk error after upgrade to 10.5.7

    Hi, I was wondering if anyone could help out, i've having some problems ever since i upgraded to the 10.5.7 Firstly background on my mac, prior to the upgrade i was at 10.5.4, and before this i have had a few kernel panic crashes and managed to fix t

  • Get detail info of PO

    Experts, I'm trying to get PO pendent confirmation details in order to build a report in SRM GUI. This PO detail has to be related with the SC detail also. I'm using FM BBP_PD_PO_GETLIST but i cannot get all the information i need. Can u tell me how

  • Oracle DataGuard For ERP ECC 6.0 (ABAP)

    Dear For prepare to setup and config Oracle Data Guard in DR site I have a question for this issue as follows : If my system is Central System with Sap Application and Database Oracle in the same server . In the DR site, please guide me what steps wh

  • Cannot change Hide Sent Messages setting

    I have a user that had his Curve 8530 replaced.  With his previous unit, he had the Hide Sent Messages setting (in Messages - General Options) set to Yes.  With his new unit, everytime he changes that setting to Yes and saves the change the sent mess

  • Frequent error message (8248) when downloading songs. Please help!

    I am hoping to resolve an issue I keep encountering when trying to download songs from itunes. I frequently receive a message stating "there was a problem downloading the song. An unknow error occured (8248)" However, the song appears in my purchased