Customer Query to idetify customers that does not have any transactions

Dear All,
I am using the following query to find out the customers that does not have any transactions in the system:
SELECT customer_number, customer_name, DECODE(status,'A','ACTIVE') current_status
--count(*)
FROM ra_customers
WHERE customer_id NOT IN (select distinct bill_to_customer_id from ra_customer_trx_all)
ORDER BY customer_name ASC
Is this right?
The above query is to identify those customers that were added by mistake and that does not have any transactions been done.
Please update...
Many thanks in advance...

santark wrote:
Dear All,
I am using the following query to find out the customers that does not have any transactions in the system:>
SELECT customer_number, customer_name, DECODE(status,'A','ACTIVE') current_status
--count(*)
FROM ra_customers
WHERE customer_id NOT IN (select distinct bill_to_customer_id from ra_customer_trx_all)
ORDER BY customer_name ASC
You are will only see customers which have not been BILL TO there could be SHIP TO Customers as well hence look out for all the usages of customers in the AR transactions to get the query right.
Is this right?
The above query is to identify those customers that were added by mistake and that does not have any transactions been done.
Please update...
Many thanks in advance...Thanks

Similar Messages

  • Using a dll function that does not have any inputs from a VI

    Hello all, I'm very new to Labview, I have wraped a dll library using the LVlib wizard and now I am trying to use it in a project.  I have a function that does not take any inputs or return any thing except that a struct is populated with some status information as part of the call.  I am able to draw a StartInterface VI because my void startInterface(const char* configFile, struct status_struct* status) takes the location of a configutation file as an input. But I can not figure out how to connect my Call Library Node to my a function vi that does not have any inputs ( void shutdownInterface(struct status_struct* status)). 
    Note that the status struct is deffined to be only and out put at the creation of the LVLIB.
    Thanks, Mike

    Thanks for the responses guys:
       I think I am aware of the conotations of inputs and outputs when I created the lvlib I specified the argument  struct status_struct* status as only an output instead of the default of input and output.
    I do not think that I am doing anything as complex as function callbacks. My immediate goal is to have an executable (I have application builder) with two buttons and two three text fields one text field for the input of the config file, two text-fields for a cstring that is contained in the status struct; one button to start the interface and one button to stop the interface. 
    This is in all likely hood a case of my self being too dense and missing something fundimental ;-)  I just can't figure out how to wire the shut down method after I've configured the call library node. See the attached pictures:
    Attachments:
    Start.jpg ‏7 KB
    shurtdown.png ‏9 KB

  • Query i need  Chart of account name It does not have any transactions.

    hi.
    i need a small query..
    As per my Requirement..
    Normally we are creating chart of account..
    Each account May or may not have transactions
    like Journal Entries we can pass debit and credit..
    I want to put in query generator if i run the query..
    It will shows the Chart of accounts names
    it does not have any transactions..
    Plz update me..
    If u doesn't  not  understood plz inform me..

    Hi,
    Pls Check this query.
    It will give the accounts which do not have entry in Journal Entry
    SELECT ACCTCODE, ACCTNAME FROM OACT WHERE ACCTCODE NOT IN (
    SELECT DISTINCT ACCOUNT FROM JDT1
    Regards,
    Amrut Sabnis.

  • WSDL for WSDL based Proxy that does not have any input

    Hi all,
    I am trying to create a service which is based on a db adapter. The db adapter is created using a procecure that does not accept any input and gives out a cursor. I have created a
    proxy based on a wsdl which was created by me. I have not given any soap:body in the input as I dont have any input for this service. When I test the service it is not going into the
    request pipeline instead what ever the input (Here input in the sense even the proxy does not have any input as per the wsdl we need to give some xml tag to test it right?)
    to the proxy service is getting echoed back. It is neither going inside the request pipline nor Invoking the business service. When I create a proxy service as a plain xml then It is
    working fine. I am very confused and donno what to do.. Kindly help me on this.
    thanks
    Edited by: 887737 on Apr 5, 2012 4:20 AM
    Edited by: 887737 on Apr 5, 2012 4:21 AM

    it depends on the selection algorithm you have on the proxyservce
    on the fourth tab you can dispatch based on soapaction/body/header/etc
    you could dispatch on the soapaction and skip the body

  • Is there any way I can update my play count from my iPod to the same iTunes library on my computer that does not have any play counts?

    I recently transferred my data (music, apps, etc.) to a new computer via transferring purchases and Home Sharing and only a few songs had play counts. On my older computer, all the songs had at least some documentation of a playcount. Thinking that I could figure it out, I reset the play count for the songs on the new computer. Is there any way I could get the play counts onto the computer w/out them via iPod or Home Sharing. I look forward to hearing a reply. Thank you.

    HELPPP ME BEFORE CHRISTMASS MORNING!!

  • HT4623 how do i back up my iphone 4 that does not have any current upgrades

    My Iphone 4 still has system version 4.2.10. How do I back it up so I don't lose my current apps and notes and pictures on my phone and then how do I get all the current software?

    Follow the instructions in the article from which you posted this question.
    It explains in detail how to upgrade from the device (if running iOS5) and how to upgrade from iTunes on the computer for all versions of iOS.

  • Will I lose my ipod playlists from former itunes library (included purchased songs and personal cd's I burned) if I sync up to my new itunes library that DOES NOT have any of my personal song cd's?

    Afraid if I sync my ipod to itunes library, I'll loose my existing playlists that have my personal cd's burned into it.  Thanks.

    Change your user ID to something less likely to annoy regulars on this forum who try and help those who want to be helped.
    (I bookmarked this question when you first posted it, simply because I suspected that no one would offer help. I guess I was right.)

  • HT1766 An Apple consultant said I could get rid of itune playlist from my ipad by connecting the cable from my ipad to a computer that does not have songs from itunes in its computer. I was not able to do it. Any suggestions?

    How do you get rid of itunes playlist from my ipad? I was told you can sync it back to a computer that does not have any itunes songs. It did not work.

    I'm sure I don't completely understand the question.
    How to get rid of an iTunes playlist from your iPad? Just delete the items while using iTunes. The next time you sync, they'll be gone from your playlist.

  • Clean up old SID values from an InfoObject that does NOT have master data

    I have a characteristic infoobject that does NOT have Master Data but it has a SID table. I assume that it is used primarily for the F4 value help. Now we have changed some of our data for this infoobject in R3 so that some of the values in the SID table will never be used again. My problem is that these values are still displayed in the F4 value help. And because the old values are very similar to the new values some users mistakenly pick the old value and then the query results come back empty.
    FYI - The datasource that uses this infoobject as an attribute is extracted from R3 in a Full load each night. So there is no risk that the old values in the SID table will be needed in any Master Data/Cubes/DSOs/etc.
    Is there a way to delete the unwanted SIDs from this table /BIC/SXCSAOFREG? Or is there some way to make sure that the unwanted SIDs to not show up in the F4 value help?
    Thanks,
    Dave

    Hi David,
    Goto SE14 trans --> ENter the table name as  /BIC/SXCSAOFREG. Select the "Edit" radio button. Then Select "Delete Data" radion button & click on "Activate & adjust database". But be very careful NOT to click on Delete Database table(This will delete the physical database table!!!
    Regards,
    Pavan

  • How to find a customer who does not have any activity in the last 5 years

    HI all,
       How to find a customer who does not have any activity in the last 5 years.
    Thanks & Regards,
    Moderator message: not directly related to ABAP development, please have a look in the respective functional forum.
    Edited by: Thomas Zloch on Jan 3, 2011 2:20 PM

    Post Author: tzinser
    CA Forum: Formula
    Okay, I left off a lot of important information...
    I'm using two tables
    TWDATA
    EVENT
    From TWDATA I'm pulling the fields TWDATA.OrderNumber and TWDATA.DisbursementDate
    From EVENT I'm pulling the fields EVENT.EventCode and EVENT.CompletedDate
    The two tables are linked by OrderNumber.

  • I need to get some video files onto my iphone from a computer that does not have my itunes library on it

    Currently I am away from home, and using a computer that does not have my main itunes library on it. I do, however, have some video files on this computer that I would like to place onto my phone for the drive home tomorrow. Unfortunately,  It seems there is no way to do this without completely wiping my iPhone and replacing it with this computers empty library, as the "manage content manually" feature apparently requires me to do this. Is there any way to just add some mp4s to my iphone without erasing all of its data?.

    ManSinha wrote:
    What kind of computer?
    On a Windows PC plugging in your phone will invoke the Autoplay dialog which also gives some options
    But only if iTunes is installed on the computer and is paired as a trusted device. Which the OP does not want to do.

  • I just purchased the apple tv, i have an older tv that does not have an HDMI input.   is there a converter i can get because the itv only have an HDMI output ?  help.

    i just purchased the apple tv, i have an older tv that does not have an HDMI input.   is there a converter i can get because the itv only have an HDMI output ?  help.

    Welcome to the Apple Community.
    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p.

  • How to import iDVD app from Time Capsule to my new iMac 21" that does not have iDVD?  I can find the iDVD app in the Time Capsule, then what?

    I have a new 21" iMac to replace a 6-year old iMac 24.  My Time Capsule has the iDVD app saved (?) and I can find it, but I can't figure out how to move it to my new iMac that does not have the app.  How to do this?

    You are probably better to install it from ilife disk.
    Can't Find a update or latest Version of iDVD to Download or a Compatibility to Yosemite

  • I Have a Macbook Pro that does not have a disk drive.  How do I install the Adobe Photoshop Elements 11 that came with the Epson scanner I purchased.  I registered the S/N and I can't find the Free download anywhere only trials.

    I Have a Macbook Pro that does not have a disk drive.  How do I install the Adobe Photoshop Elements 11 that came with the Epson scanner I purchased.  I registered the S/N and I can't find the Free download anywhere only trials.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • HT201209 If I redeem an iTunes gift card on an account that does not have a credit card or NONE as payment, can I gift apps to other accounts?  It will not let me. Please advise.

    If I redeem an iTunes Gift Card to an Apple ID that does not have a credit card (or NONE is selected as payment option),  can I gift an app to another account?
    I can purchase apps on that account but it will not allow me to gift an app  from an ipad or via the itunes store (on the computer). Do I need to have a credit card on the account to be able to do that?

    You can only gift via a credit card - you can only use your account's balance for buying content for yourself.

Maybe you are looking for