Finding "Zero Sales Products"

Hi All
I am New To Oracle And Need Some Help In Writing A Query In SQL.
I Have The Below Tables
SQL> desc sales_invoice;
Name Null? Type
INVOICE_NO NUMBER(3)
INVOICE_DATE DATE
PRODUCT_CODE VARCHAR2(2)
QUANTITY NUMBER(6,3)
RATE NUMBER(6,2)
VALUE NUMBER(10,2)
SALES_TAX_TYPE VARCHAR2(6)
SALES_TAX_AMOUNT NUMBER(10,2)
TOTAL_VALUE NUMBER(10,2)
PLACE VARCHAR2(2)
SQL> select * from sales_invoice;
INVOICE_NO INVOICE_D PR QUANTITY RATE VALUE SALES_ SALES_TAX_AMOUNT TOTAL_VALUE PL
1 02-JUL-04 01 3 15 45 APGST 3.6 48.6 01
2 02-JUL-04 03 1 23 23 CST 2.76 25.76 03
3 03-JUL-04 03 2 21 42 42 02
4 04-JUL-04 02 4 19 76 APGSTG 3.04 79.04 02
5 05-JUL-04 05 5 11 55 CSTC 2.2 57.2 04
6 02-AUG-04 04 1 65 65 APGST 5.2 70.2 01
7 07-AUG-04 03 3 14 42 42 03
5 10-AUG-04 05 -3 11 -33 CSTC -1.32 -34.32 04
8 11-AUG-04 02 4 12 48 CST 5.76 53.76 03
9 19-AUG-04 02 3 17 51 APGSTG 2.04 53.04 02
10 05-SEP-04 01 5 15 75 CST 9 84 03
10 06-SEP-04 01 -5 15 -75 CST -9 -84 03
11 07-SEP-04 03 3 25 75 CST 9 84 04
12 15-SEP-04 05 5 15 75 APGST 4 54 02
13 20-SEP-04 03 3 20 60 APGSTG 2.4 62.4 01
15 rows selected.
SQL> desc product;
Name Null? Type
PRODUCT_CODE VARCHAR2(2)
PRODUCT_NAME VARCHAR2(20)
LIST_PRICE NUMBER(6,2)
COST NUMBER(6,2)
UNIT VARCHAR2(3)
SQL> select * from product;
PR PRODUCT_NAME LIST_PRICE COST UNI
01 TOOTH PASTE 15 14 NO
02 SOAP 20 15 NO
03 SHAMPOO 25 22 NO
04 SUNFLOWER OIL 65 45 KG
05 MINERAL WATER 12 10 LT
SQL> desc place;
Name Null? Type
PLACE VARCHAR2(2)
PLACE_NAME VARCHAR2(20)
SQL> select * from place;
PL PLACE_NAME
01 HYDERABAD
02 SECUNDERABAD
03 BANGLORE
04 CHENNAI
Here I Want To Find Out "Place wise,Productname wise-'zero sales products.
Thanks In Advance
Sasi

here is one emp/dept example with partitioned outer join (10g new feature)
All jobs which does not exist in a department (=all department / job which have no employee)
SQL> select job, dept.deptno from emp partition by (job) right outer join dept on (dept.deptno = emp.deptno) where ename is null;
JOB           DEPTNO
ANALYST           10
ANALYST           30
ANALYST           40
CLERK             40
MANAGER           40
PRESIDENT         20
PRESIDENT         30
PRESIDENT         40
SALESMAN          10
SALESMAN          20
SALESMAN          40Enjoy your tea :-)
Laurent

Similar Messages

  • Questions on iSetup, who is the sales/product manager?

    Hi All,
    I have a few questions on what can iSetup do? This is about selecting a tool to help us in the implementation Projects. Would appreciate if I can find out the Product Manager or the pre-Sales person responsible for iSetup.
    Thanks,
    Salim

    Yes, this recording has been kicking around for a few years now. Not certain how genuine it is
    (If I have helped you in any way to say "Thank You" please click on the star next to the message. Thank You)
    If I have solved your Issue please click the "Mark as accepted solution" button.

  • Mapping FS Product to CRM Sales Product

    Hi,
    Could anyone tell me how the mapping between the financial services product and CRM sales product is done? Is it done in any customizing setting in CRM system?
    There is a customer who has a 1:1 mapping between FS product and CRM product. They would like to make it 1:many. I need to find a way to do this.
    Thanks!!
      Rohan.

    Hi Shanthala,
    Yes, usually XI is used for this mapping.
    The mapping is required because, when an offer is created in CRM on a particular product, an account has to be created in the banking services system for the corresponding product.
    I found out that there is on standard way to do this mapping. However, the most common way is to use a Z mapping table. It simply has two fields, one for the CRM product number and another for banking services product number. Mapping is done!
    This customer too follows the same way. However, as there is no XI system between banking services and CRM, the mapping table exists in the banking services system.
    Regards,
    Rohan.

  • How do find Oustanding Sales Report and Collection Report for A/R Invoice

    Dear All,
                     I need to find the Sales Outstanding amount and Collection details like Check or Cash Or RTGS this is including A/R Invoice Amount and JE Pending Amount. Is it possible?
    Kindly any body let me know some idea or if any sql query, plz send me.
    Advance Thanks to all.
    Regards,
    A. Anvar

    Hi!
    Check this, with little modification you can get the report i think
    Declare @FromDate as Datetime
    Declare @ToDate as Datetime
    SET @FromDate = (Select Min(S0.TaxDate) from ORCT S0 where S0.TaxDate >='20110201')
    SET @ToDate = (Select Max(S1.TaxDate) from ORCT S1 Where S1.TaxDate < ='20110228')
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cash' [Payment Mode],R0.CashSum [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate   and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cheque' [Payment Mode],R0.CheckSum  [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate  and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Discount' [Payment Mode],R0.TrsfrSum  [Amount] from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate and R0.Canceled = 'N'

  • How to find open sales orders.

    Hi Gurus,
    Can you please help me out How to find open Sales orders in SAP.
    Is there any transaction code available or we can get it through via tables.
    Your afforts are highly appriciated .
    SRavani.

    Dear SRAVANI,
    You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
    You will get the all open orders.
    Hope it fixes your issue.
    Please check it and revert.
    Thanks&Regards
    Raghu.k

  • How to find non selling products in a departmental store

    hi experts,
    for example:
    how to find non selling products in a departmental store at end of the month in reporting. is it possible to find, if it is, pl give me the procedure.
    thanks & regards
    sairam

    Hi Kalla,
    You may have to use a multiprovider...
    The following how to documnet describes how you can achieve a similar report...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11291595-0501-0010-c881-e02c27261b55
    hope it helps,
    ajay

  • Leading zero for Product ID deleted when posting confirmation

    Dear All,
    I'm facing a problem when posting confirmation document from SRM to backend for PO item WITHOUT account assignment. When I want to post confirmation document, there is an error message 'Material document data and PO data do not match (Material )'. When I check the Idoc for confirmation, the leading zero in product ID was deleted in Idoc. For Example:
    The product ID is 000000001600000000 (18 character, as defined in Tcode COMCPRFORMAT) when confirmation document created, but the document can't be posted, I can only save the document. And when I check the Idoc, the product ID became 1600000000.
    I've already create a PO and confirmation for the same product using account assignment (Cost Center). And confirmation posted succesfully in backend. FYI, I've already implement note 1568941 in my SRM system.
    Does anyone here ever have the same problem?
    Rgds,
    Aleluya.

    problem solved after implement note 1592750
    Rgds,
    Aleluya sap.

  • Digital Signature- SSF error: Unable to find external security product

    Dear Friends,
    After I enter my User ID and Password, this displays this error !!!
    SSF error: Unable to find external security product
    Would really appreciate your help.
    Thanks,
    Sri

    Hi Sri,
    Would you pls check the installation of the security toolkit on your application server?
    Which security product do you use?
    The standard security product is SAPSECULIB (library sapsecu.dll).
    Please check the SSF initialization messages which are contained in each dev_w## developer trace (transaction ST11). When successful, the initializaion messages look like this:
    N  =================================================
    N  === SSF INITIALIZATION:
    N  ===...SSF Security Toolkit name SAPSECULIB .
    N  ===...SSF trace level is 0 .
    N  ===...SSF library is /usr/sap/<SID>/SYS/exe/run/sapsecu.dll .
    N  ===...SSF hash algorithm is SHA1 .
    N  ===...SSF symmetric encryption algorithm is DES-CBC .
    N  ===...sucessfully completed.
    N  =================================================
    General information for SAPSECULIB can be found in SAP note 354819.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • I wish to reinstall Adobe Creative Suite 6 Design Standard on a replacement PC using the original box CD and Serial Number. Website says SN is valid but cannot find corresponding Adobe product.  My product is not on the drop down list offered.  hat do I d

    I wish to reinstall Adobe Creative Suite 6 Design Standard on a replacement PC using the original box CD and Serial Number. Website says SN is valid but cannot find corresponding Adobe product.  My product is not on the drop down list offered.  What do I do next?

    Contact support by web chat.
    Mylenium

  • Attempting to install cs6 on my windows 7 professional 32 bit laptop, ive downloaded it but when i go to install it it asks for my serial number which i put in but it sais it is a valid number but cannot find a qualifying product on this computer??? What

    Attempting to install cs6 extended on my windows 7 professional 32 bit laptop, ive downloaded it but when i go to install it it asks for my serial number which i put in and then it tells me it is a valid number but cannot find a qualifying product on this computer?? What is the problem?

    Normally you will be asked to provide the new prdouct serial number first, then when a qualifying version is not found you elect to provide that information and then select the version and provide its serial number.  If this is not how things are flowing for you then you should contact Adobe support directly thru chat and get their help resolving it.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • I was registing an Applecare agreement ,but i cant find the hardware product serial numble. where can i find it ?thx!

    Hi,
    I was registing an Applecare agreement ,but i cant find the hardware product serial numble. where can i find it ?
    THX!

    It's almost certainly on the box the machine came in.
    Also you can use System Profiler (in Utilities, also can access through "More info" in the "About this mac" window -- click on the "apple" in top left corner).  In the Profiler click Hardware on the left and look at the info in the right panel ("Serial Number (system)").

  • How to finding zero pionts of a waveform?

    Hellow,
    I am developing a programme, its output values observed from the waveform chart should be a Sinusoidal wave, but the exact function/expression is unknown. I would like to detect the zero point of the output sinusoidal waveform.
    thanks a lot!
    ps, I developed the programme in the constrol&simulation loop and I tried to extract the tone information like amp &freq from the outout but did not work...
    Best regards,
    Floyd

    Hellow, thanks for your reply!
    As to the zero points, I just need two of them. I also noticed there won't be exactly zero and thought abour linear interpolation, but I don't know how to implement it,
    There is no noise and just a pure sinusoidal waveform. Actually I would like to extract the frequency and amp info from the waveform, however extract tone information VI seems not working in control and simulation loop. Finding zero points and then calculate the period and finally get frequency is just am alternative.
    I attached an example, in which I generated an sine wave with a "sine signal" VI, but in my programme the sinewave is actually unkonwn.
    Best Regards,
    Floyd
    Attachments:
    sine wave.vi ‏151 KB

  • Marketing or Sales products

    Hi,
    we will migrate from 11.5.6 to 11.5.10 and I'm reading note 316365.1. It is said :
    "If you have registered any Marketing or Sales products" .
    How can I see if we have installed any Marketing or Sales products.
    Many thanks.

    you need to check the marketing or saler products status on the licance manager or you can do the following
    run adlicmgr.sh from AD_TOP/bin
    Using this method you can check the licensed products by Module or by individual Product. check if you have any marketing or sales products the licinse product will have a tick next to it.
    or you can you the following query
    select status
    from fnd_product_installations
    where APPLICATION_ID in (select APPLICATION_ID
    from fnd_application
    where application_short_name like '&name')
    the application short name for marekting is AMS
    for sales there is more than a product like the follwong
    AS Sales Foundation
    ASF Sales Online
    ASL Sales Offline
    if the application registerd its status will be I for installed
    fadi

  • Finding zero crossings

    Hello,
    I am looking for a VI to find zero crossings of a given vector.
    Thanks for your answer.
    michael

    On 24 May 2000 05:13:31 -0500, "michael leeb"
    wrote:
    >
    >Hello,
    >
    >I am looking for a VI to find zero crossings of a given vector.
    >
    >Thanks for your answer.
    >
    >michael
    There is a vi to give you +ive, zero, -ive values so you could run the
    values though a while loop and watch for sign changes.
    Or just watch the abs value until you come within an acceptable error
    range for the value of zero.
    These are the two most common methods for a zero crossing and both
    easily done in LabView.
    Regards
    Steve Drake

  • Where can i find my windows product key ? am I not allowed to know this these days ?

    Where can i find my windows product key ? am I not allowed to know this these days ?

    If you bought  a notebook with Windows 8, there are no product key stickers anymore.
    The key is now digitally encoded in the BIOS.
    http://www.mydigitallife.info/windows-8-to-have-oem-activation-3-0/
    I don't have a notebook that came with windows 8, so I don't know if you can see it in the BIOS or not but that would the place to look.
    Paul

Maybe you are looking for

  • On my ipod4 i don't have the message app on it a was told by the apple company that it was to have it on there how do I get it back ?

    Hi , My namae is Arnesa Baxter I was purchased a Ipodtouch 4 this past chirstmas and was told that it came with ya'll message app that is supossed to be bulit in. But I don't have it and wanted to know is there any way that I can personally get this

  • Camera RAW 6.1

    I have just updated PSE 8 with RAW 6.1. Each time I open a RAW file (in my case Nikon) there is a small symbol at the bottom right of the picture which states 'Update to current process (2010)'. The Adobe Raw software seems to function correctly. Doe

  • Mac OSX 10.6.2 Java 6 Web Start not always version checking on launch

    When launching a Swing app via Web Start on Snow Leopard, it will often fail to discover and download the new version. This feature works consistently with Java 6 on Linux and Windows PC's. The web-start app is accessed using an Application Bundle cr

  • Macbook Retina overheats very easily

    My Macbook Retina overheats very easily, sometimes I'm just browsing the internet and using listen to music (Youtube or iTunes, doesn't matter which one it's still the same problem) and suddenly my battery goes from 100% to 90% in 5 minutes and my fa

  • Embed HTML tag

    Hi I am toatally new to Flex. and i like RIA. I have a question. can I embed html tag into flex controls line in panel control? for example I want to use <table></table> into flex's 'panel' control. this requirement arose beacase, I have some raw cod