HOW CAN I CHANGE MY CASE STRUCTURE ?

I know that my case structure will bring in these results:
SELECT
DISTINCT CASE WHEN (V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 0 AND 30 THEN '1-30 DAYS LATE'
WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 31 AND 60 THEN '31-60 DAYS LATE'
WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 61 AND 90 THEN '61-90 DAYS LATE'
WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 91 AND 9999 THEN '91 DAYS+ LATE'
ELSE NULL
END DAYS,
NVL(LCL_PERM_NM,'UNKNOWN')TOR
FROM NCOER_STATS_VIEW V, LCL_ER_TYPE L
WHERE L.MIL_CD(+) = V.LCL_ER_TYPE_CD
AND v.lcl_er_form_cd = '4'
and NVL(v.lcl_omit_from_stats_ind,'N') <> 'Y'
AND v.psc_cd = '&&psc'
and V.lcl_er_recv_dt > ADD_MONTHS(V.ind_er_per_end_dt,3)
and nvl(v.lcl_omit_from_stats_ind,'N') <> 'Y'
and v.lcl_er_type_cd not in ('G','Y')
AND v.lcl_er_recv_dt >= to_date('&&rec_orig_dt','MMYYYY')
AND v.lcl_er_recv_dt <= LAST_DAY(to_date('&&rec_orig_dt','MMYYYY'))
DAYS TOR
1-30 DAYS LATE ANNUAL
1-30 DAYS LATE CHANGE OF RATER
1-30 DAYS LATE RELIEF FOR CAUSE/EER SPECL RPT
31-60 DAYS LATE ANNUAL
31-60 DAYS LATE CHANGE OF RATER
61-90 DAYS LATE ANNUAL
61-90 DAYS LATE CHANGE OF RATER
91 DAYS+ LATE ANNUAL
91 DAYS+ LATE CHANGE OF RATER
However how do I change the query or case structure to count each record?
I want a count for each line. Do I need a group by clause?

You can use something like
SELECT days, count(days) FROM
SELECT
DISTINCT CASE WHEN (V.LCL_ER_RECV_DT - ADD_MONTHS(
GROUP BY days

Similar Messages

  • How can I make easier case structure? Or can it possible to have one Pause and reset button in same structure.??

    hello,
    I am tring to convert my main test vi in case structure so latter on i can make some changes in that for example i want creat one pause button and reset button in that.
    I am not so much familer with case structure i want your guidence that how can i make my vi in globle case stucture in that i m having case 1 ,case 2...
    i already tried for that but then i got confused.
    here i am attaching my .llb file in that aa.vi is my main testing vi.
    will you plese guide me so i can make confort vi in case structure.
    Or can it possible to have one pause button and one reset button in same stucture,so User can pause or reset execution at any time when they want.
    Thank you very much in advance.
    Attachments:
    aa.llb ‏3338 KB

    Hello,
    I have change my entire structure ,now is it possible to have pause and reset button.
    here i have attached my changed vi.
    if still any changes required then please suggest me.
    Thank you.
    Attachments:
    aa.vi ‏75 KB
    aa1.llb ‏3333 KB

  • How can i change the windows structure into mac structure

    Before i had a mac i used my iPod on a windows computer. When i connect my iPod to my mac i see that i can only repair my iPod. I can't update . It sais that only Ipods with a mac structure can be updated.
    So is there a way to change the windows structure to a mac structure?

    You cannot change a Windows iPod into a Mac iPod without restoring it, which erases its contents. To restore it, use the repair button you saw.
    (24236)

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How can I change a column to lower case?

    I selected an entire column and discovered that it's already set at Format > Font > Capitalization > None
    If I change "None" to "All Caps," it capitalizes everything. But when I change it back to "None," letters that were originally capitalized remain capitalized. How can I change EVERY letter in a column to lower case?
    Thanks.

    Format > Font > Capitalization changes how the text is displayed. But it doesn't change the actual text.
    To change all letters to lower case you can use the LOWER() function in cells that refer to the original text. Then select the cells with the formula displaying the "recapitalized" text, command-c to copy, and Edit > Paste Formula Results to remove the formulas.
    SG

  • I was in a Pages Doc and inadvertently had the Caps Lock on. How Can I change all the text I typed from Upper Case to Lower Case?

    I was in a Pages Doc and inadvertently had the Caps Lock on. How Can I change all the text I typed from Upper Case to Lower Case?

    Several protocols may be used.
    Here I describe two of them.
    (1) the one which I use : install and use the "Convert to Lowercase" service available in the free WordService
    (2) copy your text, paste in TextEdit and enter the Edit menu.
    I guess that you will recognize the items in your English menu.
    I apologize but I don't know the English items.
    Yvan KOENIG (VALLAURIS, France) jeudi 16 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How can I change a standard webservice

    What steps are necessary for me to change the SAP webservice from SAP ESR?
    I WANT to do this in ABAP.
    I know that there are some BADIs and Enhancements spots available . But how does this fit into the whole Wesbservice interface.
    For example :
    I want to add a new field to the input structure in the WSDL. This field will then have to be mapped to the BAPI and so on. How can  do this. have you come across anything like this? How does BADI work in this case.
    Details :
    http://esoadocu.sap.com/socoview/render.asp?packageid=DBBB6D8AA3B382F191E0000F20F64781&id=2828AC800DDD11DC2B24000F20DAC9EF
    I want to be able to modify this service.
    Add a parameter like DocumentStructure to the input which will let me create a document inside the folder.
    I know that there is a proxy class in the backend CL_DMS_DOCUMENTCRTRC1 or something like that which calls the BAPI BAPI_DOCUMENT_CREATE2. This BAPI has the additional fields I am looking to map to.
    How can I use BADI to accomplish my goals? how can I change the WSDL interface ?
    How is this service tied to a Proxy class in the backend?
    Am I getting ahead of myself? Is this do-able  or should I start from scratch ( expose my BAPI as a new WS )?
    Thanks for any pointers.

    Did you read the "Enterprise Service Enhancement Guide" at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0bb5687-00b2-2a10-ed8f-c9af69942e5d  ?
    - julius

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • How can I change the scroll rate of a control

    I need the control to scroll at a faster rate than what Labview provides.
    How can I change this to make the control (with up/down arrows) scroll faster without holding the shift key down and while maintianing the same increment step size.

    If you really want to go above and beyond what LabVIEW gives you, you'll probably have to program it yourself. The best way to implement custom functionality for your controls is by using Event Structures. You could, for instance, hide the regular Increment/Decrement arrows for your control and replace them with custom controls that look the same. Then register for Mouse Down events and increment the control value as fast as you want in that event case. The only difficulty comes in when you need to have multiple such controls, or if you want to package them from one app to another.
    If you want a completely self-contained function that does it all and doesn't require specific block diagram implementation, you probably want XControls. XControls allow you not only to change a control's appearance but also its functionality. The end result would be a reusable control that would look and behave however you want, but wouldn't require any block diagram code from the target application. XControls, I would warn you, can be a bit advanced. Your first is the hardest. After that it sinks in
    XControls are available for LabVIEW 8 Professional Development System and higher.
    Jarrod S.
    National Instruments

  • How can i change the default view of recent calls?

    Hi,
    A similar question was asked here:
    https://discussions.apple.com/thread/3072545?start=0&tstart=0
    And was not answered.
    The default view of recent calls is missed calls on my current configuration.
    Not a long time ago the default was all calls.
    I didn't change it and don't know how.
    How can i change it back? I really don't see the advantage of the current default, most of the users navigate to all calls every time.
    I use iphone 4 and ios 5.1.1
    Thanks.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    However, I am on 6.1.4, so perhaps there is a diference in the iOS version. It is also a matter of one tap on the screen, so seriously, is it that big a deal?

  • When I edit a song in itunes (i.e change the year) on purchased songs, the next time I return to itunes, the information has reverted back to the original information. How can I change that?

    When I edit a song in itunes (i.e change the year) on purchased songs, the next time I return to itunes, the information has reverted back to the original information. How can I change that?
    When I purchase ITunes music, and it is a song from a Greatest Hits album, the Year of the song shows the year the CD was released and not the year the song was released (i.e. a song may be from 1986, but the Greatest Hits album was released in 1999, so my songs in ITunes show 1999).    So, I go into each of those songs and change it to the year that I want to be displayed. As long as I don't exit out of ITunes, it will show the year that I changed it to (i.e. the 1986 year in this case). But if I exit out of ITunes and then return to ITunes, the year reverts back to 1999. The same happens if I change the genre of a song from, say 'Pop' to 'Alternative', it will revert back the next time I log in.
    Oddly enough, as soon as I right-click on that song to change it back, the year/genre that I had entered returns.
    How can I make it so my changes are permanently displayed as I want them?  This is pretty annoying when I try to find a song on my Ipod under a certain genre, but it doesn't appear in that genre because the incorrect information gets synched to the Ipod.

    Make sure that these two options in Edit > Preferences > Store are turned off:
    Then exit iTunes and open it up again.  Your metadata entries should then be persistent - with these options checked iTunes will be comparing what you have with the information held in the iTunes Store, and will overwrite with the latter for Store purchases (and if you have iTunes Match).  If you have any iOS devices you should also turn off Show All Music under Settings > Music.

  • How can i change my icloud email address? i mis typed my name and wanted to change my icloud email address??, how can i change my icloud email address? i mis typed my name and wanted to change my icloud email address??

    hello guys ...i need any help or suggestions, how can i change my icloud email address?? i typed a w rong name by mistake?? can i change it and retype the correct one? thanks ...your suggestio is higly appreciated.

    That's definitely not supposed to happen.  You shouldn't have someone else's iCloud email linked to your ID.
    You'll have to get iCloud support to sort this one out.  The only way to contact them is to start here: http://www.apple.com/support/icloud/.  You'll have to provide your iPhone serial number.  Unless it's within the 90 day free support window, or you purchased AppleCare, there will be a charge.  I suppose you can plead your case when they answer that you shouldn't be charged as you didn't set up this address and it shouldn't have happened with your ID.

  • Cisco EIM 9.0.2- How can I change from e-mail address

    Hello ,
    We are using Cisco EIM/WIM 9.0.2.
    I wnt to manipule my outgouing e-mail address basicly from e-mail address.
    I can not find how can I do that.Can you please give me point for this case.
    How can automatickly change this address on the agent console,
    EX: I want to use [email protected]
    We are using 2 server ,(1 server Web server,1 server app and db server)
    Also we are using standalone integration
    Thanks and Regards,

    Yav,
    Go to the Administration Console in EIM, then Departments. Inside the Department, there will be an Email folder, and inside that is Aliases. In the properties for each Alias, there is an "Email address" field.
    -Jameson

  • HT4623 How can I change my email address so that  all the emails r the same for my apple, iTunes, and iCloud are the same I forgot my old email ow and I cant retrieve it so I want to change it so it's all the same plz help.

    How can I change my iTunes, Apple and icloud to my yahoo account instead of it being on hotmail, I have yahoo on apple but my iTunes and iCloud still reading my hotmail and I don't know my pw for my hotmail account. I can't update or get apps due to it it going to my hotmail address once logged in to apple it said I can log into iTunes, and iCloud but that's not the case plz help

    First sign out of everything,
    Second make sure you know the current password
    Third got to id.apple.com
    Fourth use said password and your hotmail account to sign in then change the primary

  • How can we change the purchasing group which it is maintained in R/3?

    Hello All.
    In case of MM, purchasing group is assigned to material master.
    It means purchasing group is maintained based on material code.
    But SRM has different maintenance level.
    As you know that purchasing group has the responsibility based on material group (Product category).
    So we should change the purchasing group from R/3, when end user create shopping cart.
    How can we change the purchasing group which it is maintained in material master?
    Thank you,
    Best regards,
    SH.

    Hello So Hee,
    I am not a technical guy.
    But for your requirement i am building a logic.
    I am not sure whether it will work.
    You need to check with your ABAPER.
    It is as below:
    When the SC is approved and the other configuration is correct ,
    PR is created in ECC by the virtue of BAPI.
    You want that the pur grp should be populated on the base of matl code and not on matl grp.
    Hence in SC you will not fill up pur grp.
    In the programme for BBPSC01 i.e. SC creation you will add modification that it will call a custom FM.
    This custom FM will get the matl code from SC and will find the value of pur grp from R/3 MM01i.e. matl master(you may get in MARA).
    Now in the BAPI you need to incorporate this additional value of yr pur grp field.
    So the desired pur grp as per yr R/3 matl master will be populated in yr R/3 PR.
    Again: this is all hypothesis.
    That's all I can help you.
    BR
    Dinesh
    <b>Reward if helps</b>

Maybe you are looking for

  • Automatic creation of po during goods receipt

    Dear all, po has not been created, but while receiving the material i want automatic generation of po. i have some knowledge about it but it is not working. Can some one send detailed information. with navigation details. Tips that are posted on the

  • Stacked and standard item groups

    Hi, Can anyone give a clue if the following problem can be solved? I have a table with many columns which I want to display on a single form with multiple tab-canvases. And on each tab-canvas I want to use item groups (two side-by side!). I managed t

  • Archive - Purge data from F1 and U1 clusters

    Hello Experts, I have been given the task of purging data from the F1 cluster, Remuneration Statement forms, and the U1 cluster, Tax Reporter forms, in PCL4.  I was hoping to accomplish this by using an archive function to delete the data but not sto

  • Tab set issue

    i am working on dv since a month where we have a tab set component, initially i was able to add or remove a new tab.i have started working on a dv with three tabs. now i need to another tab. when i try to add new tab am unable to see the new tab in u

  • Problem with my config

    Hello, I have the following goals of implementing my 877w: 1) Two vlans, one for wired, one for wireless. 2) DHCP giving IP leases for both vlans, using a pool for each vlan. 3) Allowing the clients of both vlans to access the internet through my ads