Number of queries mapping

Hi all

I have scenarios must find the value and make the code as it's like data below.

Table name: = UIM_APN_RESULTS

AFN SYNC_DATE SOURCE

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

A01 JANUARY 8, 16 04:23:58 UIM_ONLY

A02 JANUARY 8, 16 04:23:58 UIM

A02 JANUARY 8, 16 04:23:58 ICAP

SIP 8 JANUARY 16 04:23:58 ICAP_ONLY

the request is

SELECT SYNC_DATE,

"APN" POINT OF THE DAY.

SUM (CASE WHEN SOURCE = 'ICAP_ONLY' THEN 1 ELSE 0 END) ONLY_IN_ICAP,.

SUM (CASE WHEN SOURCE = 'UIM_ONLY' THEN 1 ELSE 0 END) ONLY_IN_UIM,.

Count (*) ICAP_UIM_DIFFERENCES

OF UIM_APN_RESULTS

WHERE TO_CHAR(SYNC_DATE,'DD-MM-YY') = TO_CHAR(SYSDATE,'DD-MM-YY')

SYNC_DATE GROUP;

ICAP_UIM_SUMMARY:

January 8, 16 04:23:58 1 1 4 APN - 4 value for ICAP_UIM_DIFFERENCES is incorrect.

It takes 1-A02 is the only element where there is a corresponding entry in source ICAP/UIM AFN.


Please let me know if any necessary clarification. Thanks in advance.

Maybe


with

UIM_APN_RESULTS as

(select "A01" SYSDATE SYNC_DATE, APN, 'VODACOM' APN_NAME, 'www.vodacom.co.za' APN_DESCRIPTION, 'HSD144', 'UIM_ONLY' SOURCE QOS, DYNAMIC_STATIC_IND 'Dynamics' of all the double union)

Select "A02", SYSDATE, 'UIM","VODACOM","www.vodacom.co.za","HSD144","Dynamic"of all the double union

Select "A02", SYSDATE, 'PICA', 'VODACOM', 'www.vodacom.co.za', 'HSD144', 'Dynamic' of all the double union

Select "SIP", SYSDATE, 'ICAP_ONLY', 'SIP', 'Static IP Access', 'DEFAULT', 'Dynamic' double

)

Select sync_date,

Count (case source when end of 'ICAP_ONLY' then 1) only_in_icap.

Count (case source when end of 'UIM_ONLY' then 1) only_in_uim.

largest (County (source case when 'PICA' then 1 end), County (case source when 'IMU' then 1 end)) icap_uim_differences

of UIM_APN_RESULTS

where sync_date > = trunc (sysdate)

and sync_date< trunc(sysdate)="" +="">

Sync_date group

SYNC_DATE ONLY_IN_ICAP ONLY_IN_UIM ICAP_UIM_DIFFERENCES
08/01/2016 1 1 1

Concerning

Etbin

Tags: Database

Similar Questions

  • How to find the total number of queries from the awr report

    Hi all

    Is it possible to find on the total number of queries fired on the database of an AWR report.

    No, it means that there are 26,459,500 executions and captured SQLs accounts 93.9% of total executions, i.e. the 24 845 execs 470.5.

  • Oracle [5] number is incorrectly mapped to an int16

    Hello

    We have a lot of tables with columns defined as number [5]. During the generation of the model of the DB, it is mapped to an int16. Of course, we have values larger than int16 tables and we get errors when you try to load data.

    I saw a lot of discussion about the changes made to the app/web.config in order to operate, but they all seem to refer to the beta version. We work closely with Oracle ManagedDataAccess 11.2.0x64 and EF 5. This version also requires changes in the config file? If so, what are those?

    Thank you

    Ken

    Bingo!

    The above configuration format does the job

    Thank you very much for your help!

    For those who are facing the same problem:

    1. Add in the config file:

    * In addition, to ensure that in the section of the connection string, the provider = Oracle.ManagedDataAccess.Client

    2. then, in the diagram, select a property that has an incorrect mapping and in the properties of the window (not the Details of Mapping window) change the type (in my case of Int16, Int32).

    3. right click on the model.tt file and select 'Run custom tool' for the classes would be rebuild based on the new type definition.

    Ken

  • Number of queries of database per second

    How to find the number of requests per second in oracle db? or the data that we get as parameter of ' Transactions / s "inside the AWR report are the same as queries of database per second. Please specify!


    I ran AWR report and only that I got the ' Transactions / s " information, but unable to find info regarding " " Queries of database per second " .

    I thought that I had already pointed 'run you in the right direction with the statistics County '.

    There are also "Runs" in the load profile of the AWR report which must be derived from the same statistics.

  • Maximum number of hosts mapped to a single LUN ESX

    I have a TB 1.9 LUN presented to an IBM SVC to several groups of ESX/ESXi include versions 3.5 (ESX), 4.1 (ESXi) and 5.0 (ESXi).  I read 3.5 has a host LUN '' recommended '' limit 32.

    I'm looking for more details on this issue.  This applies only the number of 3.5 hosts who can see the data store or all combined ESX hosts.  And why is it recommended to vs a strict limit?  We are trying to implement a logic unit number mapped to ESX host clusters as possible in order to support a mass migration to a new environment.

    I'm pretty new to VMWare world so please excuse me if I'm not clear on what I ask, or do not include any other relevant information.

    I don't think it's a contradiction at all.

    It is said that a given host can have up to 256 LUNS.  A volume given (VMFS) are accessible by up to 64 hosts.

    They are 2 completely different scenarios.

  • Number of queries

    Hello

    I have demands to count how many coustomer hold how much number of accounts. Can someone help rom the forumn. Thanks in advance.

    partyID AcctId

    1                         22

    2                         22

    3                         11

    1                          44

    2                         33

    3                         44

    4                         44

    3                         55

    5                         22

    6                         666

    7                         22

    7                         666

    8                         55

    8                         22

    ...

    ....

    requirements, it's how many parties hold numbe of accounts

    as

    Acctid Party

    County coun

    3 1-> three (4,5,6) party consider unique

    4 2-> four thirds (1, 2, 7, 8) has two account each

    1 3-> a single party (3) maintain three account each

    ...

    ...

    Thank you

    Ray

    with t as)

    Select partyid,

    Count (*) accidcnt

    from tbl

    Partyid group

    )

    Select count (*) partyidcnt,

    accidcnt

    t

    Accidcnt group

    order by accidcnt

    /

    PARTYIDCNT ACCIDCNT
    ---------- ----------
    3          1
    4          2
    1          3

    SQL >

    SY.

  • Access to completed the number of queries go WLST

    Hello guys,.
    I intend to write a WLST script that would periodically check the number of applications processed. This attribute is available in the console in the following way: -.
    < servername >-> monitor-> discussions.
    But I am unable to locate this attribute using WLST.
    Any help would be greatly appreciated.

    Thank you

    Published by: user8100807 on June 16, 2009 14:46

    Hello..

    This statistic are the runtimes of server ThreadPoolRuntime\ThreadPoolRuntime...

    for example.

    domainRuntime()

    CD ("ServerRuntimes/Nom_votre_serveur/ThreadPoolRuntime/ThreadPoolRuntime")

    .. Select this option.

  • number of queries and loop

    Hi guys, I have a query with a distinct. I want to ad a line count at the beginning of the cfouput so I can see the County. But I can't understand a simple way to do it.

    Here is my code:

    < cfquery datasource = 'test' name = 'test' >
    Select distinct destination_url from google where destination_url is not null
    < / cfquery >

    < cfset count1 = 1 >
    "< = cfloop" "#count1 #" to = "#test.recordCount #" index 'i' = >
    < cfoutput > #i # < br / > < / cfoutput >
    < / cfloop >

    < br / >

    < cfoutput query = 'test' >
    #Destination_url # < br / >
    < / cfoutput >
    < br / >

    So what I want to do, it's in the cfoutput this:

    #i # #Destination_url #.

    There must be a simple way?

    Thank you
    Frank

    The two code samples work (more than one way to skin a cat wow)

    :)

    Frank

  • Number of the invoice not mapped correctly

    Hi all

    We have webcenter 11g installed imagery. Imaging agent to server entry is configured so that each time we receive an invoice a SOA service call is made. In Manage Applications in Imaging, we have created an application and page definitions Feild, we have created the following fields.

    The invoice number

    Date of invoice

    Invoice Type

    These fields were assigned to the payload as a format value. Date of the invoice and the Type of values to match correctly. But invoice number is get mapped to vendor number and so in demand SOA we get the supplier number value in the bill number field.

    Someone can explain how to create field definitions and assign it to the load of the SOA. is there a naming convention to follow?

    Also, we need to map the amount of the invoice to the payload as well. When we created our files are less error out with the error message.

    A value was not given for a required field. Field: Id - 6, name - Bill Amount@Support

    Thank you.

    Kind regards

    Deena

    Have solved it. the input fields mapping need in managing the Webcenter Imaging screen entries.

    Concerned,

    Deena

  • Where can I get a map of the EU to go form my US bought S7 Aspire?

    I would get a card that works in the countries of the EU, if it is not available then a power source.

    This is what looks like the US plug:

    Hello

    I found the part number of the 'map', but I don't know if it's available in the USA:

    NC.20411.01YAC. CLIP.EU/KOR. WHITE

  • Foglight JavaEE Application Server queries

    Hello

    We are looking to monitor an application weblogic, including the request/response times with JavaEE agent, we come there followed requests against weblogic domain, as well as managed servers.

    Queries against the domain appear to be redundant and causing Java applications to exceed the threshold and also a Foglight performance impact. Is there a way to limit the demand followed against only managed servers and turn it against the domain in order to reduce the total number of queries on caterpillars.

    Thank you

    Vincent

    When you say field, do you mean the server administrator?

    I know with Weblogic you have managed servers, you have server admin and you have managers node, if this is not the server administrator can send you screenshots of something to show which area it is?

    If he is the administrator of the server, when you instrument a server, you have the ability to define detail detail full/component, level instruments will still show request to this server, basic details gets just information JMX.  Depending on which version of the Java agent you run we can load you can change the settings correctly.

    Golan

  • Limitation of the App Scripts? By volume by number of invocations or calls...

    I have a situation where I'm going to an auto attendant script with several menus and according to the chosen option, it will redirect you to the appropriate Department Routepoint. Also, the caller can call the local/long distance number that is mapped to the RPs to the Department or the Routepoint itself (for most of the internal people).

    Each RP has a queue associated with. The flow of calls for all RPS is exactly the same. The only variation in the script is voicemail ext, name of the queue of the Department, guests etc. I can create a script, set all variables and when downloading in CRS Admin, can assign values to the parameters.

    My question is, does the script no limitation in terms of number of calls they can handle? Which means, if I have a script to assign different parameters and if several callers call different departments, the same will triggered with different values of parameters of script, but it will crash after "x" number of calls or 'x' number of invocations?

    Any ideas would be useful. Otherwise, I can copy the same script, rename and associate with his RP of the Department but if I make a change in one place, I have to change in other locations. My goal is to reuse code, to reduce to a minimum the number of scripts and create a single sophisticated script.

    Thanks in advance for your comments.

    Sunil

    Sunil,

    This should not be a problem. The only issue you might encounter would be with regard to the preparation of reports. You want to make sure that you are defining your types of appeal, after defining the routing logic you so that you can report on calls to every other Department.

  • 12.1.3 extension XSLT editor Query-database mapping function

    Hello

    , We are trying to move from 11.1.1.7 to 12.1.3 JDeveloper. We have developed a number of xsl maps in 11.1.1.7 using the function oraext:query - database Oracle extension (where the namespace oraext is xmlns:oraext ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" "). This works in JDeveloper 11.1.1.7 when the test of the card where the call to the map looks like this:

    < xsl: value-of select = "oraext:query - database (concat (& quot; Select fvalue GetMapCodeList ("param1", "param2", "param3") of double, quot;), false (), false (), & quot;jdbc:oracle:thin:dbuser/dbpassword@dbhost:1521:dbservicename & quot;) "/ >"

    In the statement select above is "select GetMapCodeList" which is a function defined in the database which takes 3 parameters. This works very well for us in 11.1.1.7. We are new to 12.1.3 and we get an error test map XSLT in JDeveloper. The error is

    file:/[file path] / [file name] .xsl: XML-22044: function (error) Extension error: Error invoking 'queryDatabase':'java.lang.NoClassDefFoundError: oracle/jdbc/OracleConnection '.

    It seems that it cannot find the ojdbc6.jar file, but I don't see where that should be added.

    Edit:

    OK, I realized that the extension functions XPath of Oracle do not appear in my XSLT Map Editor component palette. I also see that when I change the XPath of the oraext:query - database is highlighted by JDev as being invalid. I think my problem is with the extension being not loaded XPath functions.

    Thanks in advance.

    Steve

    OK, after working with the support of the Oracle, the answer is that the ojdbc6.jar did indeed need to be added to the configuration of JDeveloper 12.1.3. To do this the following line was added at the end of the jdev.conf file:

    AddVMOption - Xbootclasspath/r:... /... /.. /oracle_common/modules/Oracle.jdbc_12.1.0/ojdbc6.jar

    The jdev.conf file is located in your Oracle_Home\jdeveloper\jdev\bin directory. Don't forget to adjust the relative path to match your environment. In addition, please note that the only spaces in the AddVMOption line are a space immediately after "AddVMOption".

    Another concern in this thread that the functions of data base in the XPath Group advanced components from the component Palette was missing. The groups Advanced general XPath XPath and XSLT components model will appear only in the component Palette if the application is a SOA application.

    A score more. I don't know if Oracle sees this as a bug and the ojdbc6.jar to be in the classpath without the user set it up like that in the jdev.conf. If it's a bug, and then if all goes well it will be resolved in a future release, and this configuration will be necessary.

  • Last queries related to GemFire

    Hello

    I'm a java devloper trying to explore Gemfire. I downloaded the free trial 60 days with which I operated on almost all QuickStart samples and crossed a few docs provided by stone gem/vmWare. Yet I'm not clear on a few things, can someone please answer my questions below given:

    1 (for example), I have a Repo repository, a service layer Srvc and n number of clients Clnt which sends m number of queries each layer rev. The service layer exposes a number of services through Web services, making use of

    serialization, triage/demarshalling & conversion of data using jaxb object.

    Now, is it possible to replace the layer srvc GemFire somehow? Does

    GemFire provide all or part of the features mentioned above, if so, how

    We can explore with examples. All link or document to meet the needs mentioned above would be helpful and depending on which we may decide to

    Buy a license to the same version.

    2 have we not all means to run our customCode (a service of data recovery

    repo) with the help of FunctionExecution, if so how? and if knowledge that (FunctionExecution) only work on the code of Gemfire?

    3. don't Gemfire provides support to expose Web services (by any medium SOAP/REST etc.)?

    4. don't Gemfire provides any support/APIs for execution of database queries (by any means)?

    5. any other aid associated with GemFire apart from the docs/pdf file which itself is old enough?

    Thank you

    Aqamah

    Hi Aqamah

    Here are some answers / suggestions to your questions:

    1. definitely GemFire can play a role here. I suggest you take a look at some of the spring data (if you haven't already done so) that expose GemFIre with REST services and the persistence of GemFire via JPA data, among others.

    Spring GemFire data | SpringSource.org

    Data - REST of spring | SpringSource.org

    2. Yes. You mentioned that you had worked through the QuickStart samples that should also include an example of use of the function execution. Maybe if you have a more concrete example, we could give you more specific help.

    3 / 4. Not directly - see #1

    5. in addition, please take a look at the current literature: vFabric GemFire 7.0 Documentation

    -Jens

  • Tables of database error using Entity Framework mapping

    Hello!

    I am developing a project using the ODAC 11.2 module 4 and EF 5.0. I have the .edmx file and I had generated entities with EF 5.x DbContext generator model.

    The error occurs when trying to access one of the properties (postcode) of my entity 'address '. This column is a Number type (5) in the database, but it is mapped in the entity as the short type.

    I run this LINQ and I get the error: "the value was too large or too small for an Int16.

    var query = from b in the present. ADDRESS

    Select b.PC;

    Test of list < short? > = query8. ToList();

    I think it was a problem with the map. Could you help me?

    Thank you very much

    First, you must use ODAC 11.2 version 5 or higher. This version is certified with EF 5.

    Normally, Number (5) is mapped by default to an Int16. Not sure how you map it to a short circuit. In any case, if you explicitly want to map any type of data default data type, you can use the following mapping customization described here in the doc:

    ADO.NET Entity Framework and LINQ to Entities

Maybe you are looking for