Replace NULL values for PIVOT query

Hello

I'm working a table for sales, for certain values, when now columns, finishing with a null value. How can I handle these values 0 (zeros).

WITH (AS PIVOT_DATA)
SELECT S.ZONE_CODE, Z.ZONE_NAME, S.YEAR, S.PERIOD, S.SALES
OF STAT_TABLE_SALES ADV
AREAS OF JOIN Z ON S.COMP = Z.COMP AND S.ZONE_CODE = Z.ZONE_CODE
WHERE S.COMP = '001'
AND S.BRAND_CODE = '001'
)
SELECT *.
OF PIVOT_DATA
PIVOT)
SUM (SALES) FOR THE PERIOD (YEAR) TO ((20091),
(2009,2),
(2009,3),
(20094)
(2009,5),
(2009,6),
(2009,7),
(2009.8),
(2009,9),
(2009.10)
(2009,11),
(2009.12),
(2010,1),
(20102)
(2010,3),
(2010,4),
(2010,5),
(2010,6),
(2010.7))
)
ORDER BY DESC NULLS LAST 14;

This query returns the following:

COD_ZONA NOM_ZONA 2009_3 2009_2 2009_1
-------- ------------------------------ ---------------------- ---------------------- --------------------
01 YEDUSIJH. 1382367.75 1559943.27 1441279.64
02 C, ASKAK 711897.82 865854,05 1583232.3
ASDFG 03 130443.03 205409,84 178633.69
04 OSOIDSD 320118.32 439008,83 409251.18
05 ODFSDF 300908.21 276301,59 260188.53
06 CH 242749.65 325196,71 464938.9
SOA 07 610312.31 606312,93 754569.82
08 SAN 89426.8 81360,04 61649.27
09 YP 284487.79 328281,31 267210.85
10 TC 87043.28 158594,43 85195.8
11 BAGNN 76778.78 68180,76 118530.04
12 CRT 122023.7 143442,21 134744.85
13 ABC 209992.79 196477,03 185222.14
IDLIB 14
15 ARE 23870.41 4137,33 16660.53

* These are not all the columns and rows, but it is a piece of what it returns.

How can I replace the NULL values with 0 (zeros).

Still not sure why nvl shouldn't meet your needs:

SQL> select ename, nvl (clerk_20, 0) clerk_20, nvl (sal_30, 0) sal_30
  from emp pivot (sum (sal)
           for (job, deptno)
           in ( ('CLERK', 20) clerk_20, ('SALESMAN', 30) sal_30))
/
ENAME             CLERK_20          SAL_30
---------- --------------- ---------------
WARD                     0            1250
JONES                    0               0
TURNER                   0            1500
ADAMS                 1100               0
ALLEN                    0            1600
SMITH                  800               0
CLARK                    0               0
KING                     0               0
BLAKE                    0               0
JAMES                    0               0
FORD                     0               0
SCOTT                    0               0
MARTIN                   0            1250
MILLER                   0               0

14 rows selected.

Tags: Database

Similar Questions

  • replace NULL values for not null values prior

    Hi all

    I want to set to Null to override value not zero preious available. data are sorted by column Date DT
    WITH 
    TEMP AS (SELECT SYSDATE DT, 1005 ID1, NULL ID2 FROM DUAL    
    UNION ALL
    SELECT SYSDATE+1 DT, 1005    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+2 DT, 1006,    1005 ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+3 DT, 1006    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+4 DT, 1007,    1006 ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+5 DT, 1007    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+6 DT, 1007    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+7 DT, 1006,    1007 ID2 FROM DUAL
    )
    SELECT * FROM TEMP
    I want the output voltage:
    DT                     ID1      ID2     
    1/6/2012 9:54:11 AM    1005    NULL
    1/7/2012 9:54:11 AM    1005    NULL
    1/8/2012 9:54:11 AM    1006    1005
    1/9/2012 9:54:11 AM    1006    1005
    1/10/2012 9:54:11 AM    1007    1006
    1/11/2012 9:54:11 AM    1007    1006
    1/12/2012 9:54:11 AM    1007    1006
    1/13/2012 9:54:11 AM    1006    1007
    time added so far can be ignored.

    Thanks in advance.

    ... Vivek
    WITH temp AS (
    SELECT SYSDATE DT, 1005 ID1, NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+1 DT, 1005    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+2 DT, 1006,    1005 ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+3 DT, 1006    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+4 DT, 1007,    1006 ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+5 DT, 1007    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+6 DT, 1007    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+7 DT, 1006,    1007 ID2 FROM DUAL
    )
    SELECT dt, id1, last_value(id2 ignore nulls) over(order by dt) as id2
    FROM temp
    ORDER BY dt
    ;
    
  • Replace NULL values with 0 to Pivot

    Hi all

    I use a union query, I need to display 0 instead of NULL values. I tried various methods such as ifnull(), case; I could see in the table, but not in pivot of 0.
    I tried and succeeded in placing '-' instead of null. If I put a line chart the chart seems meaningless.
    Can someone suggest me this chart & pivot.

    Thanks in advance,
    Jerome

    Hi Leila,

    Hope this link helps you

    [http://total-bi.com/2010/10/replace-nulls-in-obiee-pivot-table/]

    By,.
    KK

  • NULL values for some elements of the XML reading tree

    I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

    Example XML:

    
        1.0.0.0
        1000
        MyAppsName
        
            
                1000
                userDefined
                StructName
            
        
    
    

    And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

    In DataManager.hpp:

    QVariant mCustomDataStructsTopLevel;
    QVariantMap mCustomDataStructsTopLevelMap;
    

    In DataManager.cpp:

    mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
    mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();
    
    qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
    qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
    qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected
    

    OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

    The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

  • Null values for DB2 are causing problems

    Hello
    I have another problem with the link to the database to DB2 on IBM iSeries Access for Linux 64-bit OEL5 with gateway database Oracle and unixODBC 2.2.14.
    DB link works. However, null values for DB2 are causing problems. "The columns Date null on db2 return a date ' 30.11.0002 ', and the columns of characters that are null return an error ORA-28528: heterogeneous Services data type conversion error.
    isql returns the correct results.

    How can I fix? May set some parameters for the conversion of the data on the entry door?

    Thank you.

    If the driver is not fully ODBC level 3 compliant and functions of the spleen, we are lost. But sometimes drivers ODBC level 3 compliant, but lack the correct implementation of 64-bit. In these cases, we can tell the gateway to use the 32-bit ODBC 3 standard adjustment level in the gateway init file:
    HS_FDS_SQLLEN_INTERPRETATION = 32

  • Number of rows in each partition is displayed with a NULL value for a table partitioned in user_tab_partitions. Why?

    I created a table and partitioned on the date of the entry and added a local partitioned index.

    Now, I use a query to extract "num_rows" of user_tab_partitions to know the number of rows in each partition.

    Getting this value as null num_rows, wonder why?

    After looking to explain the Plan after interrogation ("select * from my_table1 where entry_date = 1 January 2015" ;))

    to find out if she actually partitioned table and its data in different partitions, I interpreted in effect because the query plan had a line like Partition_range (Single).

    My Question is:

    (a) is actually partitioned data (have I misinterpreted the Explain plan)

    (b) why is the num_rows null column in the query (Pasted below)

    (c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?

    The following code Snippet:

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

    create the table my_table1
    (
    roll_no number constraint my_table1_pk primary key,
    date of entry_date
    )
    partition of range (entry_date)
    (
    PARTITION data_p1 VALUES LESS THAN (TO_DATE (December 31, 2014 ',' DD-MM-YYYY ""));
    PARTITION data_p2 VALUES LESS THAN (MAXVALUE)
    );


    create an index only my_table1_indx on my_table1 (entry_date) local;

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

    I now insert two lines:
    insert into my_table1 values (1, to_date ('01-01-2015', ' dd-mm-yyyy'));
    insert into my_table1 values (2, to_date('01-02-2015','dd-mm-yyyy'));

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

    These have been inserted successfully, now using the query below shows num_rows column as null. I don't know why?

    SELECT table_name, num_rows, high_value, nom_partition
    Of user_tab_partitions
    where table_name = 'MY_TABLE1 '.
    ORDER BY table_name, nom_partition;

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


    (a) is actually partitioned data (have I misinterpreted the Explain plan)

    Yes, it is partitioned. You can query this particular partition SELECT * FROM my_table1 (data_p1) PARTITION to check that.

    (b) why is the num_rows null column in the query (Pasted below)

    As already mentioned that you have not collected statistics.

    (c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?

    In fact, you have created two types of indexes without knowing (can be)! One is not partitioned (although this column is not partition key) and another is partitioned (LOCAL). They are MY_TABLE1_PK and MY_TABLE1_INDX. You can check that USER_INDEXES.

    You can read this article to get an early jump on the partitioning of decision. Partition: Partition decisions

  • Problem of null values for the Variable

    I work with APEX 4.0.  I have a menu page that has a list item widget types to select.  I then a navigation list that calls a report page and sets a widget-type element with the value of the widget on the page called - type element.

    Problem is that type widget on the page called article does not meet.  The report depends directly on this issue being filled.  The url indicates the element in the form of Pxxx_WIDGET_TYPE, but the value for parameter & Pxxx_WIDGET_TYPE. is set to null.  I am also an element of Pxxx_CALLED_FROM filling, which fill, and the url shows the value of & APP_PAGE_ID.

    What's wrong?  How to fill the element of widget_type?

    How do you define value for Pxxx_WIDGET_TYPE? And is there a value in the session state for this item?

    Kind regards

    Vincent

  • How to search by null value for the numeric values in the filter of the fable in adf 11g?

    Method of substitution of applyViewCriteria?
    But what to put as the value for ViewCriteriaRow?

    Hello

    You can add following code to your actionListener or any method call when you want to perform this operation:

    ViewObject view = getViewObject();
    ViewCriteria criteria = view.createViewCriteria();
    
    ViewCriteriaRow row = criteria.createViewCriteriaRow();
    row.setAttribute(attrName, "IS NULL");
    
    criteria.addElement(row);
    view.applyViewCriteria(criteria);
    

    ~ Ahmed

  • Support for PIVOT query (or advice on the best way to do it)

    Hi gurus of SQL,.

    I'd appreciate any help you could provide on this request, I'm assuming that the best way to do this would be by using the PIVOT function. I read through some of the documents and books, and done some research here in the forums, but can't seem to find a way to make it work.

    I'm on Oracle 11.1.0.6.0 self.

    I have a table like this:
    ID     Product          Month_A_Amt Month_B_Amt Month_C_Amt     Month_D_Amt
    
    123     ProductA     3          5          7          9
    123     ProductB     2          4          6          8
    123     ProductC     10          11          12          13
    456     ProductA     1          2          3          4
    456     ProductB     3          4          5          6
    We get this data each month - Month_A is always the most recent month, and so it goes back for this game, Month_A is 09 November, Month_B is October 09, Month_C is Sept 09, etc. I'm OK with Hardcoding this value each month, so for the purposes of this exercise, just assume that Month_A is the 09 November, Month_B is Oct 09, Month_C is Sept 09 and Month_D is Aug 09.

    I need essentially "Pivot" in this table, so the end result looks like this:
    ID     Month          Product_A_Amt     Product_B_Amt     Product_C_Amt
    
    123     Nov 09          3          2          10
    123     Oct 09          5          4          11
    123     Sep 09          7          6          12
    123     Aug 09          9          8          13
    456     Nov 09          1          3          null
    456     Oct 09          2          4          null
    456     Sep 09          3          5          null
    456     Aug 09          4          6          null
    Here's the SQL code to create the database with test data table. Now that I've typed this explanation, it still seems easier that I had done it to be... but I'm still confused, so any help is greatly appreciated, thank you!

    create table test_base_table)
    Identification number,
    Product varchar2 (20).
    Number of Month_a_amt
    Number of Month_b_amt
    Number of Month_c_amt
    Number of Month_d_amt);

    insert into test_base_table values (123, "ProductA', 3, 5, 7, 9);
    insert into test_base_table values (123, "ProductB", 2, 4, 6, 8);
    insert into test_base_table values (123, "ProductC", 10, 11, 12, 13);
    insert into test_base_table values (456, 'ProductA", 1, 2, 3, 4);
    insert into test_base_table values (456, 'ProductB', 3, 4, 5, 6);

    Published by: TheBlakester on February 10, 2010 19:56

    Hello

    You don't want to make several clauses UNPIVOT and PIVOT; you want to do several sets of columns in a cluase PIVOT and UNPIVOT one clause.

    In the UNPIVOT clause, it's just a matter of replacing the unique "amt" column before the keyword FOR with a list in parentheses '(amt_1, amt_2)' and the replacement of each column in the list (for example, "month_a_amt") with a list of the same length ("(month_a_amt_1, month_a_amt_2)" ").
    In the PIVOT clause, it's just a matter of replacing the unique "SUM (amt)" aggregate function with a list of unparenthesized of functions, each with an alias ("the SUM (amt_1) AS amt_1, SUM (amt_2) AS amt_2'. The alias that will be added at the end of the givien for names output column in the IN clause.

    SELECT       id
    ,       TO_CHAR ( ADD_MONTHS ( TO_DATE ( 'Nov 2009'
                                            , 'Mon YYYY'
                              )
                          , month_num
                          )
                , 'Mon YYYY'
                )          AS month
    ,       product_a_amt_1
    ,       product_a_amt_2
    ,       product_b_amt_1
    ,       product_b_amt_2
    ,       product_c_amt_1
    ,       product_c_amt_2
    FROM       test_base_table
    UNPIVOT       ( (amt_1,         amt_2      )     FOR month_num IN (
             (month_a_amt_1, month_a_amt_2)     AS  0,
             (month_b_amt_1, month_b_amt_2)     AS -1,
             (month_c_amt_1, month_c_amt_2)     AS -3,
             (month_d_amt_1, month_d_amt_2)     AS -4              )
           )
    PIVOT       ( SUM (amt_1) AS amt_1
           , SUM (amt_2) AS amt_2 FOR product IN ( 'ProductA' AS product_a
                                                        , 'ProductB' AS product_b
                                       , 'ProductC' AS product_c
                                       )
           )
    ORDER BY  id
    ,            month_num     DESC
    ;
    

    Output:

    .              PRODUCT  PRODUCT  PRODUCT  PRODUCT  PRODUCT  PRODUCT
      ID MONTH    _A_AMT_1 _A_AMT_2 _B_AMT_1 _B_AMT_2 _C_AMT_1 _C_AMT_2
    ---- -------- -------- -------- -------- -------- -------- --------
     123 Nov 2009        3        9        2        9       10        9
     123 Oct 2009        5        9        4        9       11        9
     123 Aug 2009        7        9        6        9       12        9
     123 Jul 2009        9        9        8        9       13        9
     456 Nov 2009        1        9        3        9
     456 Oct 2009        2        9        4        9
     456 Aug 2009        3        9        5        9
     456 Jul 2009        4        9        6        9
    

    It looks like all the new values of amt2 are 9. Don't you think it's the best test? I think that different numbers, as you used for the examples of previous data, reduce the chances of getting good results purely by chance.

    If you want to experiment with queries like this, I suggest you use "SELECT *" (nothing added) in the SELECT clause. Start with just an UNPIVOT operation. Some examples in the documentation to do a TABLE CREATION AS... to save the results of an UNPIVOT operator and use this table as the base for a PIVOT table. I think it's a good idea to reduce confusion.

  • null value for the parameter in quesry

    Please help on this problem:

    I have a query like

    Select colA, colB
    from tableA
    where cola =: parameter;

    If: parameter has a value, then the request is ok for my pupposes,
    but when: parameter is null, then I have to choose only 3 values of colA. (ColA has more than 3 distinct values)

    I can't use nvl because there are 3 arguments and no 1.

    I tried:

    Select colA, colB
    from tableA
    where (: parameter is not null and colA =: parameter) or (: parameter is null and colA (1,2,3))

    but this isn't the solution.

    Can someone help me on this simple query?

    Your version must have worked as long as you have no other filter criteria in the where condition.
    Need you some parentheses around the OR condition. So I don't know what was the problem with your solution.
    BTW: There is a ') ' missing at the end, but I guess that it's just a typo while copying the code on the forum.

    The following alternative works:

    select colA, colB
    from tableA
    where colA in (nvl(:parameter,1) ,
                 nvl(:parameter,2) ,
                 nvl(:parameter,3)
                 ) ;
    

    Advantage: Can be faster in the case of null, because it can always use an index on the column of cola.

    Published by: Sven w. on April 13, 2010 15:26

  • LocationProvider.getInstance returns a null value for the positioning of the cell PHONE location

    Hi guys.

    I'm having a problem trying to get a network of cells (MS basis) path to be able to work on my BlackBerry Bold 9000.

    Both assisted and Standalone GPS work (outside of course), but I'll try to find a way to position themselves inside the building.

    Here's what I'm going to put criteria:

    Criteria criteria = new Criteria();
    
    criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setCostAllowed(true);
    criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
    
    LocationProvider.getInstance(criteria); //<-- Returns null on real device
    

    When I run on a real device it gives me always null, when I do the same thing on a simulator, so this works:

    What I am doing wrong? I really need to find a way to make it work inside.

    Thanks for any input.

    Hey, Dominator,.

    I'll be real simple with you and try to make you save a LOT of time.

    Basically, cell tower positioning doesn't work out of the box on the Blackberry platform (except in a few configurations of rare device / carrier). So you can essentially throw the code you have above. If you need a place inside detection, you will need access to a database of celltowerId. These databases contain information from the Tower (Rad_error_nocontent, mnc, mcc, Lake) and its approximate location (lat/lng coordinates). This will give your application a rough estimate (less than a mile or two) from the current location of the device.

    Open source and professional databases are available. This is an open source database that runs on GSM networks (of course, he didn't 100% coverage of all the pylons). The biggest downfall is that it does not support CDMA (Sprint/Verizon) networks.

    http://openCellId.org

    You will find that most of the people on this forum are not very useful when it comes to cellTower information, positioning so you will need to research, research, research.

    Good luck

  • Why is-V$ SESSION. SQL_ID null value for a session ACTIVE?

    Hello

    On a 11.2.0.1 database of our developers connected a select in two sessions (SQLDeveloper). The following SELECT statement is currently being run for more than 4 hours, and if I check the session $ v (3 times), I see this:
    SQL>select sid, status, sql_id, sql_address, sql_hash_value, sql_child_number, sql_exec_start, prev_sql_id, last_call_et, event
      2    from v$session
      3   where sid in (1169,38)
      4  /
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ ------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15343 direct path read
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15430 direct path read
    
    SQL>/
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ ------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15471 direct path read
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15558 kfk: async disk IO
    
    SQL>/
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ -------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15499 kfk: async disk IO
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15586 kfk: async disk IO
    I checked V$ SESSION several times and you can see the wait events change over time, so the two sessions are really ACTIVE.

    The question I have is this: how is it possible that the session 1169 a STATUS = 'ACTIVE' and at the same time a SQL_ID null (or if I ask the same question: How can I get the SQL code 1169 session is running, given that his State is ACTIVE)?


    Thanks in advance for your comments.

    Kind regards
    Swear

    If you are fired for Diagnostic pack, look at V$ ACTIVE_SESSION_HISTORY sql_id, top_level_sql_id, plsql_entry_object_id, plsql_entry_subprogram_id, plsql_object_id, plsql_subprogram_id.

    It's sampled data.

    In addition, if there is anything in there after a certain interval to look into DBA_HIST_ACTIVE_SESS_HISTORY (also requires the same additional license). This is another sample (1/10 by default) of the sampled data kept for 7 days by default.

    Ash can provide a nice overview of what a session has been done in the immediate past

  • swfBridge has the null value for application responsible brother

    Hi all

    With the multi version found, I had to load SWF as a brother.

    Test sending an event via swfBridge but the property has the value null?

    Parent compiled with 4.0

    under app is 3.2

    <! - automatic charge if mxml - >
    < mx:SWFLoader id = "testApp".
    loadForCompatibility = 'true '.
    trustContent = 'true '.
    Width = "100%" height = "100%".
    source = "TestAppWithPlayback.swf"
    Complete = "swfComplete (); "/ >

    < mx:Button id = "buttonEvent".
    label = "Send Event"
    Click = "sendLoad (Event)" / > "

    public function sendLoad (event: MouseEvent): void
    {
    trace ("sendLoad()");

    Send event
    var allowedToReadSibling:Boolean = testApp.childAllowsParent;
    var loadEvent:LoadCaptureEvent = new LoadCaptureEvent();
    testApp.swfBridge.dispatchEvent (loadEvent);
    }

    Thanks in advance

    In 4.0, you need to add the option in MXMLC

    -includes = mx.managers.systemClasses.MarshallingSupport

  • Replace null values

    Under the direction

    Published by: user610131 on May 1st, 2009 14:09
    select  case when ltrim(substr(txt,1,1))  is null  or ltrim(substr(txt,2,1)) is null  or ltrim(substr(txt,3,1)) is null
                  then 'XXX' else txt  end  txt from t
    /
    
    SQL> with t as ( select ' DD' txt  from dual union all
      2                 select  'S D'  txt  from dual union all
      3                  select 'DD ' from dual )
      4  select  case when ltrim(substr(txt,1,1))  is null  or ltrim(substr(txt,2,1)) is null  or ltrim(
    substr(txt,3,1)) is null
      5                then 'XXX' else txt  end  txt from t
      6  /
    
    TXT
    ---
    XXX
    XXX
    XXX
    
    SQL> 
    
  • 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

Maybe you are looking for

  • How can I remove a line in ff 4.0.6 I added? the previous methods do not work.

    I added the Boolean line in about: config. Network.Manage - off line-status and set the value to false, as FF was offline whenever my Mac was asleep. The next morning the offline behavior returned. Silly me, I simply added the new line and now have t

  • Satellite M115-S1061 - how to activate the standby/Hibernation mode

    I recently got a laptop from my father and the settings are a bit strange. My modes standby and Hibernate are also well off and due to the lack of a cooling device, it constantly turns off when I leave. So whenever I leave, I have to shut down my com

  • Windows 7 32 bit - 64 bit

    Hey,. I have a hp pavilion dv6-3078tx, it's the hard drive died so I bought a new one accidenlty i installed 32 bit windows 7 Home premium and now I want to upgrade to windows 7 Home Edition premium 64-bit, I know that my laptop is capable like the o

  • I think that Windows security prevents my wireless to connect to my router.

    I had a very bad computer crash about a month ago because of a Trojan horse that I contracted.  A friend reinstalled my programs and a microsoft security to hopefully prevent a repeat of this kind of event.  Everything has been great to work except t

  • Time for a new wireless router? Security no longer works

    My router has acted lately.  I did the Web page and two manual reset / original restore. I works very well without any security.  When I reset the password name & network security everything seemed normal. It now displays the new network name but sho