How to count the SRs closed and open SRs on same date.

Hi all

We use BIApps 7.9.6.3 we use OOB mapping and RPD.source system is Siebel CRM services.

My requerment is display the number of srs where SRS created and closed Srs is the same day.

Pls let me know any one faceing same requriment. I'm willing to change ETL as well BI level also.

THX,

Check this box

Select T31328. DAY_DT' as c1,

T32495. "' OPEN_DT ' C2,.

T32495. "' CLOSE_DT ' as c3.

T32495. "' SR_NUM ' as c4.

Count (distinct T32542. (' "SR_WID") as c5.

Count (distinct case when {fn TimestampDiff (SQL_TSI_DAY, T32495) "OPEN_DT", T32495. (» CLOSE_DT")} = 0 and T32495. "' STATUS ' = 'Closed' and T32495. "" SUB_STATUS "="Resolved"then T32542. ("" End SR_WID ") as c6,.

T32495. "" INTEGRATION_ID "as c7

Of

"W_DAY_D" T31328 / * Dim_W_DAY_D_Common * /,.

"W_SRVREQ_D" T32495 / * Dim_W_SRVREQ_D * /,.

"W_SRVREQ_F" T32542 / * Fact_W_SRVREQ_F_Open_Date * /.

where (T31328. "" ROW_WID "= T32542. "" OPEN_DT_WID "and T31328. "" DAY_DT "= convert (datetime, ' 2012-01-14 00:00:00 ', 120) and T32495. "" ROW_WID "= T32542. ("' SR_WID")

Group of T31328. "DAY_DT", T32495. "INTEGRATION_ID", T32495. "SR_NUM", T32495. "CLOSE_DT", T32495. "" OPEN_DT ".

Tags: Business Intelligence

Similar Questions

  • How to count the number of data records?

    Hey guys, how to count the number of records, I had on a data object variable?

    Im having a result of sql query in a variable like this:

    oDB.resolveNode("#command").query.select.value = "SELECT * FROM Customers WHERE CliNombre LIKE ' % ' + input1 +" %' ";

    oDB.open ();

    oDB.first ();

    So I need to count the number of records retrieved by this SQL query at the moment. Help please

    Then move the cursor back to the first record after you have your account.

    There is a keyword count in SQL that will allow you to get the account of your request. You can run that first - get your account, and then run the actual query to get the Recordset. This would require a separate data connection. Some examples of code.

    var xfa.event.newText = inName;
    If (inName == "") {}
    App.Alert ("you must enter a name--try again!")
    }
    var nIndex = 0;
    While (xfa.sourceSet.nodes.item (nIndex) .name! = "DataConnection2")
    {
    nIndex ++;
    }

    oDB = xfa.sourceSet.nodes.item (nIndex) .racing var (1); pertaining to the specified data connection node
    App.Alert (ODB.saveXML ("Pretty"));

    var nIndex = 0;
    While (xfa.sourceSet.nodes.item (nIndex) .name! = "DataConnection3")
    {
    nIndex ++;
    }
    var oDBCount = xfa.sourceSet.nodes.item (nIndex) .racing (1); pertaining to the specified data connection node
    Configure sql call DB to get the number of records that match the criteria

    oDBCount.nodes.item (1).query.setAttribute ("text", "commandType");
    oDBCount.nodes.item (1).query.select.nodes.item (0) .value = "Select count (*) from table1 where AcctNumber = '" + inName + "'";
    oDBCount.open)
    oDBCount.close)

    Configure sql call DB to get the specified employee number

    oDB.nodes.item (1).query.setAttribute ("text", "commandType");
    oDB.nodes.item (1).query.select.nodes.item (0) .value = "Select * from table1 where AcctNumber = '" + inName + "'";
    App.Alert (ODB. Nodes.Item (1) .saveXML ("Pretty"));

    now connect to the DB and get a recording
    oDB.open)
    oDB.close ();

    Note the SQL command use the keyword count (take a look at the oDBCount section). This will return a number of return to the cllaer. When I set up the data connection, a node count (*) that appeared there. I dragged to the form and it has created a field called count that the onus at this node. When the query is executed, the number of resulting records returns to this field. You can have hidden it so that your users can not see it and also to change the binding votes to zero, so it is not included in the data file that is submitted when the form is complete.

    Paul

  • the background behind my pages turned black, how to return to grey? I spent between purge normal, preview, Slug and presentation and closed and open in design and it is always black. I can't imagine layouts with the black arr.plans

    the background behind my pages turned black, how to return to grey? I spent between purge normal, preview, Slug and presentation and closed and open in design and it is always black. I can't imagine layouts with black background please help!

    or maybe that the interface has been defined on Dark?

    Go to Preferences > Interface tab, choose light color theme dropdown on Apearance section (the upper part of the window)

  • How to detect the window closing event and to do some tasks before leaving

    Hello

    Someone knows how to detect the window closing event and to do some tasks before leaving?

    Sridhar

    Structure of the event allows to detect the window closing event. In the structure of the event,.

    Select this VI-> close round table for this task. See attached picture.

  • Restoration of openers program: how to restore the original program of opening such as internet explore and itunes instead of notepad ++

    on my computer, I have somehow changed the settings for applications on windows 7 open with notepad ++ how to restore the original program of opening such as internet explore and itunes instead of notepad ++

    I've seen this happen when opening a program via a shortcut (for example. LNK file), you are asked what type of program to open it with. After selection of Notepad ++ (or another program) via the Select a program from a list of installed programsand checking the always use the selected program to open this type of file, document or program referenced by the shortcut of origin opens in Notepad ++ as it should.

    The problem is that now all shortcuts (for example. LNK files) on the desktop or in the browser will want to open Notepad ++ and use the icon of Notepad ++ to display the shortcut no matter what shortcut was originally intentioned to open. This is known as a file association and the default icon.

    The good news is that a small free utility was written to cancel the. LNK file association was created. There is also a registry hack to achieve, but I recommend the utility unASSOC for its ease of use.

    A utility to Unassociate Types of files in Windows 7 and Vista

    Just download and then use the utility to unassociate the. LNK files. Manual is available on the web page above (the same place to get the utility). Quite simply, you run the program and wait for the list of the types of files to complete. Select. LNK in the list and then click delete the file type.

    Your asscoiations of moose file will be restored.

  • I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    Hi Eileen97933052,

    The PDF form must be extended drive in order to have this feature to save & print the form data.

    Please confirm by the PDF Creator is the PDF reader or not extended.

    Otherwise, if you have Acrobat installed on your system, you can reader extend PDF form yourself.

    Kind regards

    Nicos

  • How to count the number or lines in the file

    Hi Experts,

    I'm file as source and Oracle as target. My folder that contains some data that will load the target.
    My requirement is that I want to count the number of lines that contains my folder. Please help me how to count the total number of lines in the file.


    THX,
    Sara.

    Hi Sahaveda,

    Now, I tried and it works.

    Sorry my mistake again.

    I created HR. ETL_FILE_LOG as below:

    CREATE THE TABLE HR. ETL_FILE_LOG (numero_fichier varchar2 (10))

    Below the code will run without error:

    import java.lang as lang

    import java.sql SQL

    import of java.lang.String

    Import os

    disadvantages is sql. DriverManager.getConnection ("<%=snpRef.getInfo("DEST_JAVA_URL")%>", "<%=snpRef.getInfo("DEST_USER_NAME")%>", "<%=snpRef.getInfo("DEST_PASS")%>")

    dblinks = cons.createStatement)

    File1 = Open ('c:\EMP.txt','r')

    Count = 0

    Line = file1. ReadLine()

    all online! ='' :

    Count += 1

    Line = file1. ReadLine()

    File1. Close()

    sqlQuery = "insert into HR. "The values of ETL_FILE_LOG (numero_fichier) (" + str (count) + ' ") '.

    rqQuery = dblinks.execute (sqlQuery)

    jerks. Close()

    Concerning

  • Printer all in one HP3520 - how to select the wireless network and enter the WEP key?

    According to print my wireless network is detected.

    How to connect the! @# % printer $ fo the wireless network and enter the WEP key?

    Instructions on the HP site tell me to selet NETWORK on the printer control panel.  Well, there's a way to select the NETWORK from the control panel.  It is not an option for him.

    I downnloaded and installed the latest drivers.

    I have restored the default settings.

    How to select the wireless network and enter the WEP key?

    All of HP's instructions seem to be for a newer printer with a touchscreen.

    I want that the printer is connected to my main computer via the USB port.  I want to be able to print wireless phones and tablets.

    My 3520 is not a 'touch Screen' and it has wifi.

    However, the following work:

    Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.

    This leads me to believe that ONLY the wireless doesn't work.  I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.

    Thank you for your help

  • How to count the peaks?

    Hi all

    I am a new user of LabVIEW and I'm going to ask you about a problem that certainly many of you will find quite annoying.

    I develop software for a test machine management that uses an another bend, a tachometer that generates a signal of rectangular analog output in volts, 0V to 8V. Like many I thi signal in a waveform graph.

    My goal is to be able to count the number of cycles of the machine and power count the tension peaks and subsequently be able to work on the machine with respect to the number of rounds to make. the ultimate goal is to be able to tell the machine how many rounds/cycles to do and the voltage applied to the load cell.

    Would you be able to give me some advice on this subject? Especially about count and store the number of revolutions.

    If necessary, I could send a screenshot of the program.

    I tried to use a crest of the threshold detector but I'm still inexperienced, it's why I ask for your help.

    can someone help me?

    Thanks in advance.

    Greetings

    LV

    Look at the detection of peaks VI and examples (help-> find examples).

    It should be fairly easy to understand and implement

  • How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    Original title: SoundMAX Integrated Digital Audio

    How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    I need SoundMAX Integrated Digital Audio

    Hello

    Why you trying to update the audio, video and game controllers?

    The following steps may be helpful:

    1. open the Device Manager.

    2. Locate the audio, video and game controllers and expand it.

    3 click the sound card, and then click Update driver.

    For more information: http://support.microsoft.com/kb/283658

  • Configure my laptop to run with the cover closed and an external keyboard and monitor mouse

    I have a HP Pavilion Select g6t.  How to configure my laptop to run as a basic office, i.e. with the lid closed and outside, keyboard, mouse, & monitor?

    If you use Windows 7 or Windows Vista, see the section "Changing button walk / stop, watch and lid settings button ' in the following link:
    http://support.HP.com/us-en/document/c00825528

    If you use Windows 8, refer to the "Change power button and lid settings" section in the following link:
    http://support.HP.com/us-en/document/c03397760

  • How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    After I enabled "Show hidden files, folders and drives" in 'Advanced settings', I can't yet see in the folder but I know there is a file in this program of WinRAR folder form as pictured below where I opened the case both at the same time.

    Hope you can help in this case...

    It would be possible that the file is marked as a system folder (which is just a check box in properties such as the hidden check box). So in your folder options, uncheck the "Hide protected operating system files" and see if it will be visible.

    Or another thing to try: remonter back a level, hold down SHIFT while you right-click the complete file and choose "Open command window here", then type DIR to see if the file is listed.

  • A screen of closing and opening another through a wire

    I'm showing a screen with my logo at the beginning of the application and to close and the new screen opena after 10000 milliseconds, but I don't know how make the wire placed an order for closure for the logo screen to close the logo screen and open the menu screen.

    appreciate your help.

    Alaa

    the logo screen

    --------------------------

    public final class extends Logo screen
    {
    public Logo()
    {
    final TireMap Bitmap = Bitmap.getBitmapResource ("Thanks");
    final BitmapField TireMapImageField = new BitmapField (TireMap);
    VerticalFieldManager VFM_TireMap = new VerticalFieldManager();
           
    int remaining is Display.getWidth () - TireMap.getWidth ();.
    VFM_TireMap.setMargin(10,remaining/2,10,remaining/2);
    VFM_TireMap.Add (TireMapImageField);
    Add (VFM_TireMap);
    Add (new NullField());
    SleepingTimer TW = new SleepingTimer();
    New Thread (TW) m:System.NET.HttpListener.start ();

    Thread class

    ---------------------

    public void run()
    {
    Try
    {
    Thread.Sleep (10000);
    }
    catch (InterruptedException e)
    {
    e.printStackTrace ();
    }
    }

    It works:

    final Screen logoScreen=new LogoScreen();
    final Screen mainAppScreen=new MainAppScreen();
    
     new Thread(new Runnable() {
                public void run() {
                    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                        public void run() {
                            UiApplication.getUiApplication().pushScreen(logoScreen);
                        }
                    });
    
                    try {
                        Thread.sleep(10000);
                    } catch (InterruptedException e) {}
    
                    UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                        public void run() {
                            UiApplication.getUiApplication().popScreen(logoScreen);
                            UiApplication.getUiApplication().pushScreen(mainAppScreen);
                        }
                    });
    
                }
            }).start();
    
  • My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted the bridge and PS, and I rest

    My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted bridge and PS, and I restarted the computer (Mac). Still the same problem.

    I thank assani, but it wasn't the answer. The problem was, I finally understood, that the "option for generation of quality and preview thumbnails" wasn't on "high quality" as it usually is. I have no idea how this happened as I never change this option.

    Thanks a lot for your help.

    Mitchel Gray

  • How to count the number of nodes under each parent in any given xml

    How to count the number of nodes under each parent in any given xml. for example the xml below was
    books has 3 childern, library [1] has 4, [2] library has 6 and bookshop [3] has 2. is it possible to get the number of tags in a childnode duplicate IE library [1]
    Book1 Tagus repeated twice... vice versa. do we need to make plsql lie we can achieve through sql

    < book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book3 > < / book3 >
    ACR < book3 > < / book3 >
    tray of < bookn_1 > < / bookn_1 >
    adjusted cost base < bookn > < / bookn >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    < / books >


    I tried this... query.

    Select
    XMLQUERY ('count($doc/Books/Bookstore[1]/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    Select
    XMLQUERY ('count($doc/Books/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    How can I get the counts for each parent in a single query

    Published by: user7955917 on August 24, 2012 07:26

    Generic function how you want the query to be.

    If the structure is known in advance, as in your example a 'books' and then a 'library' root element, it's as simple as:

    SQL> select x1.parent_id, x2.child_name, count(*)
      2  from tmp_xml t
      3     , xmltable(
      4         '/books/bookstore'
      5         passing t.object_value
      6         columns parent_id   for ordinality
      7               , child_list  xmltype path '*'
      8       ) x1
      9     , xmltable(
     10         '/*'
     11         passing x1.child_list
     12         columns child_name varchar2(30) path 'name()'
     13       ) x2
     14  group by x1.parent_id, x2.child_name
     15  order by x1.parent_id, x2.child_name
     16  ;
    
     PARENT_ID CHILD_NAME                       COUNT(*)
    ---------- ------------------------------ ----------
             1 book1                                   2
             1 book2                                   1
             1 book4                                   1
             2 bookn                                   1
             2 bookn_1                                 1
             2 book1                                   1
             2 book2                                   1
             2 book3                                   2
             3 book1                                   1
             3 book2                                   1
    
    10 rows selected
     
    

    If you want a generic solution that works without knowledge of the structure, you will need a recursive approach, and most importantly, you should know which nodes in distinct, I suppose that the leafs?

    Also, please help if you can provide the link of reference on the function name() years what are the other expression, that I can use after the path

    You can start reading the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_xquery.htm#CBAGCBGJ

    The clause PATH expects a XQuery expression however before 11.2, we can put only simple XPath expressions.

Maybe you are looking for

  • I lose albums in my iTunes library if I get Apple music?

    My iPad 2 has not been synchronized Age and has albums that I paid for that are not on my iPad 2 Air and are no longer in the iMusic store.  I lose even more if what I paid for, if I can get music Apple?  I will answer my albums and missing titles if

  • Where to get coverage for Satellite P100-429

    Hello Can someone tell me where I can buy an outer cover for my laptop P100-429.I know that it is covered by the warranty and the cracking to the hinge is a defect with this model. However, it works without problem, and I use it every day.If anyone c

  • RAZR Maxx - Google playing music stopped

    When I open Google play music application, I get the message "Google Unfortunatley playing music stopped. Someone knows how to fix this? This is the new version of playing music. I restarted the phone and it does not help. Thank you!

  • After the startup error message: C:Docume~1\owner\Locals~1\Temp\dwm.exe__how I can fix it.

    I ran Malwarebytes Anti-Malware and the following came and I deleted everything that came.  Then, I get the error that I mentioned: Malwarebytes' Anti-Malware 1.46 www.Malwarebytes.org Database version: 4725 Windows 5.1.2600 Service Pack 3Internet Ex

  • was in Word and press ALT so everything what and Koe all is medium to small

    original title: it has been very well for years, but my spouse was in Word and press ALT so everything what and Koe, everything is way to small.__I was able to get the icons fixed, but everything is much small.__How do I fix, he return to normal size