Please give me reply to type one bonus

i have source table COMMAPP.COMM_DD_BONUS_DAILY_TRANS
with the follollowing columns
DD Bonus Type 1:
1.     Onetime bonus
2.     No of accounts who deposited >= 300$ within 60 days based on distributor and branch
3.     Second deposit should have happened in current month
SELECT SUM(AMOUNT) SUMAMOUNT,
CDBDT.ACCOUNT_ID,
CDBDT.COMPANY_NAME,
CDBDT.ORIGINATING_DISTRIBUTOR_ID,
CDBDT.ORIGINATING_DIST_BRANCH_ID,
CARD_TYPE,
EMPLOYEE_FLAG,
SUBSCRIPTION_FLAG
FROM COMMAPP.COMM_DD_BONUS_DAILY_TRANS CDBDT
WHERE TRANSACTION_DATE BETWEEN ADD_MONTHS(trunc(sysdate,'month'),-1) AND trunc(sysdate,'month')-1
GROUP BY CDBDT.ACCOUNT_ID,
CDBDT.COMPANY_NAME,
CDBDT.ORIGINATING_DISTRIBUTOR_ID,
CDBDT.ORIGINATING_DIST_BRANCH_ID,
CARD_TYPE,
EMPLOYEE_FLAG,
SUBSCRIPTION_FLAG
HAVING SUM(AMOUNT)>=300
INTERSECT
SELECT SUM(AMOUNT) SUMAMOUNT,
CDBDT.ACCOUNT_ID,
CDBDT.COMPANY_NAME,
CDBDT.ORIGINATING_DISTRIBUTOR_ID,
CDBDT.ORIGINATING_DIST_BRANCH_ID,
CARD_TYPE,
EMPLOYEE_FLAG,
SUBSCRIPTION_FLAG
FROM COMMAPP.COMM_DD_BONUS_DAILY_TRANS CDBDT
WHERE TRANSACTION_DATE BETWEEN ADD_MONTHS(trunc(sysdate,'month'),-2) AND ADD_MONTHS(trunc(sysdate,'month'),-1)-1
GROUP BY CDBDT.ACCOUNT_ID,
CDBDT.COMPANY_NAME,
CDBDT.ORIGINATING_DISTRIBUTOR_ID,
CDBDT.ORIGINATING_DIST_BRANCH_ID,
CARD_TYPE,
EMPLOYEE_FLAG,
SUBSCRIPTION_FLAG
HAVING SUM(AMOUNT)>=300

I don't think you will get much reply unless and until you post some sample data and desired output. Do not forget to post your database version. The CREATE table and INSERT statements may get you more hits!.

Similar Messages

  • Please Give me reply Urjent

    Dear All..
    Today i faced new problem...the problem is suddenly when i add A/R invoice document then system not  add Document and also system hang and after automatic SAP Application has been shutdown..so please if any solution this please reply back urjent..
    Thanks .......
    Ashish

    Hi and welcome Nag,
    have a look here:
    http://www.simplysap.com/company/contact.htm
    nice weekend to ALL
    and
    God Bless
    Andreas

  • PLEASE GIVE ME REPLY..

    Dear Friendz.. Please Help Me out...
    Posted: Sep 1, 2006 9:00 AM        Reply      E-mail this post 
    Dear Friendz..
    I am Nagaraj from Hyderabad.. I learned SAP in sapInstitute..
    I would like to put 2 years of experience..
    But i dont know.. How to put that experience..
    I dont know which company i have put..
    can anybody please send the sample resume or the detials of the company.. Or consultancy list.. I hope i will get the response from you friendz..

    Hi and welcome Nag,
    have a look here:
    http://www.simplysap.com/company/contact.htm
    nice weekend to ALL
    and
    God Bless
    Andreas

  • Please Give me reply for this problem(How can I get the result)???

    Hello Friends,
    I have one table CXATCMS.Which has 3 columns and has the following data
    start_no end_no activity_date
    05001000001 05001000002 01-OCT-03
    05001000015 05001000016 01-OCT-03
    05001000017 05001000018 12-JUN-05
    05001000019 05001000020 12-JUL-06
    I have to create a report which lists the the specific range.
    If the next record's start_no is the immediate next number for the prevoius record's
    end_no .....then it has to display all those numbers in a range until it finds a number which is not next immediate number for the previous record's end number.
    like for example....if the user wants to see from 1 to 20 range.
    then the result must be like this........
    start_no end_no
    05001000001 05001000002-------there is no 05001000003 number in the
    05001000015 05001000020 start numbers so it has to stop its range by this number).
    How can i get this result........

    Hi,
    Try this. I am sure you know how to write procedure, I have skipped those obligations, anyway u can sense the absic way of working from here I think. Pls do the uppercase / lowercase adjustment as required by your operating system.
    Declare
    mnd CXATCMS.end_no%type;
    numRec CXATCMS.%rowtype;
    Cursor C is select * from CXATCMS where start_no between 1 and 20 order by start_no;
    begin
    select min(end_no)+1 into mnd from CXATCMS where start_no between 1 and 20;
    open C;
    Loop
    fetch C into numRec;
    DBMS_OUTPUT.putline(numRec);
    exit when mnd<>numrec.start_no;
    if mnd=numrec.start_no then
    mnd:=numRec.end_no + 1;
    end if;
    end loop;
    Exception
    when no_data_found raise application_error;
    end;
    gimme feadback pl,
    Pragati.

  • How toconvert multiple currency translation please give details in one repo

    how toconvert multiple currency translation please give details in one report

    Hi Venu,
    Yes you can do currency translation in update rule as well as in the bex query.
    please follow the below steps:
    business scenario
    you have records in different currencies and you want to convert them to a fixed target currency USD, using the avergae rate type 'M' on a monthly basis
    Step 1
    Create translation keys using RRC1. here you need to specify the source currency. "select source currency from data records"
    specify the target currency as USD
    choose the exchange rate type as 'M' and the translation should happen using 0CALMONTH
    Step 2
    create key figure 1 (KF1) that stores the amount in differnet curreny and it refers to 0currency. create another key figure (KF2) which has a fixed currency as USD. in the target cube you use 'KF2' and it is mapped from KF1.
    in the update rule just below hte currency mapping you can find the currency translation screen, use the translation key created in step 1
    Step 3
    if you have KF2 in your cube then you don't need any currency translation becoz you have already performed the translation in update rules. but if you have KF1 in your cube then you need to [erform the currency translation in bex. create a restricted key figure from KF1 (give it name as KF2). right click on the RKF and go to properties -> currency  translation -> select the translation key created in step 1.
    hope it helps.
    thanks
    soumya

  • How  to transfer data from one system to another by datamart please give de

    how  to transfer data from one system to another by datamart please give details

    Hi Deba,
    Find the below SAP help doc which may help u...
    http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
    Also find the below threads...
    Loading data from one cube to another cube.
    data copy from infocube to infocube in two different BW systems
    Delta when loading from ODS to ODS
    reg datamart
    Data mart flag
    Regards,
    KK.

  • I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    Ipjone6, silver, 64GB
    I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    how to reset password:
    https://iforgot.apple.com/password/verify/appleid

  • Give information/site for  Complete one QM Cycle, please!!!

    Hi! SAP QM Gurus
    Please give information about one QM complete cycle.
    Thanks & Regard
    MDS
    Edited by: MOHAMMAD SUBHANI on Feb 20, 2012 9:52 AM

    hi
    check out a scenario
    help.sap.com/...Scenarios/S05_Ope_Procurement_EN_S... - United StatesSimilar

  • I have exported my bookmarks in JASON format now when I restore this one its gives error " Unsupported file type"

    I have exported my bookmarks in JASON format now when I restore this one its gives error " Unsupported file type"

    Hello UbaidUQ, any luck if you rename the file with no capital letters = .json, (no .JSON)
    thank you

  • Can you please give me my code to be able do register Photoshop and Lightroom, I have now got a one month try out version of Photoshop. Can you also give me my log gin, I have two companies, so I my have mixed up the logins. Best R Leif O Pehrson  26 aug

    Can you please give me my code to be able do register Photoshop and Lightroom, I have now got a one month try out version of Photoshop.
    Can you also give me my log gin, I have two companies, so I my have mixed up the logins.
    Best R
    Leif O Pehrson
    26 aug 2014 kl. 14:08 skrev Adobe Creative Cloud <[email protected]>:
    I have a order number, do you want it ?

    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Some general information for a Cloud subscription
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

  • HT1533 i have pressed f2 during restarting my macbook by mistake and now my mac is not starting can any one please give me a solution?

    please give a solution for my problem

    Can you tell us a little more abouth what you mean by "not starting?" Is there no response from the power button at all, or do you get a grey screen, a spinning cursor, a flashing question mark, an error message of some sort?
    Let us know, we will keep helping you.

  • Hi SAP FI/CO GURUS ...... PLEASE GIVE ME INTERVIEW QUESTIONS ON SAP FI/CO

    Hi FI/CO gurus
    I require your great help to get my brother into SAP House. He had done his FI/CO training and he is trying as fresher into SAP. So i request you to please give me interview questions on SAP FI/CO in topic wise. The reason i am asking here in this forum is, a lot of gurus who are having great experience are there in this group. if i get help from these gurus, that will be great help to my brother into get into SAP FI/CO.
    So i request you to please send me interview questions on SAP FI and CO in topic wise. Awaiting for your reply.
    Regards
    Raj

    Hi,
    Please find below few questions on FI. I think those are very useful for intervew
    SAF FI Technical Interview Questions 1
    1. Tell me about FI Organizational structure?
    Ans:     Client
                   |
          Operating Concern
                   |
    Controlling area1       Controlling Area 2
             |
    Co. Code 1 Co. Code 2
        |
    Bus area 1  Bus area2  Bus Area3  Bus Area 4
    2. How many Normal and Special periods will be there in fiscal year, why do u use special periods?
    Ans: 12 Normal posting period and 4 special periods are in the fiscal year which can be used for posting tax and audit adjustments to a closed fiscal year.
    3.Where do you open and close periods?
    Ans: PPV is used to open and close the periods based on a/c types considering GL Accounts. Tr. Code. OB52.
    4.What do you enter in Company code Global settings?
    Ans: 4 digit Alphanumeric key.
    Name of the company
    City
    Country
    Currency
    Language
    Address
    5.What is document type, and what does it control? Examples.
    Ans: Document type is nothing vouchers containing line items. Several business transac! tions can be identified within a particular document type.
    It controls the document number ranges.
    It controls the Header part of document
    IT controls the line item level of the document
    Helps filing of physical document 
    6. What is posting key and what does it control?
    Ans: These are special classification keys. Two character numerical key it controls the entry of line items.
    Posting key determines Account type, Debit/credit posting, Field status of transaction.
    7. What is field status group, what does it control? 
    Ans: FSG is mandatory field in ! GL Creation. You use this field to define which fields are displayed when you post business transactions to a G/L account. 
    A field may have one of the following statuses.
    - Suppressed
    - Display
    - Optional
    - Required
    8. What is chart of account and how many charts of accounts can be assigned to a company?
    Ans: Chart of account is a list of all G/L accounts used by one or several company codes.
    For each G/L account, the chart of accounts contains the account number, account name, and the information that controls how an account functions and how a G/L account is created in a Company code.
    You have to assign a chart of accounts to each company code. This chart of accounts is the Operating chart of accounts and is used for the daily postings in this company code.
    You have the following options when using multiple company codes.
    You can use the same chart of accounts for all company codes
    If the company codes all have the same requirements for the chart of accounts set up, assign all of the individual company codes to the same chart of accounts. This could be the case if all company codes are in the same country.
    In addition to the operating chart of accounts, you can use two additional charts of accounts If the individual company codes need different charts of accounts, you can assign up to two charts of accounts in addition to the operating chart of accounts. This could be the case if company codes lie in multiple countries.
    The use of different charts of accounts has no effect on the balance sheet and profit and loss statement. When creating the balance sheet or the profit and loss statement, you can choose whether to balance the co! mpany codes which use different charts of accounts together or separately.
    9. What does definition of a chart of account contains?
    Ans: chart of account key
    Name
    Maintenance language
    Length of the GL Account Number
    Controlling Integration
    Group chart of accounts (Consolidation)
    Block Indicator
    10. Can one COA be assigned to several companies?
    Ans: yes. One COA can be assigned to several companies.
    11) What is account group and what does it control? 
    Ans: Account group determines which fields you can configure on the G/L master record. It is necessary to have at least two one for B/S and another one for P&L a/c.
    It controls the Number ranges of GL A/C.
    The status of fields of the master record of GL belongs to company code area.
    12) What is reconciliation account; can you directly enter documents in that a/c?
    Ans: When you p! ost items to a subsidiary ledger, the system automatically posts the same data to the general ledger. Each subsidiary ledger has one or more reconciliation accounts in the general ledger. 
    We can’t use reconciliation account for direct postings.
    13) How do you control field status of GL master records and from where do you control! 
    Ans: Field status variant is maintained all FSGs.
    14) What are the segments of GL master record?
    Ans:
    - COA Segment
    A/C group
    Nature of account
    Short text
    GL a/c long text
    Trading partner
    Group Account Number
    -  Company code segment
    Account currency
    Tax
    Reconciliation a/c for a/c type
    OIM,LID,FSG.
    15) What does Field status group assigned to a GL master record controls?
    Ans: It controls the account assignments that are made to the account. Specifically the field status group controls whether postings to cost centers, internal orders, profitability segments and so on are required, not allowed (suppressed), or optional.
    16) What is Country and operational chart of account? Why do you use group chart of account?
    Ans: Operational chart of account – Day to day activities It is mandatory.
    Country COA – It’s used for legal specific requirement of each country. It’s additional and optional.
    Group COA used for consolidation of Company codes. This is for group consolidation purpose.
    17) What are all the segments in a Customer/Vendor master record?
    Ans: Segments in Customer           Segments in Vendor
    -      General Data segment            General data segment
    -      Company code segment         Company code segment
    -      Sales area segment                 Purchasing organization Segment
    18) What is open line item management? What do you mean by clearing open line items?
    Ans: Open item management is further reconciliation function. OIM allows you to display the open and cleared items and amounts in an account. OIM should be used if an offsetting entry is made for every line item posted in the account. The a/c is reconciled and cleared against another account. Ex. Salary clearing account and GR/IR Clearing account.
    19) What is residual payment and part payment?
    Ans: Residual payment it clears original invoice with incoming amount and create new line item for remaining outstanding amount.
    Partial payment it leaves the original invoice amount and creates new
    line item for incoming amount.
    20) What is internal and external number ranges?
    Ans: Internal Number Ranges: Doc. No will be provided by the system automatically in serial order allotting the next available progressive number. The number must be in numerical.
    External Number ranges: Doc. No will be given manually by the end user. System will not lock no automatically in this case. User can pick the number randomly. Number may be an alpha numeric.

  • Please give the solutions ASAP.

    Hi Friends,
    Please give the solutions  if you know 100% correct...please don't go for slice and dice method.
    1. Which of the following is true of SID tables?
    a. SID tables are not part of the basic star schema
    b. The SID table links the dimension table to the fact table
    c. SID values in a SID table are only numeric
    d. Navigation attributes use the standard SID table
    e. The SID table links the master data and dimension tables.
    2. Which of the following parallel processes could have locking problem
       A. Hierarchy attr. change run    B.Loading Master data from Info object from various source systems. C  Roll up of Aggregates on Infocube D. Selective deletion Info cube / ODS E. Loading Info cube / ODS
    a. A & C
    b. A & B
    c. Â & D or E
    d. A&B, A &C, D &E.
    3. The transactional ODS will have the following tables.
    a. Active table
    b. Change log
    c. New table
    d. Active and New table
    e. no table.
    4. Which components of the BW star schema use SID?
    a. Dimensions
    b. Key Figures
    c. Characteristics
    d. Navigational Attributes
    e. Units
    5. Which of the following statements are true about aggregates?
    a. Once an aggregate is deactivated all data is deleted
    b. Time-dependent hierarchy structures with time dependent navigational attributes are allowed in aggregates
    c. More than one key characteristic is permitted in aggregates
    d. Time dependant characteristics are permitted in aggregates
    6. Where can you initially specify PSA or IDOCS?
    a. Transfer methods tab in the transfer rules
    b. In the scheduler
    c. In the communication structure
    d. In the assignment of the Infosource
    7. Why do you need a communication and transfer structure?
    a. for loading attributes
    b. for loading text
    c. for loading Transaction data
    d. for loading hierarchies
        8. What are the types of attributes?
    a. Navigational and text     
    b. Display and navigational     
    c. Display and calculated      
    d. Text and display     
    9. What is the role of the application components section?
    a. Organization of InfoSource
    b. Organization of Source System
    c. Organization of Infocubes
      10.  What is PSA the abbreviation for?
           a. Persistence Staging Area
            b. Permanent staging area
            c. Pre staging area
           d. None of the above
    11. If some data is missing, can you run full loads with selections in deltas?
            a. yes
             b. no
    12. Where can we decrease or increase the time limit for an IP to be in yellow state?
           a. IP settings.
           b. Technical status tab
           c. Update rules
    d. Data target.
    13. Multiproviders can include?
    a. All infocubes only
    b. ODSs only
    c. Infocubes, ODSs and infoobjects
    d. Infoobjects only.
    14. Which of the following reside on the BW system?
    a. Plug-In
    b. V1 Update queue
    c. InfoSource
    d. Extraction structure
    e. ODS.
    15. What are the two fact tables?
    a. E table, F table
    b. P table, E table
    c. F table, H table
    d. M table, A table.

    Hi,
    1. Which of the following is true of SID tables?
    c. SID values in a SID table are only numeric
    e. The SID table links the master data and dimension tables.
    2. Which of the following parallel processes could have locking problem
    a. A & C
    3. The transactional ODS will have the following tables.
    a. Active table
    4. Which components of the BW star schema use SID?
    a. Dimensions
    c. Characteristics
    d. Navigational Attributes
    5. Which of the following statements are true about aggregates?
    b. Time-dependent hierarchy structures with time dependent navigational attributes are allowed in aggregates
    c. More than one key characteristic is permitted in aggregates
    6. Where can you initially specify PSA or IDOCS?
    a. Transfer methods tab in the transfer rules
    7. Why do you need a communication and transfer structure?
    c. for loading Transaction data
    8. What are the types of attributes?
    b. Display and navigational
    9. What is the role of the application components section?
    a. Organization of InfoSource
    10. What is PSA the abbreviation for?
    a. Persistence Staging Area
    11. If some data is missing, can you run full loads with selections in deltas?
    b. no
    12. Where can we decrease or increase the time limit for an IP to be in yellow state?
    a. IP settings.
    13. Multiproviders can include?
    c. Infocubes, ODSs and infoobjects
    14. Which of the following reside on the BW system?
    c. InfoSource
    e. ODS.
    15. What are the two fact tables?
    a. E table, F table
    Regards
    Sunil

  • Would anyone please give me a test result of Oracle 9iFS

    We want to build a content management system. We've already built a MIS and the data stored in a Oracle database . The data in the content management will be used by the MIS . would anyone please give us a test result of Oracle 9iFS. We want know the capability, reliability of 9iFS . It will be appreciated If anyone can give us some proposes.
    thanks .

    Thanks for replying. i've tried doing it with one square as a
    movie clip symbol and then flipping that square over with the 3d
    rotation tool and then over and over. but i'm having to draw other
    squares on other layers to make up the rest of the square as it
    gets created. is this the right way to do it? what would be the
    simplest way? i know you said its just an animation, but how would
    you create the animation?
    Thanks

  • "Please don't reply to this email" Grr

    Is it just me, or does anyone else think it's really rude when people send emails with wording such as "Please don't reply to this email – it's been automatically generated by our computer. If you need to get in touch, please use the contact links below."?
    You can pretty much guarantee that none of the contact links will cover the subject of the original email. The impression it gives to me is one of a company that likes to tell me whatever they want, but isn't remotely interested in what I think as a customer.

    No, it's not just you
    But mine did have a link which (uniquely identified me) to a feedback survey
    And mine WAS because they were interested
    I received it on Saturday (21/08 at 21:05)
    It came from 'BT eContact Survey' (info@edigital********.***)
    Dear (my full name),
    You recently contacted BT and they'd like to hear what you thought about the way they fixed the problem, so much so they've asked us to ask you some questions. We really hope you can spare a few minutes as they're really keen to learn from your experience.
    Please click on the following link below to provide your feedback. The survey will only take 5-10 minutes to complete.
    (link removed)
    Many thanks,
    eDigital ******** - on behalf of BT eCustomer Service
    Note: this email was sent from a notification-only email address that cannot accept incoming email. Please do not reply to this message
    This is an independent market research study conducted by eDigital******** on behalf of BT. All information is stored on a secure server.
    Personal information collected will never be sold, shared, or rented without prior consent. Please direct any queries with this research to bt@edigital********.com
    I have made contact with the CEO, a rep from BT, the mods and via an online help link.
    My guess is it's from the help link.
    I'll never do that again!!
    and the problem wasn't fixed!!!
    -+-No longer a forum member-+-

Maybe you are looking for

  • Safari crashes when I try to type in the address field

    I've gone through several suggestions already on here, but I nothing has worked so far. I've emptied the cache, deleted the .plist file, repaired permissions, and reinstalled Safari, but so far nothing. I created another account and it works fine on

  • How can I undo manual syncing for all three of my apple devices on one Itunes account?

    Recently I attempted to create manual syncing for my 3 devices on an itunes account. I didnt really know what I was doing, and now have nothing on one device. How can i restore itunes to normal again?

  • JAXB UTFDataFormatException

    Please, can any body help me with my encoding: I am trying to unmashall an xml document, but while unmashalling I got an UTFDataFormatException. The xml document is in a byte[] and this is the way I try to unmashall it: tringReader source = new Strin

  • Ipod transfer problems

    I don't know what sort of Ipod I have. It's got a long screen and a circular button at the bottom with menu play rewind and fastforward options. I just reset my IMac back to factory settings. I tried to log into my itunes but it keeps telling me I do

  • Can not install printer under new OS

    Windows 8.1 do not accept my printer