BI Publisher treatment of Null Values in total

Hi guys,.

I need help in the treatment of nulls in the totals.

Backend table: -.

Day

Hour

A1

A2

A3

1

00

3

1

01

4

1

02

3

4

1

03

4

6

2

00

3

5

2

01

4

7

2

02

3

2

03

4

Output to the exception: - (based on the day totals)

Day

A1

A2

A3

1

14

-

10

2

14

-

12

I can't get A2 and A3 total value except production based on day. Can someone help me please to solve this.

Thank you much in advance.

-Raj

Code below you will get the desired result

-

-

-

Attached schema predetermined as for your refrence.

Tags: Business Intelligence

Similar Questions

  • Alter the State of Session? -Apex form publishes text with null value

    Recently I discovered a problem with our Apex facility in which all selected as source for a text field value will eventually be displayed as a null value in the database.
    We run APEX version 3.2 in an Oracle 10.2.0.4 database using Oracle HTTP Server from 10 g companion disc.

    At first glance, everything seems to work as expected; I created a simple table called "oracle_sr" with 2 columns, as both not null:

    SQL > desc capacity.oracle_sr
    Name Null? Type
    ORACLE_SR_ID NOT NULL NUMBER
    TIMESTAMP NOT NULL DATE

    In APEX, the form wizard has been used to create a form on this table.
    After execution of the pages and you enter a value for the timestamp field, I can create folders without problem.

    The question arises when I choose a source for the timestamp field value.
    All the source options causes the same error (including a static value) so I'll focus on the SQL query to the source as:

    Select sysdate double;

    This should replace the date system in the area of text timestamp when the page is executed.
    As expected, the value appears in the text box, but when I submit the form to create the folder I get the error:

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    I have worked with APEX for quite awhile and have successfully used this technique in many applications but just to begin to see this error in recent days. What's particularly odd about this message is by default postings "not null" created by the form wizard sees timestamp class as having a value. Session state information included below reports a value yet the database is to launch the ORA-01400.

    Someone has a similar problem? I have spent a good amount of time to try looking for this problem but can't seem to find any similar messages.

    I have included the release of my test page, debugging from what I see, it seems to be a value associated with the filed timestamp:

    0.00: a C C E P t: request = "CRΘER."
    0.00: metadata: go look up the definition and application shortcuts
    0.00: NLS: wwv_flow.g_flow_language_derived_from = FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language = en - us
    0.00: alter session set nls_language = "AMERICAN."
    0.00: alter session set nls_territory = 'AMERICA '.
    0.00: NLS: CSV charset = WE8MSWIN1252
    0.00:... "NLS: decimal separator Set =". »
    0.00:... NLS: Set NLS Group separator = ",".
    0.00:... NLS: Date Format Set = "DD-MON-RR.
    0.01:... Setting session time_zone in-06: 00
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.01:... NLS: Date Format Set = "DD-MON-RR.
    0.01: fetch database session state
    0.01:... Check the owner of the 2303701116904676 session
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.02:... NLS: Date Format Set = "DD-MON-RR.
    0.02:... Check for expiration of the session:
    0.02:... Metadata: Page Fetch, calculation, process and branch
    0.02: session: extract information from session header
    0.02:... Metadata: Retrieve the attributes of the page for application 109, page 50
    0.02:... Validate page affinity point.
    0.02:... Check off the items hidden_protected.
    0.03:... Check authorization security systems
    0.03: session state: Save elements of form and p_arg_values
    0.03: *... Session state: you save newValue of the object "P50_ORACLE_SR_ID" = "" "escape_on_input ="N"* 0.03: *..." " Session state: you save the object "P50_TIMESTAMP" = newValue ' 26 May 09 "" escape_on_input = "N" * ""»
    0.03:... Session state: Save "P0_CURRENT_PERSONNEL_ID" - registration of same value: "1."
    0.03:... Session state: Save "P0_OFFSET" - registration of same value: "0".
    0.03:... Session state: Save "P0_ACTIVE_WEEK" - registration of same value: "24 May 09".
    0.03: point of treatment: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: branch point: BEFORE_COMPUTATION
    0.03: point of calculation: AFTER_SUBMIT
    0.03: tabs: make the connection for the tab queries
    0.03: branch point: BEFORE_VALIDATION
    0.03: perform validations:
    0.03:... Point Not Null Validation: P50_TIMESTAMP
    0.04: branch point: BEFORE_PROCESSING
    0.04: point of treatment: AFTER_SUBMIT
    0.04:... Process 'PK get': PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin C1 in (select ORACLE_SR_SEQ.nextval double next_val) loop return c1.next_val; end loop; end; Start: P50_ORACLE_SR_ID: = get_pk; end;
    0.04:... * session state: saved point new value "P50_ORACLE_SR_ID" = "6."
    0.04:... Treat "Line of ORACLE_SR process": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER #:ORACLE_SR:P50_ORACLE_SR_ID:ORACLE_SR_ID | IUD
    0.04: see the error page...
    0.04: execute rollback...

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    Cannot process the row in the ORACLE_SR table.
    Back by demand.

    Any thoughts would be appreciated.

    Thank you

    Justin.

    If you have changed the Source Type of an element of database column to something else, so he cannot participate in the automated line choreography Fetch/automatic line processing (DML). You must leave the Type of Source, as it was and change the default value of the element fill when the ARF process retrieves a null value for the column.

    Scott

  • Properties: Treatment of NULL values

    I wanted to ask you how you deal with NULL values, on the properties of JavaFX.

    Properties of the wrapper for the primitive data types like SimpleIntegerProperty or SimpleBooleanProperty Don t accepts NULL values.

    Example:

    1. IntegerProperty integerProperty = new SimpleIntegerProperty() )
    2. integerProperty. setValue (null) ;
    3. System. out. println () integerProperty. getValue ());

    Output is 0 (default value for "int").

    I think the primitive property wrappers (IntegerProperty, BooleanProperty and friends) as of the wrappers for primitive types. Probably they shouldn't really inherit WritableValue as which allows the call to setValue with a type reference, but I think that indigestion API would be worse than the implementation of setValue with a slightly incorrect signature. I would just avoid defining a wrapper of primitive type to null property: If you want to restrict yourself using set (.) instead of setValue (...) you are forced to spend in the primitive type: either you cannot pass null.

    If you want an integer property where null values are handled in an intuitive manner, use ObjectProperty .

    The test below shows that call setValue (null) on IntegerProperty assigns the default value. (Although I don't see the behavior documented anywhere).

    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    
    public class PrimitivePropertyWrapperTest {
    
        public static void main(String[] args) {
            IntegerProperty integerProp = new SimpleIntegerProperty();
            integerProp.addListener(new ChangeListener() {
    
                @Override
                public void changed(ObservableValue observable,
                        Number oldValue, Number newValue) {
                    System.out.println("integerProperty changed value from "+oldValue+" to "+newValue);
                }
            });
    
            ObjectProperty objectProp = new SimpleObjectProperty<>();
            objectProp.addListener(new ChangeListener() {
    
                @Override
                public void changed(ObservableValue observable,
                        Integer oldValue, Integer newValue) {
                    System.out.println("objectProperty changed value from "+oldValue+" to "+newValue);
                }
            });
    
            integerProp.setValue(null);
            integerProp.setValue(1);
            System.out.println("setting integerProp back to null:");
            integerProp.setValue(null);
            System.out.println("setting integerProp to 0:");
            integerProp.setValue(0);
            integerProp.setValue(null);
    
            objectProp.setValue(null);
            objectProp.setValue(1);
            objectProp.setValue(null);
            objectProp.setValue(0);
            objectProp.setValue(null);
    
        }
    
    }
    
  • Treatment of Null values from database

    Hi all

    I created a form very simple record insertion using dreamweaver for an online store.

    According to some products, a field can be left blank. Problem is when I try and treat this this course comes with an error. "The 'colour_1' column cannot be null.

    How can I ignore it for some fields. And this creates a security risk?

    Please find the below coding.

    See you soon

    Tom

    <? php require_once('.. /.. / Connections/connProduct.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }


    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);


    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }


    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }


    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO product (product_ID, product_Name, product_Title, product_Height, product_Width, extra_Info, product_Price, delivery_Price, colour_1, colour_2, colour_3, colour_4, colour_5, colour_6, colour_7) VALUES (%s, %s %s %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", ")

    GetSQLValueString ($_POST ['product_ID'], "int").

    GetSQLValueString ($_POST ["'product_Name"], "text").

    GetSQLValueString ($_POST ['product_Title'], "text").

    GetSQLValueString ($_POST ['product_Height'], "text").

    GetSQLValueString ($_POST ['product_Width'], "text").

    GetSQLValueString ($_POST ['extra_Info'], "text").

    GetSQLValueString ($_POST ['product_Price'], "text").

    GetSQLValueString ($_POST ['delivery_Price'], "text").

    GetSQLValueString ($_POST ['colour_1'], "text").

    GetSQLValueString ($_POST ['colour_2'], "text").

    GetSQLValueString ($_POST ['colour_3'], "text").

    GetSQLValueString ($_POST ['colour_4'], "text").

    GetSQLValueString ($_POST ['colour_5'], "text").

    GetSQLValueString ($_POST ['colour_6'], "text").

    GetSQLValueString ($_POST ['colour_7'], "text"));


    @mysql_select_db ($database_connProduct, $connProduct);

    $Result1 = mysql_query ($insertSQL, $connProduct) or die (mysql_error ());


    $insertGoTo = 'index.php ';

    If (isset {}

    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;

    $insertGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $insertGoTo));

    }


    @mysql_select_db ($database_connProduct, $connProduct);

    $query_rsProduct = "SELECT * FROM lanterns.

    $rsProduct = mysql_query ($query_rsProduct, $connProduct) or die (mysql_error ());

    $row_rsProduct = mysql_fetch_assoc ($rsProduct);

    $totalRows_rsProduct = mysql_num_rows ($rsProduct);

    ? >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > Untitled Document < /title >

    < / head >


    < body > < form action = "" method = "get" > < / make > "

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >

    < table align = "center" >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > product name: < table >

    < td > < input type = "text" name = 'product_Name' value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > product title: < table >

    < td > < input type = "text" name = "product_Title" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > product height: < table >

    < td > < input type = "text" name = "product_Height" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = 'nowrap' align = 'right' > the product width: < table >

    < td > < input type = "text" name = "product_Width" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > additional Info: < table >

    < td > < input type = "text" name = "extra_Info" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > product price: < table >

    < td > < input type = "text" name = "product_Price" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > delivery price: < table >

    < td > < input type = "text" name = "delivery_Price" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > color 1: < table >

    < td > < input type = "text" name = "colour_1" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > color 2: < table >

    < td > < input type = "text" name = "colour_2" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > color 3: < table >

    < td > < input type = "text" name = "colour_3" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > 4 color: < table >

    < td > < input type = "text" name = "colour_4" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > 5 color: < table >

    < td > < input type = "text" name = "colour_5" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > 6 color: < table >

    < td > < input type = "text" name = "colour_6" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > 7 color: < table >

    < td > < input type = "text" name = "colour_7" value = "" size = "32" / > < table > "

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < input type = "submit" value = "Insert file" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "lantern_ID" value = "" / > "

    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($rsProducts);

    ? >

    Thread has been moved to the Dreamweaver application development forum, which deals with PHP and other issues aside server.

    sellador315 wrote:

    According to some products, a field can be left blank. Problem is when I try and treat this this course comes with an error. "The 'colour_1' column cannot be null.

    How can I ignore it for some fields. And this creates a security risk?

    In your database, change the definition of the column in which you might want to leave it empty with null. You can do this easily in phpMyAdmin by selecting the column you want to change on the Structure tab and clicking Change icon. Then select the Null checkbox, as shown in this screenshot:

    Allowing a column store null values is not a security risk.

  • detection of apex_item in javascript null value

    Request Express 3.2.0.00.27

    I have the javascript code that is called from a trigger of js on charge.
    I have a manually created form tablur here is the code for the form region:
    SELECT APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#') authid,
      apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    --  apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
      apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
      apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
      apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
      apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
      apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
      apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
      apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
      apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
      apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    --  apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
      apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
      apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
        
     FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
      AND c011 IN ('O','N','U','D')
    --order by c001
    If the column that is passed to in ('f15') is not null I want to change the display type to hidden and the t20data class. This I hope that this makes it visible, but not updateble.
    Otherwise when rendering I want to render with default values of the api apex_item for a LOV.

    I check a null like this:
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
     /*       elms.style.backgroundColor = 'yellow'; */
    if $v_IsEmpty(elms[i].value) {
    alert('The value is' + elms[i].value);
    }
    }
    }

    function changeProp(pCol) {
    var elms = document.getElementsByName(pCol);
    for (i=0; i< elms.length; i++) {
    /* elms[i].style.backgroundColor = 'yellow'; */
    if (elms[i].value == null or elms[i].value == '%null%') {
    alert('The value is' + elms[i].value);
    }
    }
    }
    The alert (  alert('The value is' + elms.value); is only used to verify I am readying the value correctly. WHen executed outside of the if clause it does show the correct value.

    However the code above is not execting when a new row is created and hence f15 should be null. In the code above you can see I have tried to check for a null value in two different ways with no success.

    Once it detects the null I would want to change the class to t20data and the type to hidden.

    I could do this in the report query, instead of using JavaScript, but nvl, nvl2and coalesce are better than decode for the treatment of NULL values:

    nvl2(
      c001,
      apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#'),
      apex_item.popup_from_lov(15, c001, 'AUTH_LOV', null, null, 0, null, null, null, 'YES', 'f15_' || '#ROWNUM#')) authid,
    

    The error message is due to the use of page focus of the cursor attribute, or some custom JavaScript that attempts to set the focus of cursor in an element that cannot be entered. If the focus of the cursor is set to 'First element on the page', try replacing it "do not focus cursor. (If this corrects the problem, but you want to focus on the first entrable element at the entrance to the page that you need to write some custom JS to do this).

  • NULL value in Radio buttons 11.1.1.6.2 OBIEE

    Hello

    I use OBIEE 11.1.1.6.2. When we create fast with radio buttons, I was able to learn a button with a NULL value.
    Even if add a where condition clause to restrict the values Null his watch upward.

    I have the same problem with the check box.

    Is this a Bug in this version?

    Thank your.
    MBVAnand

    Hello

    Uncheck the option 'nullable' for this column in the physical layer and restart presentation services. It should disappear.

    Paul
    http://total-bi.com

  • SQL query to restrict null values

    Hello

    I have the following table
    Procurement_id         estimate_end_date          revenue
    
    1                              01-oct-2012                   $1000
    2                              02-oct-2012                   $1500
    3                              01-dec-2012                   $300
    4                              01-jan-2013                    $500
    5                              21-Nov-2013                   $900
    .
    .
    .
    I want only the procurement_ids that have a date of estimated that between 30 and 60 days. and if its estimated finish date is within 30 days, I show that a column monthstoend as 1 and in the 60s would be 2.

    If the output would be something like
    ProcurementId   Monthstoend   revenue
              1                  1              $1000
              2                  1              $1500
              5                  2              $900
    Basically, I want to remove all null values. the query I came was

    Select
    procurement_id,
    (case when (estimated_end_Date - sysdate) < = 30 then 1)
    When (estimated_end_Date - sysdate) between 21 and 60, then 2
    on the other
    null
    end) montstoend
    recipes
    Of
    Table;


    Is there a way to eliminate NULL values in the same query. I know that we can query on top of this request and then to eliminate NULL values, but I was wondering if we can do it in the same query. I use a similar in a much larger request functionality, if want to avoid that if possible.

    Any suggestions?

    Thank you

    Published by: ryansun on September 26, 2012 01:08

    It's not fair...

    select procurement_id
          ,(case when (estimated_end_Date - sysdate) <= 30 then 1
                 when (estimated_end_Date - sysdate) between 31 and 60 then 2
            else null end) montstoend
          ,revenue
    from Table
    where estimated_end_Date - sysdate <= 60
    

    ?

  • Report shows a string "null" for null values.

    Hello

    I am new to BI Publisher and creating a report in the BI Publisher. In the game of null values, report prints as "null". I checked the query, it gives data blank (empty value) for null values. But in the report, it comes as value 'null' (string "null"). I need to show the report in the form of empty data for null values. Can you please help me to find the solution for this?

    Thank you much in advance.

    Concerning
    Garza.

    I responded to your cheque send only once.

  • CF10 active metrics logging but getting NULL values instead

    In an effort to troublshoot issues I'm having I activated the connection CFADMIN settings but this is what I see in the metrics.log file.  What gives?

    "Information","scheduler-1","11/13/13","15:59:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1737648152 Total memory: 2117206016 Active Sessions: 0"
    "Information","scheduler-1","11/13/13","16:00:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1565060456 Total memory: 2117206016 Active Sessions: 0"
    "Information","scheduler-3","11/13/13","16:01:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1634382744 Total memory: 2089222144 Active Sessions: 0"
    "Information","scheduler-2","11/13/13","16:02:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1532903104 Total memory: 2089222144 Active Sessions: 0"
    "Information","scheduler-0","11/13/13","16:03:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1371544704 Total memory: 2089222144 Active Sessions: 0"
    "Information","scheduler-2","11/13/13","16:04:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1193930792 Total memory: 2089222144 Active Sessions: 0"
    "Information","scheduler-3","11/13/13","16:05:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1749200240 Total memory: 2117664768 Active Sessions: 0"
    "Information","scheduler-3","11/13/13","16:06:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1614707664 Total memory: 2117664768 Active Sessions: 0"
    "Information","scheduler-2","11/13/13","16:07:54",,"Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: 21 Bytes received: null Bytes sent: null Free memory: 1485357392 Total memory: 2117664768 Active Sessions: 0"
    

    I found the answer here: ColdFusion 11 settings log NULL values. Chris Tierney

    Change the connector port in CFIDE (just underneath where you check "Enable logging of measures" to the one defined as the port of the AJP connector in server.xml - 8012 often.)  You need to restart coldfusion.

    Several ways to check a second time, I used

    grep - ir 'port connector' / opt/coldfusion10 /.

  • creating table of partition with null values

    Hello

    I have a table with 20 GB of data. I changed this table in the table to partition with partition of the range
    the column with which I took for range (date), holding the values null

    can I have a partition for null values?

    Hello

    CREATE TABLE ICBS. KNET_STMT_EXTRACT_NEW_P
    (
    SRVC_TYPE VARCHAR2 (200 BYTE),
    FILLER_1 VARCHAR2 (200 BYTE),
    RTE_STAT VARCHAR2 (200 BYTE),
    TRAN_DATE VARCHAR2 (200 BYTE),
    TRAN_TIME VARCHAR2 (200 BYTE),
    POST_DATE VARCHAR2 (200 BYTE),
    DATE OF REC_INSERT_DT,
    DATE OF PROCESSED_DATE,
    KNET_RECON_RESSON VARCHAR2 (100 BYTE),
    NEW_TRAN_DATE VARCHAR2 (10 BYTE),
    REASON VARCHAR2 (200 BYTE)
    REASON_IND NUMBER (5),
    NODE_ID VARCHAR2 (8 BYTE),
    PROGRAM_ID VARCHAR2 (8 BYTE),
    USER_ID VARCHAR2 (8 BYTE),
    TIME_STAMP DATE
    )
    ICBS TABLESPACE
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    LOGGING
    PARTITION BY RANGE (REC_INSERT_DT)
    (

    KNET_STMT_EXTRACT_NEW_P_DEC11 PARTITION VALUES LESS THAN (TO_DATE (' 2012-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
    LOGGING
    NOCOMPRESS
    ICBS TABLESPACE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    KNET_STMT_EXTRACT_NEW_P_JAN12 PARTITION VALUES LESS THAN (TO_DATE (' 2012-02-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
    LOGGING
    NOCOMPRESS
    ICBS TABLESPACE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    PARTITION KNET_STMT_EXTRACT_NEW_P_MVAL VALUES LESS THAN (MAXVALUE)
    LOGGING
    NOCOMPRESS
    TABLESPACE TBL_MAXVALUE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    )
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING
    ALLOW THE MOVEMENT OF THE LINE;

    Published by: hitgon on April 30, 2012 10:56

    Published by: hitgon on April 30, 2012 10:58

    Published by: hitgon on April 30, 2012 10:59

  • REGEXP_SUBSTR for the list delimited by commas with null values

    Hello

    I have a column that stores a list of values comma-delimited. Some of these values in the list may be null. I'm having some trouble trying to extract the values using the REGEXP_SUBSTR function when null values are present. Here are two things I've tried:
    SELECT
       REGEXP_SUBSTR (val, '[^,]*', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS P POS P P
    --- - --- - -
    AAA   BBB
    SELECT
       REGEXP_SUBSTR (val, '[^,]+', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS POS POS POS P
    --- --- --- --- -
    AAA BBB DDD FFF
    As you can see that neither calls work correctly. Anyone know how to change the regular expression pattern to handle null values? I tried various other models but could not get anyone to work in all cases.

    Thank you

    Martin
    -----
    http://www.ClariFit.com
    http://www.TalkApex.com

    Hi, Martin,.

    That's what you want:

    SELECT
       RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 1), ',') pos1
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 2), ',') pos2
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 3), ',') pos3
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 4), ',') pos4
      ,RTRIM (REGEXP_SUBSTR (val || ','
                          , '[^,]*,', 1, 5), ',') pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The query above works in Oracle 10 or 11, but in Oracle 11, you can also do it with only REGEXP_SUBSTR, without using RTRIM:

    SELECT
       REGEXP_SUBSTR (val, '([^,]*),|$', 1, 1, NULL, 1) pos1
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 2, NULL, 1) pos2
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 3, NULL, 1) pos3
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 4, NULL, 1) pos4
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 5, NULL, 1) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The problem with your first request was that he was looking for sub channels of 0 or more non-virgules. There was as a substring. consisting of 3 characters starting at position 1, he returned "AAA", as expected. Then there was an another substring, the 0 characters, starting at position 4, so it returned NULL. Then, there was a substring of 3 characters starting at position 5, so he returned 'BBB '.

    The problem with your 2nd request was that he was looking for 1 or more non-virgules. 'DDD' is the 3rd this substring.

    Published by: Frank Kulash, on February 16, 2012 11:36
    Added Oracle 11 example

  • Ignoring the Null value or 0 for an average of

    Hello

    I don't code in Java, so I'm having a problem with a form.

    We have a form of training that adds the total of the sides and then is supposed to understand on average.  My problem is that the provided average is based on the average function canned for the field, so it's the calculation of all the fields, including those who have either a Null value or a zero.  Can someone help me with this please?

    By the way.  If the N.O. is checked, the coast is n/a.

    There are also five sections that will total all the sides and will need an average of these totals.

    Thanks in advance.

    Tom

    FTO Form SCRN SHOT.png

    Screenshot taken: 15/03/2013-21:09

    Here's a generic function to calculate the average of a group of non-empty fields.

    This function takes two parameters: an array of domain names at average and a Boolean value specifying if the function should return an empty string if the result was zero.

    function averageFields (fields, blankIfZero) {}

    var total = 0;

    var n = 0;

    for (var i in fields) {}

    var f = this.getField (fields [i]);

    v var = f.valueAsString;

    If {(v)

    total += (+ v);

    n ++ ;

    }

    }

    var returnValue = (n == 0)? ' ': total/n;

    If (blankIfZero & returnValue = 0) returnValue = "";

    return returnValue;

    }

    You can set this function at the level of the document, and then call it as follows (starting a custom calculation script, in this case):

    Event.Value = averageFields (["field1", "Field2", "Field3"], false);

  • Replace the Null values with zero in MDB

    Hello

    How can I replace Null values with zero in MDB. I tried NVL (column_name, 0), he said: syntax error.

    Thanks for your time and your help.

    Hello

    In the layer of Buisenss you always use IFNULL (column, 0)

    Concerning
    Adil

    Published by: adil.harrab on April 8, 2011 17:33

  • dealing with null values

    HI people

    req1:
    It may be a specific difference between "not" and "does not exist".
    which is the best 'there is no' or 'no', when it nulls.i.e If the subquery contains NULL values.

    I hope you people understand my question


    Thanks in advance

    Published by: newbie on February 18, 2011 03:52

    This can be useful
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:3607896341573320:P11_QUESTION_ID:442029737684

  • PivotTable, null values

    Hello world

    I did a pivot table. It displays correctly the results, but as null values. How to avoid display null values? If I don't get it, you can see what I mean in the picture below.

    http://img251.imageshack.us/img251/9259/ORAF.jpg

    Stansia,

    You can check: http://total-bi.com/2010/10/replace-nulls-in-obiee-pivot-table/

    Try what kishore said

    Thank you
    Saichand.v

Maybe you are looking for