Adding To Card Code Query

Hello -
This query belows pulls up our entire account list and, for those accounts that have "A/P" listed as one of the contacts, it shows the Contact Name (which should = "A/P") and the e-mail associated with this contact.  We would also like to add so that it shows the "Remarks 2" for this contact.  How do we add this to the query?
Thanks!
Mike
SELECT T0.CardCode, T0.CardName, T0.Phone1, T1.Name, T1.E_MailL, T0.U_ORDN, T2.SlpName, T3.GroupName
FROM dbo.OCRD T0
LEFT JOIN dbo.OCPR T1 ON T1.CardCode=T0.CardCode AND T1.Name ='A/P'
LEFT JOIN dbo.OSLP T2 ON T2.SlpCode=T0.SlpCode
LEFT JOIN dbo.OCRG T3 ON T3.GroupCode=T0.GroupCode

Hi Mike,
Try:
SELECT T0.CardCode, T0.CardName, T0.Phone1, T1.Name, T1.E_MailL, T0.U_ORDN, T2.SlpName, T3.GroupName, T1.Notes2
FROM dbo.OCRD T0
LEFT JOIN dbo.OCPR T1 ON T1.CardCode=T0.CardCode AND T1.Name ='A/P'
LEFT JOIN dbo.OSLP T2 ON T2.SlpCode=T0.SlpCode
LEFT JOIN dbo.OCRG T3 ON T3.GroupCode=T0.GroupCode
Thanks,
Gordon

Similar Messages

  • When adding credit card to account what is the issue number

    I cant figure out the issue number they want when adding credit card to the account.  Does anyone know what they are asking for?

    The issue number is the credit card's embossed number.  Then there is the security code that usually is a 3 or 4 digit code found on the back on the signature stripe.

  • I got an 15 dollar iTunes card for Christmas. I took a picture of the card code to redem the card I accomplished that but when I try to download an app that cost money it asks me two security questions  that I forgot the awnsers to.what do I do?

    I got an 15 dollar iTunes card for Christmas. I took a picture of the card code to redem the card I accomplished that but when I try to download an app that cost money it asks me two security questions  that I forgot the awnsers to. Than I click the forgot security questions than it sends it to my email but that's the problem I do not get any email.

    You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    (96048)

  • My iTunes card won't redeem and when I try to it comes up with this "The gift certificate or prepaid card code you entered has not been properly activated. Please contact iTunes Store costumer support for assistance" can anyone help me?

    My iTunes card won't redeem and when I try to it comes up with this "The gift certificate or prepaid card code you entered has not been properly activated. Please contact iTunes Store costumer support for assistance" can anyone help me?

    Is the store that you bought the card from nearby so that you can try going back and asking if they can activate the card properly ? If it's not, or if they can't/won't activate, then you will need to do as the message says and contact iTunes Support (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes (you will probably need to give them images of the front and back of the card, and possibly its receipt)

  • HT201209 How to get an itunes gift card code, no need to wait for shipping

    Good day to all,
    I want to get an itunes gift card just to download whatsapp on my iphone 3gs. I have my credit card but the billing address is in Haiti, unfortunately Haiti is not in your list of  countries. How can I get itunes gift card code immediately in order to download that application? No need to wait for shipping, just want to have the code to add it to my apple account.
    If you have a better solution, it's welcome.
    Thank you in advance for your reply

    Sorry, but you can't, if you live in Haiti. As you say yourself, there is no iTunes Store for Haiti and you are not allowed to use the iTunes Store of any other country.
    If you live in a country where there is an iTunes Store, check to see if Apple sells physical gift cards in your country and if so purchase and redeem one of those. There is no way to purchase an electronic gift certificate from Apple without a credit card from the country whose iTunes Store you wish to use.
    Regards.

  • I added gift card to wrong Apple id, Can I let my child access the credit balance without having to keep it in my library?

    My daughter received an Itunes giftcard for Christmas. I mistakenly added the card to my Apple id instead of hers and was told by Itunes support that they
    can't transfer store credit balance from one account to another account. So I'm thinking that if she logs into my Apple id, where the credit is, from her iphone 4 that she can use her credit for songs for her phone.  Will those songs go to her "music" file" or will she need to be logged into my ID to continue to use them on her phone and seconldly. I don't want those songs on my phone. (No offense, we just don't like the same stuff) 
    If my reasoning is incorrect, please let me know and if you can think of an easier way, please let me know. 
    Sincerely,
    Renee M
    Miscellaneous: She has an iphone 4 and my Mac is using Itunes 11.

    Thank you for replying, Niel.
    I figured it out myself. Basically, I logged into my Apple ID in app store and my friends' game center id. I made purchases with their game accounts but with my credit.

  • My daughter just got her ipod and she begam multiple apple id's. she entered her itunes card code into one of these and we dont know which one

    my daughter received an ipod and  an itunes card for christmas and began multiple apple id's with a few different email addresses. she entered the itunes card code into one of these. i have all the card info and receipt. is there anyway she can still use this card?

    As long as you are signed into the account which she registered the card with, you will be able to use it. I'm guessing you just don't know which account that is. Logging into all of them would be the only way to find that out. Hope that helps :)

  • TS1292 Purchased gift cards about a year ago. Misplaced two of them. Found them yesterday, tried to use one today. Invalid. If the money is tagged to the card code why is it invalid? Now have to take photos of both sides and find receipt? Guess out $20?

    Purchased gift cards about a year ago. Misplaced two of them, but Found them yesterday. i tried to use one today. Invalid. If the money is tagged to the card code why is it invalid? Now have to take photos of both sides and find receipt? Finding the receipt might take as long as .finding the cards. If I paid hard earned money for the card from a computer company why would that card not be in their data base waiting to be activated? I guess I am out $20 to Apple for not activating immediately! My account was hacked once so I won't put a credit card in and live with gift cards. Now I am getting hit for $20, two gift cards for ten each. I now question who and how people are making money?? Is my only solution, buy card, redeem code instantly, purchase item?

    Hi Oxfordataloss,
    Thanks for posting. I'm really sorry you've had such problems with BT, it's certainly not the kind of service we would hope to provide. I'll take your comments on board and if you don't receive the final bill as expected please drop me an email with the account details and a link to this thread for reference.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • From where i can get the itunes gift card code?, From where i can get the itunes gift card code?

    From where i can get itunes gift card code?

    I don't believe Apple has an online store in Israel. You'll have to look elsewhere, where, I can't say. But, the gift card must be purchased in Israel. Could be they are simply not sold there.
    Look here:
    http://www.icongroup.co.il/

  • How do i reenter a gift card code that I put on wrong email address

    Hello,
    I just got a ipod nano from my son...he just got an ipod touch.....I got a gift card for Mothers Day and I entered the gift card code on a wrong email address and now when I go to my apple account and use correct email....itunes wont accept my code number from the gift card...HELP!

    Click here and contact the iTunes Store staff.
    (58275)

  • Can i just buy a gift card code instead of the physical card

    can i just buy a gift card code instead of the physical card, since i live outside the us ???, if so how would we do the transaction ?? thanks

    Hi there OmarMancilla, 
    You should have the ability to buy E-Gift Cards on BestBuy.com, which would be quite similar to a physical gift card, but in a digital version. You may check them out here. If you are an international customer, you would want to follow the instructions here for placing your order. 
    Please let me know if you should have any questions! 
    Sincerely, 
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    Wish I could help. My wife is having the same problem.  Same computer for 2 years and all of a suddent it thinks this is her first purchase.

  • ITunes card code is messed up

    I bought a iTunes cared and put it in my wallet and the wallet went through the washer and when I went to redeem the card code there was three letters that were smuged and I can't read them. Is there a way I could still redeem this card?

    Hi ..
    Try this support article >  If you can't redeem your iTunes Gift Card or code

  • HT2534 what is the itunes gift card code

    what is the itunes gift card code and how can I get it?

    iTunes gift cards are an alternative method of paying for content from the iTunes content. They are not available in all countries and they are country-specific - they can only be redeemed and used in their country of issue. If they are available in your country then you might be able to get them from Apple, or from electrical stores, supermarkets, online retailers etc. The field on the screen when creating an account is optional, and if gift cards aren't available in your country then you won't be able to fill it in anyway.

  • When your scratching your itunes gift card code and you scratch off the last two how do you find out what they were

    when your scratching your itunes gift card code and you scratch off the last two how do you find out what they were

    Invalid, inactive, or illegible codes
    http://support.apple.com/kb/TS1292

Maybe you are looking for

  • Is it possible to change the URL of displaytag's sortable function?

    Basically, I've got a jsp page with the displaytag code on it such as: <display:table name="result"> <display:column sortable="true" property="title" /> <display:column sortable="true" property="author" /> <display:column sortable="true" property="st

  • CR Drilldown Error by IE, but not by Firefox

    I designed a CR report with 3-levels drill down (by hyperlinking a new report rather than subreport) and published it to BOE.  I open the report by IE and drill down the new reports in a new window,  the report content in the original window disappea

  • Fail to print check stock properly

    We have an HP 3210 all in one.  It's printing fine when I use regular multi use paper.  However, my checks are on a slightly heavier paper stock.  It is not printing these properly.  It does not seem to feed the paper through properly and I wind up w

  • Cannot Load JPG Files From Canon Powershot S2 IS

    Hi, I'm having a problem loading JPG files from my Canon Powershot S2 IS. When I plug the camera into the USB port, I get the Canon Camera/DV Twain Driver with a list of images to import. They are all JPEG images, which is my camera's native format.

  • Need help restoring W7 64 bit Home Premium to my Gateway desktop

    I lost my system due to a hal.dll message last wed 7/5. After trying for several days I finally realized my 2nd HD was screwing up my boot sequence I was trying to boot from an old WindowsXP file on the 2nd HD. Disconnected the HD and tried doing a c