Complex instruction AMOUNT giving erratic results! WHY!

This part of my request;

Sum (totalSCs) + (totalCalls) + ((TSLdays) * (WCG)) / (5) / (QTCG) AS PerCalls

give me a block erratic result... specifically 24.03 instead de.16

1 + 23 + (1 * 22) / 5) 176 =.16

I write this evil? Any help would be greatly appreciated!

(1 + 23 + (1 * 22 / 5)) 176 = 0.16...

Similarly,.

(SUM (totalSCs) + totalCalls + (TSLdays * WCG/5)) / QTCG AS PerCalls

Tags: ColdFusion

Similar Questions

  • Search for Finder not giving accurate results in El Capitian 10.11.3

    When I perform a simple search in a single folder = containing only the .docx files, I don't get accurate results.

    Example: I look up a word = I type the word 'City' in the search box.

    I either get partial results = not all files that contain this word appear or zero results when I know for sure there are files that contain the word that do not appear in the search list.  As indicated in that they are all files .docx, same format even police etc.

    Why search is not recognize the word city in certain folders?

    PS - I reindexed as suggested in some post on the web as well as in this community. Repair permissions etc.

    Not sure if this is important, but the folders and files in question are in folders OneDrive.  But the same thing is happening elsewhere too.

    This has happened for a few months now, but I don't have time to really look into it.  Not sure if the recent updates affected it.  But it worked well upward until then.

    OSX 10.11.13

    on a MacBook Pro

    It has always amazed me that Apple & Microsoft formerly fast friend playmates when he cam to the Office products = MacTopia, they called it.

    I'm guessing that there is some level of "lack of communication" concerning the OneDrive folder and even .docx files themselves.

    I'll ask around

  • UNION and UNION ALL giving multiple result sets even if INTERSECT does not lines.

    Hello

    I have a set of two queries. I used the UNION to join the result set. When I used UNION ALL, I get a different result set.

    BT when I use INTERSECT, I m not getting all the lines.

    SO, which I guess is, as operation INTERSECT isn't Govind all the lines, then the UNION and UNION ALL of the result sets must be simliar.

    But I m getting different result sets.

    Please guide me.

    Thank you.

    Hello

    UNION returns separate lines; UNION ALL returns all rows that produce queries.

    INTERSECT has nothing to do with it.  You can have the lines in a single query.  For example

    Job SELECTION

    FROM scott.emp

    UNION - ALL THE

    SELECT 'FUBAR '.

    DOUBLE;

    In this example, there is no overlap between the 2 queries (INTERSECT would have 0 rows).

    UNION produces 6 lines, because the query at the top of the page produces 5 distinct lines (of 14 total ranks) and the background query 1.

    UNION ALL product lines 15: 14 of the request from top and 1 of the request from the lower part.

    I hope that answers your question.

    If not, post a test script (if necessary) and complete, including some UNION, UNION ALL queries INTERSECT.  Post of the CREATE TABLE and INSERT statements for all tables using those queries (with the exception of the commonly available rtables, such as those of the scott schema) and a specific question, such as "the UNION query all product...» I expect the UNION query to produce... because... but instead, it produces... Why is this?  It seems contractict... manual which says that... ».

  • CONNECT BY giving different results / duplicate records

    I have a hierarchy like this:

    UserTable-> username, treename_code

    username treename_code

    Scott TREE

    Henry TREE

    TREENAMES-> treename_code

    treename_code

    TREE

    subtree-> id, parent_id, treename_code

    ID parent_id treename_code

    1 null TREE

    2 1 TREE

    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status, 
           level, 
           subtree.id as value, 
           SYS_CONNECT_BY_PATH(subtree.id, '/') Path
      from usertable,
           treenames,
           subtree
      where upper(usertable.username)=upper(:username)
        and treenames.treename_code=usertable.treename_code
        and subtree.treename_code=treenames.treename_code
      start with subtree.parent_id is null
      connect by subtree.parent_id=prior subtree.id;
    
    

    Database version: 11.2.0.1.0

    According to the user, the order of results is different: we give values:

    1-2-2 (double on '2')

    gives another

    2 1-2 (always double on '2')

    BUT on another database, same version, it gives:

    1-2 (which is expected)

    Any idea?

    This is essentially because of the what the predicate to filter for the USER name is applied. If you are using an Inline view, you will get the desired result.

    Check this. I just simplified your query by removing just the other columns in the select list. But the CONNECT BY and are of the join of the table intact.

    SQL > select subtree.id
    2 usertable,
    3 treenames,
    subtree 4
    5 where upper (usertable.username) = upper ('scott')
    6 and treenames.treename_code = usertable.treename_code
    7 and subtree.treename_code = treenames.treename_code
    8 start
    9 with subtree.parent_id is null
    10 connect
    11 by prior subtree.id = subtree.parent_id;

    ID
    ----------
    2
    1
    2

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ----------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |           |       |       |     7 (100) |          |
    |*  1 |  FILTER |           |       |       |            |          |
    |*  2 |   CONNECT BY WITH FILTERING |           |       |       |            |          |
    |*  3 |    HASH JOIN |           |     2.   102.     7 (15) | 00:00:01 |
    |   4.     THE CARTESIAN MERGE JOIN.           |     2.    90.     4 (0) | 00:00:01 |
    |*  5 |      TABLE ACCESS FULL | SUBTREE.     1.    32.     2 (0) | 00:00:01 |
    |   8 2 SORT OF BUFFER.           |     2.    26.     2 (0) | 00:00:01 |
    |   7.       TABLE ACCESS FULL | USERTABLE |     2.    26.     2 (0) | 00:00:01 |
    |   3 ×     TABLE ACCESS FULL | TREENAMES |     1.     8-2-2 (0) | 00:00:01 |
    |*  9 |    HASH JOIN |           |     1.    51.     7 (15) | 00:00:01 |
    |  10.     THE CARTESIAN MERGE JOIN.           |     1.    45.     4 (0) | 00:00:01 |
    | * 11 |      HASH JOIN |           |       |       |            |          |
    |  12.       CONNECT PUMP |           |       |       |            |          |
    |  13.       TABLE ACCESS FULL | SUBTREE.     1.    32.     2 (0) | 00:00:01 |
    |  14.      KIND OF BUFFER.           |     2.    26.     2 (0) | 00:00:01 |
    |  15.       TABLE ACCESS FULL | USERTABLE |     2.    26.     2 (0) | 00:00:01 |
    |  16.     TABLE ACCESS FULL | TREENAMES |     1.     6.     2 (0) | 00:00:01 |
    ----------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 Filter (SUPERIOR ("USERTABLE".) "USER NAME") = "SCOTT") "
    2 - access("SUBTREE".") PARENT_ID "= NULL PREREQUISITE)
    3 - access("TREENAMES".") TREENAME_CODE '=' USERTABLE '. "" TREENAME_CODE "AND
    "SUBTREE". "" TREENAME_CODE "=" TREENAMES. " ("' TREENAME_CODE")
    5 - filter("SUBTREE".") (PARENT_ID' IS NULL)
    9 - access("TREENAMES".") TREENAME_CODE '=' USERTABLE '. "" TREENAME_CODE "AND
    "SUBTREE". "" TREENAME_CODE "=" TREENAMES. " ("' TREENAME_CODE")
    11 - access("SUBTREE".") PARENT_ID "= NULL PREREQUISITE)

    If you see that the filter for the USER name is applied after that CONNECT BY runs. But if I use a view online. then check it

    SQL > select id
    2 starting at)
    3. Select subtree.id
    4, subtree.parent_id
    5 usertable,
    6 treenames,
    subtree 7
    8 where upper (usertable.username) = upper ('scott')
    9 and treenames.treename_code = usertable.treename_code
    10 and subtree.treename_code = treenames.treename_code
    11          )
    Starter 12
    13 with parent_id is null
    14 connect
    15 by parent_id = prior id;

    ID
    ----------
    1
    2

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------------------------
    ---------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ---------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |           |       |       |     7 (100) |          |
    |*  1 |  CONNECT BY WITH FILTERING |           |       |       |            |          |
    |*  2 |   HASH JOIN |           |     1.    51.     7 (15) | 00:00:01 |
    |   3.    THE CARTESIAN MERGE JOIN.           |     1.    45.     4 (0) | 00:00:01 |
    |*  4 |     TABLE ACCESS FULL | USERTABLE |     1.    13.     2 (0) | 00:00:01 |
    |   5.     KIND OF BUFFER.           |     1.    32.     2 (0) | 00:00:01 |
    |*  6 |      TABLE ACCESS FULL | SUBTREE.     1.    32.     2 (0) | 00:00:01 |
    |   7.    TABLE ACCESS FULL | TREENAMES |     1.     6.     2 (0) | 00:00:01 |
    |*  8 |   HASH JOIN |           |     1.    51.     7 (15) | 00:00:01 |
    |   9.    THE CARTESIAN MERGE JOIN.           |     1.    45.     4 (0) | 00:00:01 |
    | * 10 |     HASH JOIN |           |       |       |            |          |
    |  11.      CONNECT PUMP |           |       |       |            |          |
    |  12.      TABLE ACCESS FULL | SUBTREE.     1.    32.     2 (0) | 00:00:01 |
    |  13.     KIND OF BUFFER.           |     1.    13.     2 (0) | 00:00:01 |
    | * 14 |      TABLE ACCESS FULL | USERTABLE |     1.    13.     2 (0) | 00:00:01 |
    |  15.    TABLE ACCESS FULL | TREENAMES |     1.     6.     2 (0) | 00:00:01 |
    ---------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - access("SUBTREE".") PARENT_ID "= NULL PREREQUISITE)
    2 - access("TREENAMES".") TREENAME_CODE '=' USERTABLE '. "" TREENAME_CODE "AND
    "SUBTREE". "" TREENAME_CODE "=" TREENAMES. " ("' TREENAME_CODE")
    4 filter (SUPERIOR ("USERTABLE".) "USER NAME") = "SCOTT") "
    6 - filter("SUBTREE".") (PARENT_ID' IS NULL)
    8 - access("TREENAMES".") TREENAME_CODE '=' USERTABLE '. "" TREENAME_CODE "AND
    "SUBTREE". "" TREENAME_CODE "=" TREENAMES. " ("' TREENAME_CODE")
    10 - access("SUBTREE".") PARENT_ID "= NULL PREREQUISITE)
    14 filter (SUPERIOR ("USERTABLE".) "USER NAME") = "SCOTT") "

    Here, the filter is applied before CONNECT you IS executed. This is the reason why you get the unexpected result in your query. Use the online mode.

  • a text showing the amount of the result

    Hi all

    I need a text to display something like "Total Sales Amount is $xxx.00".

    "$xxx.00" are in fact the result, how do?

    Thank you
    Ling

    Just use set option view narrative it as below

    Total Sales Amount is @1

    @1--> will refer your measurement column, otherwise you can use the PivotTable, then measurement of column accepts the section tag in the section lines can change the column header label then this will give you desired results.

    screen of o/p
    http://Tinypic.com/r/11ujel5/6

    Thank you
    Deva

  • Erratic results, looking for comments

    Sometimes the research says works and sometimes it doesn't. Here are the results of the two searches of "Spades" played separated by less than a minute.

    Has anyone observed this behavior? Any suggestions on how to remedy this?

    Anyone?

  • assessment polynomial vi giving inconsistent results

    I'm looking at an easier method to evaluate polynomial, rather than using formulas nodes that I currently use.  I found the "polynomial evaluation vi' who would think based on aid would be able to calculate the result of a polynomial Exhibitor multi.

    Currently, I would do something like the following in a node of the formula:

    float64 D1 = 0.387481063640E - 01;
    float64 D2 = 0.332922278800E - 04;
    float64 D3 = 0.206182434040E - 06;
    float64 D4 = - 0.218822568460E - 08.
    float64 D5 = 0.109968809280E - 10;
    float64 D6 = - 0.308157587720E - 13;
    float64 D7 = 0.454791352900E - 16;
    float64 D8 = - 0.275129016730E - 19;

    DC = (V * D1) +(D2*V**2) +(D3*V**3) +(D4*V**4) +(D5*V**5) +(D6*V**6) +(D7*V**7) +(D8*V**8).

    I tried the same calculation by writing a little VI which used the polymomial assessment vi and get seriously incorrect results.  (my vi attached).

    Research in the evaluation of the polynomial vi, honestly, I don't know how it is supposed to work, unless he's trying to do something completely different that I do.   (With the help of labview 2015)

    I'm open to suggestions here.  Thank you!  Mitch

    The first table is the constant term (V ^ 0 = 1), if you need to add an element that is equal to zero in the table of coefficients.

    The polynomial is defined as:

    DC = D0 + (V * D1) +(D2*V**2) +(D3*V**3) +(D4*V**4) +(D5*V**5) +(D6*V**6) +(D7*V**7) +(D8*V**8)

    In your case, D0 = 0, but there still need to be there.

    ... and are not the constant diagram EXT. As you can see about to constraint, it will be converted in any case to DBL.

  • SimpleDateFormat giving different results for the same string in the form

    I use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/SimpleDateFormat.html for formatting my date and time fields.

    I got a bug report that a device on English (UK) has a problem where the time turns off the screen, and I was able to reproduce this on device and Simulator.

    It's the pattern string that I use: hh:mma

    (hour 2 digits, colon, minute 2-digit and one letter for 'a' or 'p')

    English or r I get the result you want, for example 12: 12 p '

    "On English (UK), I get two letters for one / p marker, for example ' 12:12.

    (as if I had used 'hh:mmaa').

    What is the desired behavior? My client doesn't like it and wants a look and feel unique, with only one letter for 'a' or 'p', and I'm a little hesitatant to use aubstring...

    I usually do so, but our customer asked specifically localized to the date and time formatting.
    I have the model in my resource files, as the requested values are not easy to manage with the dateformat standard.

    Well, I have submitted comments on the entry of doc API, the doc is fake or the OS has a bug.
    I use substring if the string endsWith (am or pm) now...

  • Internal CDT generator giving different results of compilation on successive attempts of compilation

    Hello, I'm new to developing for BlackBerry 10 and I was wondering if someone could help me with this problem.  A little background first - I am trying to transfer an existing BB10 iOS app, the source is all written in C/C++ so I use the native SDK 10.0.9.1673.  I use the IDE on a Mac (OSX 10.8.2).

    I've set up a project GLES2.0 skeleton by using the 'new blackberry project' Assistant and have linked folders that contain the source and header files (by using the project properties-> C/C++-> component paths of access and symbols General and location tabs includes / Source). The source files and header are all in separate files in the same directory level as the project (because of the way our structure of project works) file, although I believe that this should make a difference.

    Of course, at this point, I don't expect the project to compile properly, but my problem is that whenever I try to compile the project, it seems to compile another group of files, with the result that I get a different error whenever I try to compile, even when I have not changed the code. I guess this isn't normal behavior, as it makes it very difficult to identify and solve problems.  Does anyone have any suggestions as to what could be the problem?  I wonder if I need to specify some settings or something like that?

    A final bit of information, I get warnings directive #import (which is used in a number of places in the version of iOS) is obsolete. I don't know if it's related or not - although if it is I don't know what can be done beyond big passage to using #includes all over the place?

    Thanks in advance for any help that anyone can give,

    Just to doublecheck - you put all your src file right?

    If you have too many mistakes and too many files, then it is normal to get different error/files each time. Just start correct and gradually you will get the same set of errors-)

    Okay, I don't know if that's normal or not normal, but I took it as is (I hit the same problem, great project to port).

  • Roll on the text occasionally comment on erratic results, for example, first highlighted word and then no other product even if the mouse has not been published.  How can I fix it?

    I have Acrobat Pro DC and Windows 10.  When you try to make editing comments, I find almost impossible to get the words marked (by rolling on it with the mouse button).  The blue highlight climbs around the word to Word or closed unexpectedly after rolling on a single word, even if the mouse button was released.

    In addition, now that the strike and replacement tool has been eliminated, you are supposed to perform the same operation on the text to replace and, once the text highlighted blue, simply start typing the new text.  It works not.  After finally getting the right text marked, I start typing, and nothing happens.  I might have to select a tool (for example, strike-out), use and remove the strike-out, before the operation crossed out - replace works again.

    I have used earlier versions of Acrobat Pro (on Vista) without such problems.

    The problem I described with text selection was not with Acrobat, but rather with a failing wireless mouse.  Replacing the mouse seems to have resolved.  See erratic mouse, by selecting the problem of text - Logitech Forums

  • V$ SQL shows erratic results for extract folder

    Hello

    I came across a scenario where the gathering statistical table checking its value of cursor.

    I have here for the first time (line 02) queries the table V$ SQL I have only one entry of the cursor.

    And then when I again run same sql and checked V$ SQL again what I got is another record (line 27) for the same SQL_ID.

    Yet once I check it twice more, but all I got is only two records.

    I was questioning this table for this kind of scenario for a week.

    But this is the first time I've had two records in the table V$ SQL for same SQL_ID

    Your contribution would be very appreciated.

    SQL> --See first excution, it'll illustrate Hard parse, first load and execution
    SQL>  select count(1) from foo31;
    
    
      COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
            23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    
    
    SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';
    
    
    CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    ------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    
    
    SQL> --Second excution, then showed soft parsing
    SQL> select count(1) from foo31;
    
    
      COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
            23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    
    
    SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';
    
    
    CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    ------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    
    
    SQL>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    You did not include the sql code in your query. How do we know that you don't see two pieces of identification different sql in your results?

  • After you download ADOBE READER, I received instruction to click on it to open it, instead, I get instructions to download, once again, why?

    First of all, I love my Adobe Creative cloud... so far no real problems, but today, my nephew who is a student at the University of New YORK, has problems with the download of Adobe Reader so that he could "sign" a digital signature for his transcripts, after following the instructions, he found himself in a sort of cycle from Adobe and to repeat information... he could not run the software or read the transcript. And like a good aunt that I am, I tried to help him and found that I too had the same questions.

    Could someone be so kind to explain this phenomenon and help so that the software will work?  Oh and one thing... you must register for the monthly subscription to use Adobe Reader software?

    First of all, Adobe Reader or Acrobat Reader is 100% free; There is no cost to download, install or use.

    Download the http://get.adobe.com/reader/enterprise/ Installer - there should be no problem to run it once downloaded on your computer.

    If your problems persist, tell us your OS & version.

  • Query XML giving NULL result - please help!

    Hello

    I am a newbie in XML and I try to extract the XMLType column information.
    I am using Oracle 11g

    I use the table is

    CREATE TABLE 'PRODUCTS '.
    (
    'ID' VARCHAR2 (10 BYTE),
    "CUSTDOC" 'SYS '. "" XMLTYPE.
    )
    _________________________________________________________________

    I am the slot loading XML file in the CUSTDOC column

    < report xmlns = "http://developer.cognos.com/schemas/report/6.0/."
    expressionLocale = "en - to the" >
    [< modelPath > / content/folder[@name='Packages']/folder[@name='Prod']/package[@name='ORGS']/model[@name='model'] < / modelPath >
    < drillBehavior modelBasedDrillThru = "true" / >
    < query >
    < application name = "Query1" >
    < source >
    < model / >
    < / source >
    < selection >
    < name of dataItem = aggregate 'Incident ID' = 'none' rollupAggregate = 'none' >
    < expression > [ABC]. [XYZ]. [Incident] < / expression >
    < / dataItem >
    < / selection >
    < detailFilters >
    < detailFilter >
    < filterExpression > [ABC]. [XYZ]. [Company] = "SOCIÉTÉTEST" < / filterExpression >
    < / detailFilter >
    < / detailFilters >
    < / query >
    < / queries >
    < layouts >
    < layout >
    < reportPages >
    < name = 'Page1' page >
    < style >
    < defaultStyles >
    < defaultStyle = "pg" refStyle / >
    < / defaultStyles >
    < / style >
    < pageBody >
    < style >
    < defaultStyles >
    < defaultStyle = "pb" refStyle / >
    < / defaultStyles >
    < / style >
    < content >
    < refQuery list = "Query1" horizontalPagination = "true" name = "List1" >
    < style >
    < defaultStyles >
    < defaultStyle = 'ls' refStyle / >
    < / defaultStyles >
    < value CSS = "border-collapse: collapse" / >
    < / style >
    < more >
    < listColumn >
    < listColumnTitle >
    < style >
    < defaultStyles >
    < defaultStyle = 'lt' refStyle / >
    < / defaultStyles >
    < / style >
    < content >
    < textItem >
    < dataSource >
    < dataItemLabel refDataItem = "The Incident ID" / >
    < / dataSource >
    < / textItem >
    < / Summary >
    < / listColumnTitle >
    < listColumnBody >
    < style >
    < defaultStyles >
    < defaultStyle = 'lc' refStyle / >
    < / defaultStyles >
    < / style >
    < content >
    < textItem >
    < dataSource >
    < dataItemValue refDataItem = "The Incident ID" / >
    < / dataSource >
    < / textItem >
    < / Summary >
    < / listColumnBody >
    < / listColumn >
    < / more >
    < / list >
    < / Summary >
    < / pageBody >
    < Entetepage >
    < content >
    < block >
    < style >
    < defaultStyles >
    < defaultStyle = 'ta' refStyle / >
    < / defaultStyles >
    < / style >
    < content >
    < textItem >
    < style >
    < defaultStyles >
    < defaultStyle = "tt" refStyle / >
    < / defaultStyles >
    < / style >
    < dataSource >
    < staticValue / >
    < / dataSource >
    < / textItem >
    < / Summary >
    < / block >
    < / Summary >
    < style >
    < defaultStyles >
    < defaultStyle = "ph" refStyle / >
    < / defaultStyles >
    < value = CSS "padding-bottom: 10px" / >
    < / style >
    < / pageHeader >
    < pageFooter >
    < content >
    < table >
    < tableRows >
    < tableRow >
    < tableCells >
    < tableCell >
    < content >
    < date >
    < style >
    < dataFormat >
    < dateFormat / >
    < / dataFormat >
    < / style >
    < / date >
    < / Summary >
    < style >
    < value="vertical-align:top;text-align:left;width:25%"/ CSS >
    < / style >
    < / tableCell >
    < tableCell >
    < content >
    < pageNumber / >
    < / Summary >
    < style >
    < value="vertical-align:top;text-align:center;width:50%"/ CSS >
    < / style >
    < / tableCell >
    < tableCell >
    < content >
    < time >
    < style >
    < dataFormat >
    < timeFormat / >
    < / dataFormat >
    < / style >
    < / time >
    < / Summary >
    < style >
    < value="vertical-align:top;text-align:right;width:25%"/ CSS >
    < / style >
    < / tableCell >
    < / tableCells >
    < / tableRow >
    < / TableRow >
    < style >
    < defaultStyles >
    < defaultStyle = "CT" refStyle / >
    < / defaultStyles >
    < value="border-collapse:collapse;width:100%"/ CSS >
    < / style >
    < /table >
    < / Summary >
    < style >
    < defaultStyles >
    < defaultStyle = "pf" refStyle / >
    < / defaultStyles >
    < value = CSS "padding-top: 10px" / >
    < / style >
    < / pageFooter >
    < / print this page >
    < / reportPages >
    < / page layout >
    < / page layout >
    < XMLAttributes >
    < name XMLAttribute = "RS_CreateExtendedDataItems" value = "true" output = "no" / >
    < name XMLAttribute = "listSeparator' value = ',' output ="no"/ >
    < / XMLAttributes >
    < / report >

    ____________________________________________________________________________________

    I run the query below

    SELECT SYS. XMLTYPE. GETCLOBVAL (SYS. XMLTYPE. Extract ("CUSTDOC",'/ Report/Queries/Query/Selection/DataItem/expression / Text () ')) 'CUSTDOC' OF 'PRODUCT '.

    and I await the result below

    CUSTDOC
    ---
    [ABC]. [XYZ]. [Incident]

    but I am NOTHING.

    Please help me. Don't know what I'm doing wrong here.

    Kind regards
    Ravi

    Hi Ravi,

    Don't know what I'm doing wrong here.

    Two things:

    -EXTRACT function is deprecated--> use XMLQuery or XMLTable rather
    -You are missing the namespace declaration

    See if it works for you:

    SQL> SELECT XMLCast(
      2           XMLQuery(
      3             'declare default element namespace "http://developer.cognos.com/schemas/report/6.0/"; (: :)
      4              /report/queries/query/selection/dataItem/expression'
      5             passing t.custdoc
      6             returning content
      7           )
      8           as varchar2(30)
      9         ) as expr
     10  FROM product t ;
    
    EXPR
    ------------------------------
    [ABC].[XYZ].[Incident]
     
    
  • Format text size not changing results - why?

    Looks like it should be simple enough, and I must have done several times before with success.  Am I missing something obvious?

    The text appears, but he needs to show more than it is.  He appears constantly about size 10, no matter what I set the size, the same "size = 100 '...

    public function {StimLetter(data:Object)})

                   

                   format

    var format: TextFormat = new TextFormat();

    format.font = "Verdana";

    format.color = 0x000000;

                   format.size = 100;

                   

                   text

    stimText = new TextField();

    stimText.text = data.strng;

    stimText.autoSize = TextFieldAutoSize.CENTER;

                   

    stimText.defaultTextFormat = format;

                   

    addChild (stimText);

    }

    Data.strng is simply a string from an array.

    I'm missing something here?

    Try to set the value of text AFTER you have assigned the default format (and other TexField properties).

  • can we do complex arithmetic in xml and access in labview?

    Hello

    I'm using LabVIEW 8.5. I did 1 project how far I used Excel to perform complex arithmetic and then read results

    Thanks to labview. I'm just curious about Xml. It can be used for what purpose? What is a good alternative for excel? because I read on the internet

    that the execution of xml is faster than the .doc and .xls files?  Can we use as database for labview application?

    Help, please

    Thank you

    Gerard

    Transport as in a format for transmitting data from one PC to another or one application to another.

    Excel is a spreadsheet.  It stores its data in a strictly binary file with the extension .xls format.  The latest applications of MS Office can also store their data in a text based XML file format and have extensions such as .xlsx.

    XML is just a data storage format, it has nothing to do with the calculations.  LabVIEW can make calculations as complicated as Excel.  I would say it is complicated even more features that the application MS Excel does not.

    Why are you concerned an XML file?  Instead of comparing apples and oranges (i.e. formats of files of applications), please tell us what kind of calculations you are trying to do.  The calculations have absolutely nothing to do with the file formats.

Maybe you are looking for