Validation of code

Hello All,
I am having a two quires , in which one gives the customer order total details, and another query gives the customer order total with refunds and returns. How can I validate my results?
I need to verify my query is giving exact results or not?
PL help.

Sam wrote:
I am having a two quires , in which one gives the customer order total details, and another query gives the customer order total with refunds and returns. How can I validate my results?
I need to verify my query is giving exact results or not?SQL is a programming language. Yes, it is not a declarative language, not a procedural language and not Turing complete. But it is still a programming language and the SAME basic software engineering principles apply to it, as it does to engineering software in any other language.
So how do you test PL/SQL code? Or Java code? Or .Net code? Or a bash shell script?
Why are you not considering the exact same approach to testing SQL code? Why not create test data for the code to process, ensure that the test data sets cover all possible combinations, and then test the code using this test data? Why not break the code up into smaller distinct processing steps and test each of these with the relevant test data sets?
Testing code is not a language issue as much as it is a logical approach issue.

Similar Messages

  • Please enter valid Security Code

    My iTunes account wont let me download any apps or update them either because it says that my security code for my card is wrong. I have reentered everything about the card including the security code and it still keeps saying "Please enter valid security code". I'm looking at the security code and I dont know what to do about it. I was going to try and email Apple about it but I cannot find an email address for them and its complicated trying to contact them. How to do I fix this problem or email Apple about it?

    Have a look here  >  http://support.apple.com/kb/TS1646
    And there is this...
    Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • I am trying to add a new credit card and it keeps telling me that I have to enter a valid security code...I have tried 2 different cards and it is doing the same thing. How do I get past this?

    I guess it has been a year since I last purchased something on I-tunes and my account is saying that they couldn't authorize my card for some of my purchases.  I am trying to add a new credit card to clear this up and it keeps saying that I have to enter a valid security code.  I have tried 2 different cards and I get the same thing.  I have also added an I-tunes gift card and that isn't clearing up the money that I owe.  It is showing that I have a $25 credit for that.  How do I fix this, I have been trying for days and all I have got from the e-mail tech support is that its my credit card issuer that is causing the problem.  Thats not correct because one of the credit cards that I am trying to use, is a prepaid Visa gift card.  I know that these work on I-tunes because I have used them before in the past.  I am getting very frustrated with this whole process, I just want to clear up my account and buy some new music!! HELP!!

    You probably ran into blocks & locks.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    They'll sort it out.

  • Keep getting an error message when trying to send some texts to valid numbers, "Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code.

    Does anyone know why I keep getting an error  message, "Error invalid number. Please re-send using a valid 10 digit mobile number or valid short code.  The numbers I'm texting to, are valid numbers.

    Did you ever get resolution to this problem?
    My coworker has the identical issue, including the number (+1 (1)(216)116-11) in the error reply.

  • Having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online

    having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online even if it wil be shipped within u.s. only?

    To buy in for delivery in Qatar, you should be starting from the Apple Qatar site:
    http://www.apple.com/qa/
    Do you have an Apple-ID? if you do, then you should not have to enter your Address again, and may be able to sidestep the US Zip Code issue.

  • I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114

    I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114. Online I found a discussion that stated i needed to delete contact and re-add. I have done that to no avail. Any ideas?

    I had the same issue with the iPhone 6 and tried everything!  I now understand that at some point I stored a number for a contact without including the area code and sent a text message.  So, to correct the issue, you must literally "erase" all references to the contact, not just the number.  Deleting the contact and entering a new one is not enough because the iPhone stores references to that number in multiple places.  The steps below worked and are very simple:
    1) On the contact screen, delete everything stored for that number.  You can't just edit the contact to fix the problem, so write down or record the info somewhere before you complete this step.  Choose edit and then select DELETE to eliminate the entire contact which means home, work, cell, email address, etc.
    2) Delete the entire string of messages you sent to that number.  That's every single message...
    3) Now delete the entire string of invalid 2114 messages you received after your text(s) failed.
    4) Finaly, remove the contact from FAVORITES if you saved it that way. 
    5) To validate that all this worked, simply go to the keypad or contact screen and enter the number associated with the contact to verify successful removal.  I used the keypad and dialed to confirm.  If the contact number still shows up, you need to go back and recheck your steps.  Trust me, I had to do this a few times.
    Several posts suggested that you should  reset and turn off your phone.  After following these steps, it was not necessary for me to reset or turn off my device. 
    is there a much faster way to achieve the same results?  Probably, but this was safe for an iPhone novice and may help you avoid inadvertently deleting other contacts or replacing factory settings that you need.  

  • B2B-51507 Element GS08 does not contain a valid identification code

    Hi,
    I am getting error
    Machine Info: (local.example.com) Element GS08 (Version / Release / Industry Identifier Code) does not contain a valid identification code: '004010UCS' is not allowed. Segment GS is defined in the guideline at position N/A.{br}{br}This error was detected at:{br}{tab}Segment Count: 1{br}{tab}Element Count: 8{br}{tab}Characters: 155 through 164
    Data I am getting looks fine:
    ISA*00* *00* *08*9269070010 *12*7162545222 *120224*0752*U*00401*100000046*0*T*>~GS*FA*8022574371*7162545222*20120224*0752*1046*T*004010UCS~ST*997*1046~AK1*OG*1762~AK2*875*4225~AK5*A~AK2*875*4226~AK5*A~AK9*A*2*2*2~SE*8*1046~GE*1*1046~IEA*1*100000046~
    I have my agreement configured for UCS version 4010. The value in GS 08 is the expected one.
    I even tried to hardcode value 004010UCS at partner document level useinf Override parameter but still getting same error.
    We are working on B2B version 11.1.1.3
    Thanks,
    Deepti

    Hi Anuj,
    When I applied InterchangeUCS and GroupUCS file as suggested.
    I have received more errors:
    Error Code     B2B-51507
    Error Description     Machine Info: (lfimt03.dataintensity.com) Element ISA07 (Interchange ID Qualifier) does not contain a valid identification code: '12' is not allowed. Segment ISA is defined in the guideline at position N/A.{br}{br}This error was detected at:{br}{tab}Segment Count: 1{br}{tab}Element Count: 7{br}{tab}Characters: 51 through 53 Element ISA12 (Interchange Control Version Number) does not contain a valid identification code: '00401' is not allowed. Segment ISA is defined in the guideline at position N/A.{br}{br}This error was detected at:{br}{tab}Segment Count: 1{br}{tab}Element Count: 12{br}{tab}Characters: 84 through 89
    My input data is:
    ISA*00* *00* *08*9269070010 *12*7162545222 *080605*1009*U*00401*000202835*0*P*>~GS*FA*8022574371*7162545222*20080605*1009*000202835*T*004010UCS~ST*997*202835001~AK1*OG*5363~AK2*875*24348~AK5*A~AK2*875*24349~AK5*A~AK2*875*24350~AK5*A~AK2*875*24351~AK5*A~AK9*A*4*4*4~SE*12*202835001~GE*000001*000202835~IEA*00001*000202835~

  • Error G/L A/c requires a valid tax code

    hi freinds,
    while using aiab T-code geting error G/L A/c 300030 requires a valid tax code   the G/L  for DEBTORS CTRL A/C (OTHERS-LOCAL)  A/c is   Recon.  account  for customer   there no tick for tax category

    For GL account 300030 you have checked teh check box "Relevant for tax" and you might have given tax category and thats why you are getting this error.
    Go to FS00 and give this GL acccount and change in control data tab "Post without tax aloowed" check box". This will turn your error to warning adn will allow to post. Also if you feel remove any values in tax category.
    Mind you I am assuming this as you are practicing and not for supportinhg any client. In th elater case, check with the client why this is configured and what tax code need to be given.
    reward points if useful.
    sarma

  • Error code "A valid key code to use the Business View Manager is not found"

    Hello.
    I am trying to resolve this message in the Business View Manager. The message of " A valid key code to use the Business View Manager is not found" appears when accessing a folder in the Repositiry Explorer. I have admin rights for View, Edit and Set Security.
    What am I doing wrong?

    Try running this query in the CMS Query Builder tool:
    Select * from CI_SystemObjects where si_id = 4
    When the query returns, look for the attribute "SI_CAN_USE_METADATA" and see if its set to false. Or see if something else in there is set to false that looks more suitable.  Your keycode might have the BusinessView manager locked out.  The error sounds more like a keycode restriction than a permissions issue with security.

  • Message sent using invalid number of digits. Please resend using 10 digit number or valid short code. Msg 2114

    Message sent using invalid number of digits. Please resend using 10 digit number or valid short code. Msg 2114
    How can this be fixed? Most of my numbers are saved as 7 digit

    So I THINK I've figured this out. Hopefully. I was getting the same problem when I was trying to text my boss and my dad. I went back to try to delete the contact and try again and I noticed that I had the little phone icon next to their numbers and not the messaging text bubble. But I'd also left their type of phone as "home" in the drop down menu. I edited that to mobile and boom, got the text messaging bubble. Tried texting them both, I could now send the message.
    I think if the number is set to home the phone assumes it's a landline and doesn't even try to send. I think the people who have had success deleting and re-inserting the contact edited that piece of information without realizing it.
    I really hope this solves your problem!

  • Valid license code for activation that doesn't work HELP!

    I had to reinstall CS3 back on to my computer after having to do a factory reset on the computer. I downloaded CS3 from Adobe.com since my CDs are in another state. After installation I go to enter my code for the programs and CS3 won't accept my VALID license code to activate the account. It worked perfectly fine before I had to reset my computer and it is currently installed on one other computer but I need it on this one! Please help! I talked with Adobe already and they said that since the product is outdated I needed to visit the forums to find an answer as to why my activation code won't work or if anyone can help with suggestions. Thank you!

    Contact serial number support by web chat.
    Mylenium

  • Still no valid upgrade code to Mountain Lion

    It's been over a week and I still don't have a valid upgrade code. I signed up in 07/25/2012. Shortly thereafter, I recovered the two emails but the redemption code was "used".  The next morning, I received a second set of emails with a new code - same result. I talked to Apple Care since I have a brand new RD MB Pro. I was told to email [email protected]  I did with both codes and haven't heard anything back. It's now been 4 emails to them. 
    I finally have an upper level customer service rep following my saga, but he keeps getting the run around from Up To Date Support. He's actually been told to not bother them. I'm hoping something happens soon. 
    Anyone else still have invalid codes and can't get a new one?  Any thoughts or ideas?
    2012 Retina Display MacBook Pro (Loaded)

    Finally got a working code after going very high up in the company.  No one from Up To Date Support ever contacted me.  I guess they are too busy to deal with updates!

  • Error "10000180 Specify valid tax code" after upgrading 2007 to 8.8 PL15

    Hi all,
    In one client, I've upgraded the database from 2007 to 8.8 PL15.
    When I try to add an Invoice or Sales order in 8.8, the system gives an immediate error "10000180  Specify valid tax code" and does not open the standard Invoice form to add a new document.
    The same happens when I select other sales or purchase menu options.
    I checked the tax definition (VAT table) and everything seems fine.
    Does anybody know what can cause this error?
    It must be related with 8.8 version, since in 2007 it worked fine...
    Thanks all,
    Manuel Dias

    Hi Syed,
    After some long checks, I've discovered the problem: after the upgrade, the VTG1 table had wrong value keys (01, 02, 03 and 04) against the OVTG table (which was 1,2,3 and 4).
    I've done a manual update of this entries and then it worked.
    Thanks anyway,
    Manuel Dias
    Edited by: Manuel Dias on Mar 28, 2011 9:46 PM
    Edited by: Manuel Dias on Jun 21, 2011 10:04 AM

  • Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code

    Hey, so my friend got a Galaxy s6 edge yesterday and gave me his new number. When I tried texting it I received this immediately after:
    Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code. Hey
    I can receive messages from this number as well as calls. I've become aggravated and am not sure what to do. Please help, thanks!

    Hi there
    I’d be happy to help with this messaging error! This will be due to the device storing the number incorrectly. Please do the following to resolve the issue:
    Delete texts from both old number and new
    Delete any call logs including these numbers
    Delete old number from contacts
    Delete new number from contacts
    Restart device
    Send text to the new number directly (do not save as contact)
    Once the text sends successfully, you can then save as a new contact
    I hope this helps!
    Charise

  • TS2755 I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    Hi there
    I’d be happy to help with this messaging error! This will be due to the device storing the number incorrectly. Please do the following to resolve the issue:
    Delete texts from both old number and new
    Delete any call logs including these numbers
    Delete old number from contacts
    Delete new number from contacts
    Restart device
    Send text to the new number directly (do not save as contact)
    Once the text sends successfully, you can then save as a new contact
    I hope this helps!
    Charise

  • Quick Time 7.0 Pro (7.7.3) on Win 7 Home Prem 64-bit, Pro paid for, valid registration code, Open Image Sequence (and resulting time-lapse movies) has quit working after several successful operations.  What do?  How fix? Thanks.

    Quick Time 7.0 Pro (7.7.3) on Win 7 Home Prem 64-bit, Pro paid for, valid registration code, Open Image Sequence (and resulting time-lapse movies) has quit working after several successful operations.  What do?  How fix? Thanks.

    This tip is ready for submission.
    It REPLACES the prior version in the Time Machine forum, at: http://discussions.apple.com/thread.jspa?threadID=2057525
    Additions/wording changes to items C3, C4, C5, D4
    New topics C9, C10, C11, and E4

Maybe you are looking for

  • How can you tell what resolution a movie is?

    How can you tell in iMovie 09 what resolution a movie is? The only two have used were HD and standard, but we are not sure which in our collection are which. Is there an easy way to tell? Thanks. mac

  • Time Capsule on Windows Vista

    How do I get Time Capsule to work on my vista computer? My vista partition on my iMac is not working with time capsule it can not even find it when it scans for it . Please help

  • Help Exporting Flash CS3

    Hi guys, I'm new in the forum and I don't know if what I need has already been published. I'm using Flash CS3, I'm learning how create text effects and animations. My problem is that when I export movie and save this as .SWF, it save it succesfully b

  • How to make the table scalable inside a tap control?

    Hi, Does anyone know how to make the table scalable inside a tap control in LabWindow CVI? I see that there is option for a panel to scale contents on resize, but not available for a tab control. Any ideas? Thanks a lot! Weiming Solved! Go to Solutio

  • How can I create a custom pattern halftone

    Looking how to create a halftone pattern in a logo shape. Instead of the typical circular pattern that is used I am looking to create a halftone pattern using a logo. I don't know if this is possible thought I would ask and maybe someone knows how.