Replace blank column values with ZERO

Hi experts,
I am building a report to display count of orders split by channel per day per hour.
For some days one or few channels might not have any orders placed against them in which case my report shows blank values in the report.
I would ideally like to have Zero in those columns rather than an empty cell.
Sample Qry :-
Select
Channel,
COUNT(order_num) as COUNT
FROM
SALES_ORDER
Pls help !
Thanks in advance.

Try this code
/* Formatted on 2009/05/11 07:53 (Formatter Plus v4.8.8) */
SELECT   a.CLASS, a.order_date, a.time_created,
         NVL (a.count_orders, 0) AS count_orders
    FROM (SELECT   sales_order_header.soh_class AS CLASS,
                   TO_CHAR
                          (sales_order_header.soh_date_created,
                           'dd/mm/yyyy'
                          ) AS order_date,
                   SUBSTR
                      (TO_CHAR (sales_order_header.soh_time_created,
                                'HH24:MI:SS'
                       1,
                       2
                      ) AS time_created,
                   COUNT (sales_order_header.soh_order_no) AS count_orders
              FROM com.sales_order_header
             WHERE sales_order_header.soh_date_created >=
                                         TRUNC (NEXT_DAY (SYSDATE, 'SUN'))
                                         - 14
               AND sales_order_header.soh_date_created <
                                          TRUNC (NEXT_DAY (SYSDATE, 'SUN'))
                                          - 6
          GROUP BY sales_order_header.soh_class,
                   TO_CHAR (sales_order_header.soh_date_created, 'dd/mm/yyyy'),
                   SUBSTR (TO_CHAR (sales_order_header.soh_time_created,
                                    'HH24:MI:SS'
                           1,
                           2
          UNION ALL
          SELECT   sales_order_header.soh_own_id AS CLASS,
                   TO_CHAR
                          (sales_order_header.soh_date_created,
                           'dd/mm/yyyy'
                          ) AS order_date,
                   SUBSTR
                      (TO_CHAR (sales_order_header.soh_time_created,
                                'HH24:MI:SS'
                       1,
                       2
                      ) AS time_created,
                   NVL
                      (COUNT (sales_order_header.soh_order_no),
                       0
                      ) AS count_orders
              FROM com.sales_order_header
             WHERE sales_order_header.soh_date_created >=
                                         TRUNC (NEXT_DAY (SYSDATE, 'SUN'))
                                         - 14
               AND sales_order_header.soh_date_created <
                                          TRUNC (NEXT_DAY (SYSDATE, 'SUN'))
                                          - 6
          GROUP BY sales_order_header.soh_own_id,
                   TO_CHAR (sales_order_header.soh_date_created, 'dd/mm/yyyy'),
                   SUBSTR (TO_CHAR (sales_order_header.soh_time_created,
                                    'HH24:MI:SS'
                           1,
                           2
                          )) a
ORDER BY a.order_date DESC, a.CLASS ASC

Similar Messages

  • How can I replace column value with a particular value in SQL

    Hi All,
    Can anyone please tell me how can I format my output with replacing a column value with a specific value which actually depends on the present value of the column
    I am executing the following SQL statement
    select state,count(id) from <table_name> where composite_dn= <composite_dn_name> group by state;
    My Present output is:
    State No.Of Instance
    1 3
    3 28
    I want to replace the value in the column state as follows
    State No.OfInstances
    Completed 3
    Faulted 28
    I want "1" to be reppaced by "Completed" and "3" to be replaced by "Faulted"
    Is is possible with SQL or PL/SQL , if it is then how can I achieve this required result. Please help!!
    Thanks in Advance!!
    Edited by: Roshni Shankar on Oct 27, 2012 12:38 AM

    Hi Roshni,
    I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
    Refer -- http://www.techonthenet.com/oracle/functions/decode.php
    select decode(t1.state,t2.state_id,t2.state_name), t1.count_id
    from <table_2> t2, (select state,count(id) count_id
    from <table_name>
    where composite_dn= <composite_dn_name>
    group by state) t1
    where t1.state = t2.state_id;HTH
    Ranit B.
    Edited by: ranit B on Oct 27, 2012 2:02 PM
    -- link added
    Edited by: ranit B on Oct 27, 2012 2:19 PM
    -- sample code added

  • Column values with invalid characters

    How to find the column values with invalid chararcters
    meaning value upper(col) not in ('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
    For ex.
    1. CDAssyKit,DragonNaturallySpeaking�Preferred7.0,USEnglish
    2. CDAssyKit,DragonNaturallySpeaking Preferred7.0,USEnglish
    Query should retrieve only the first row, since it has extra � character in the column value.
    Thanks for your help.

    Convert all letters and numbers to an arbitrary letter and then remove that letter. If there are any characters left, they are invalid according to your rules.
    select *
      from t
    where replace(translate(lower(column_name), 'abcdefghijklmnopqrstuvwxyz0123456789', 'a'), 'a') is not null;

  • Reg : Concatenation of a column value with multiple rows... URGENT

    Hello,
    Could any of u help me in concatenating a column value with
    multiple rows ???
    For ex : I've the following data from emp table :
    DEPTNO ENAME
    10 KING'S
    30 BLAKE
    10 CLARK
    10 TOM JONES
    30 ALLEN
    30 JAMES
    20 SMITH
    20 SCOTT
    20 MILLER
    10 MILLER
    20 rajeev
    I want the following output :
    deptno Concat_value
    10 KING'S,CLARK,TOM JONES,MILLER
    20 Rajeev,MILLER,SMITH,SCOTT
    30 BLAKE,ALLEN,JAMES
    Thanks in Advance,
    Srini

    Hello Naveen,
    Thanks for ur answer. But I need a single SQL query for getting
    what I want. I know the solution in PL/SQL.
    Please try it in a single SQL....
    Thanks again,
    Srini

  • SharePoint Calc Column - How to Find and Replace ANY & ALL Values with Something Else

    Haven't found a solution on this even though it seems like it should be cut and dry.
    I have a column containing characters "-" (e.g., XXX123-123-fjhrh-sdafsdfsd). I want to find every "-" and replace it with "@". Seems easy but so far haven't found a solution. My calc column always seems to stop at the first
    occurence of "-" and only replace that one. Seems every forumula wants you to tell SharePoint where to start (position). You can't simply tell SharePoint, Find this "-" ALL OCCURENCES and replace with this "@" ALL OCCURENCES.
    I don't have the option of saying start at this position because my data is not the same in every cell/field (e.g., number of characters).
    Closest I've gotten is this:
    =REPLACE([IN THIS COLUMN],FIND("-",[IN THIS COLUMN]),LEN("-","@")
    RESULTS:
    XXX@123-XXX-123

    Hi JJSHAREP,
    The formula only works when there are only three "-" in the column value, and the formula will fail if there are more than or less than three "-" in the column value.
    I recommend to use Jquery code to replace the characters in the column called IN THIS COLUMN in the UI:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    var Index=0;
    $(".ms-listviewtable tr th").each(function(i){
    if($(this).find("div").attr("name")=="IN_x0020_THIS_x0020_COLUMN"){
    Index=i;
    $(".ms-listviewtable tr").each(function(i){
    if(i>0){
    var value=$(this).find("td").eq(Index).text();
    var value1=value.replace(/\-/g, '@');
    $(this).find("td").eq(titleIndex).text(value1);
    </script>
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Display column values as zeros

    I am having three select queries with union below:
    select col1, col2 from table1 where condition; -> fetches 1 record
    union
    select col1, col2 from table2 where condition; -> fetches no row
    union
    select col1, col2 from table3 where condition; -> fetches no row
    so output is 1 row. example;
    col1 col2
    1 1
    The 2nd and 3rd select doesnt fetch any record. My req is to dislplay the col values as zeros for any of 3 select statements which doesnt fetch any records from table
    so req output which looks like:
    col1 col2
    1 1
    0 0 -> norecords fetched(displaying zeros)
    0 0 -> norecords fetched(displaying zeros)
    Please let me know how can i do this in the query? I need to do this in the same qury and not using any functions/proc..
    Edited by: user11942774 on Aug 22, 2010 4:13 AM

    MichaelS wrote:
    Or
    SQL> var deptno1 number
    SQL> var deptno2 number
    SQL> begin
    :deptno1 := 20;
    :deptno2 := 100;
    end;
    PL/SQL procedure successfully completed.
    SQL> select nvl (deptno, 0) deptno
    from (select :deptno1 dn from dual), dept
    where deptno(+) = dn
    union all
    select nvl (deptno, 0) deptno
    from (select :deptno2 dn from dual), dept
    where deptno(+) = dn
    DEPTNO
    20
    0
    2 rows selected.Note: Above worked on my old 9.8.0.2 but strange enough not on my 11.2.0.1 (Only the first part of the UNION ALL displayed)! A bug???Looks to be.
    set serveroutput off
    ALTER SESSION SET STATISTICS_LEVEL = ALL;
    select nvl (deptno, 0) deptno
      from (select :deptno1 dn from dual), scott.dept
    where deptno(+) = dn
    union all
    select nvl (deptno, 0) deptno
      from (select :deptno2 dn from dual), scott.dept
    where deptno(+) = dn
      8  /
                DEPTNO
                    20
    1 row selected.
    Elapsed: 00:00:00.01
    TUBBY_TUBBZ?SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(NULL, NULL, 'ALL'));
    PLAN_TABLE_OUTPUT
    SQL_ID  ap0cr5cut2ucn, child number 0
    select nvl (deptno, 0) deptno   from (select :deptno1 dn from dual),
    scott.dept  where deptno(+) = dn union all select nvl (deptno, 0)
    deptno   from (select :deptno2 dn from dual), scott.dept  where
    deptno(+) = dn
    Plan hash value: 18139613
    | Id  | Operation            | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |                    |       |       |     2 (100)|          |
    |   1 |  NESTED LOOPS OUTER  |                    |     2 |    26 |     2   (0)| 00:00:01 |
    |   2 |   FAST DUAL          |                    |     1 |       |     2   (0)| 00:00:01 |
    |   3 |   VIEW               | VW_JF_SET$03B38961 |     2 |    26 |     0   (0)|          |
    |   4 |    UNION-ALL         |                    |       |       |            |          |
    |*  5 |     INDEX UNIQUE SCAN| PK_DEPT            |     1 |     3 |     0   (0)|          |
    |*  6 |     INDEX UNIQUE SCAN| PK_DEPT            |     1 |     3 |     0   (0)|          |
    Query Block Name / Object Alias (identified by operation id):
       1 - SEL$51CD7FBE
       2 - SEL$51CD7FBE / DUAL@SEL$2
       3 - SET$03B38961 / VW_JF_SET$03B38961@SEL$7D8CA889
       4 - SET$03B38961
       5 - SEL$09480F13 / DEPT@SEL$1
       6 - SEL$05ED6B18 / DEPT@SEL$3
    Predicate Information (identified by operation id):
       5 - access("DEPTNO"=:DEPTNO1)
       6 - access("DEPTNO"=:DEPTNO2)
    Column Projection Information (identified by operation id):
       1 - "ITEM_1"[NUMBER,22]
       3 - "ITEM_1"[NUMBER,22]
       4 - STRDEF[22]
       5 - "DEPTNO"[NUMBER,22]
       6 - "DEPTNO"[NUMBER,22]
    46 rows selected.
    Elapsed: 00:00:00.05So we can see through rows 5 and 6 the predicates were pushed into DEPT query (which shouldn't have happened).
    A simple change to the query alleviates the bug.
    select
       nvl(d1.deptno, 0) as deptno
    from
       select :deptno1 dn from dual
          union all
       select :deptno2 dn from dual
    )  d,
       scott.dept d1
    where
    11     d.dn = d1.deptno (+)
    12  /
                DEPTNO
                    20
                     0
    2 rows selected.
    Elapsed: 00:00:00.01
    TUBBY_TUBBZ?SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(NULL, NULL, 'ALL'));
    PLAN_TABLE_OUTPUT
    SQL_ID  4x59nkxusp1p8, child number 0
    select    nvl(d1.deptno, 0) as deptno from (    select :deptno1 dn from
    dual       union all    select :deptno2 dn from dual )  d,
    scott.dept d1 where    d.dn = d1.deptno (+)
    Plan hash value: 1564933512
    | Id  | Operation          | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |         |       |       |     4 (100)|          |
    |   1 |  NESTED LOOPS OUTER|         |     2 |    32 |     4   (0)| 00:00:01 |
    |   2 |   VIEW             |         |     2 |    26 |     4   (0)| 00:00:01 |
    |   3 |    UNION-ALL       |         |       |       |            |          |
    |   4 |     FAST DUAL      |         |     1 |       |     2   (0)| 00:00:01 |
    |   5 |     FAST DUAL      |         |     1 |       |     2   (0)| 00:00:01 |
    |*  6 |   INDEX UNIQUE SCAN| PK_DEPT |     1 |     3 |     0   (0)|          |
    Query Block Name / Object Alias (identified by operation id):
       1 - SEL$1
       2 - SET$1 / D@SEL$1
       3 - SET$1
       4 - SEL$2 / DUAL@SEL$2
       5 - SEL$3 / DUAL@SEL$3
       6 - SEL$1 / D1@SEL$1
    Predicate Information (identified by operation id):
       6 - access("D"."DN"="D1"."DEPTNO")
    Column Projection Information (identified by operation id):
       1 - "D1"."DEPTNO"[NUMBER,22]
       2 - "D"."DN"[NUMBER,22]
       3 - STRDEF[22]
       6 - "D1"."DEPTNO"[NUMBER,22]
    43 rows selected.
    Elapsed: 00:00:00.05
    TUBBY_TUBBZ?I ran these tests on
    TUBBY_TUBBZ?select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    5 rows selected.
    Elapsed: 00:00:00.02
    TUBBY_TUBBZ?

  • Replacing the old value with new value on the website

    Hi ,
    I have two input fields CLIN # and PR#.When i enter the text,for the first it is working fine,second time when i enter it is replacing the value which i enter with the first one.I should not replace the old value.
    ex:
    Example when i enter test5 for the first time
    CLIN # :Test 5
    Next when i enter Test6 ,this value replaces the first one
    CLIN#: Test6
    CLIN#:Test6(there is no test5)
    I am doing for my istore application.Any ideas

    As the user that created the anonymous block ruun:
    select count(*) from general_acct_mast_table;
    and
    select tbaadm.count(*) from general_acct_mast_table;I strongly suspect that they are actually two different tables, and the tbaadm version is substantially larger that the non-qualified one.
    In any case I would not be doing this as a row-by-row procedure. I would create two lookup tables like:
    create table masked_general as
    select acid, foracid, round(dbms_random.value(81000000,85000000)) masked
    from (select distinct acid, foracid
          from general_acct_mast_table
          where acct_ownership not in ('O'));
    create table masked_stmnt as
    select * from masked_general;
    alter table masked_general add constraint masked_general_pk
       primary key (acid);
    alter table masked_stmnt add constraint masked_stmnt_pk
       primary key (foracid);Then do the updates as:
    update (select g.foracid, g.acid, gm.masked
            from general_acct_mast_table g
               join masked_general gm
                  on g.acid = gm.acid)
    set foracid = masked;
    update (select s.foracid, sm.masked
            from mini_stmnt_details_table s
               join masked_stmnt sm
                  on s.foracid = sm.acid)
    set foracid = masked;Note that this assumes that both acid and foracid are individually unique in general_acct_mast_table, which seems to be implied by your procedure, and that you want to be able to roll the whole thing back if there are problems (that is, you do not want to commit between the update of general_acct_mast_table and mini_stmnt_details_table).
    I would also probably a a verification step after creating the first masked table to ensire that you did get unique vluaes back fo the masked column.
    John

  • I want to display one column values with multiple symbols

    i am created one report.
    my column name is offshore  & on shore i want display 3  values with % symbol, then i want show 4 th  value as $ 2000,
    but it was allowing only one format $ or % but i need to display  symbols with my values.

    Try the following :
    give a name to the following formula like @getvalue
    Numbervar x;
    if
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex)= 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Employee"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Contractor"), CurrentSummaryIndex) = 0 and
    //(GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Mgt consult"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Clerical"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Other"), CurrentSummaryIndex) = 0
    then
    x:=0
    else
    x:=(GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex))
    (GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex)+
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Employee"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Contractor"), CurrentSummaryIndex) +
    //GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Mgt consult"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Clerical"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Other"), CurrentSummaryIndex)
    ) * 100
    Now create a new formula and check the value of the above formula :
    if {@getvalue} > 50 Then
    "$"&{@getvalue}
    else
    {@getvalue}&"%"
    Hope this will resove the issue.
    Thanks,
    Sastry

  • Replacing one column value between two rows..help??

    HI,
    I have table T
    it has five columns, all are in number data type
    Col1 and col2 are jointly primary key i.e. they cannot be repeated combined
    when i run this query..
    SQL> Select * from t
    it shows me the data like this
    Col1        Col2              Col3       Col4           Col5
    1             1               78          58            12.76
    2             1               128         446           32.10
    3             1               468         566           52.10
    4             1               878         58            52.05
    5             1               987         348           22.02
    ... so on.
    my requirement is that i want to update this table by replacing the col1 value between any two rows
    suppose this is the first row
    Col1        Col2          Col3        Col4         Col5
    1             1             78          58        12.76
    and this is any 2nd row
    Col1        Col2          Col3        Col4        Col5
    5             1            987         348       22.02
    now i want that for first row the value of col1 replaces the value of col1 of 2nd row
    and for 2nd row the value of col1 replaces the value of col1 of 1st row
    i.e.
    Col1        Col2          Col3        Col4         Col5
    5             1            78           58         12.76
    Col1        Col2          Col3        Col4         Col5
    1             1            987        348          22.02
    please tell how to achieve this in single query/procedureregards,
    Ramis

    SQL> create table t (id1 number, id2 number, name varchar2(1));
    Table created.
    SQL> alter table t add primary key (id1,id2);
    Table altered.
    SQL> insert into t values(1,1,'A');
    1 row created.
    SQL> insert into t values(5,1,'B');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t;
           ID1        ID2 N
             1          1 A
             5          1 B
    SQL> var val1 number
    SQL> var val2 number
    SQL> exec :val1 := 1;
    PL/SQL procedure successfully completed.
    SQL> exec :val2 := 5;
    PL/SQL procedure successfully completed.
    SQL> update t set id1 = (:val1 + :val2) - id1 where id1 in (:val1,:val2);
    2 rows updated.
    SQL> select * from t;
           ID1        ID2 N
             5          1 A
             1          1 B
    SQL> rollback;
    Rollback complete.
    SQL> select * from t;
           ID1        ID2 N
             1          1 A
             5          1 B
    SQL> commit;
    Commit complete.
    SQL> update t set id1 = decode(id1,:val1,:val2,:val1)
      2  where id1 in (:val1, :val2);
    2 rows updated.
    SQL> select * from t;
           ID1        ID2 N
             5          1 A
             1          1 BRgds.

  • Comparing two column values with multiple Parameter in VC (Indicator)

    Hello VC experts,
    GM
    I would like to know about how to indicate multiple parameter with different colour in same column and also comparing value with adjucent column.
    Eg.
    Parameters     ,,           Column1      ,,              Column 2       ,,            Indicator (Image)
    Parameter 1    ,,             a1             ,,                     b1          ,,                  RED
    Parameter 2    ,,            a2              ,,                     b2          ,,                  GREEN
    Parameter 3    ,,            a3              ,,                     b3          ,,                 
    Parameter 4    ,,            a4              ,,                     b4          ,,
    In case I  : Parameter -1     Column 1 ( value)  =  more is better compared to Column 2
    In case II : Parameter -2     Column 1 ( value)  =  Less is better compared to Column 2
    How to acheive this  INDICATOR based value comparison.
    Edited by: Sunil  B. Mundhe on Mar 7, 2009 6:30 AM
    Edited by: Sunil  B. Mundhe on Mar 7, 2009 6:38 AM

    Hi
    This is possible in VC. You have to insert 'Image' UI in the required table. Add images of alert through 'Image manager' (Tools tab). Select relevant images of alert in 'Image' UI. In display there is option for 'visibility condition' there you enter condition (like if greater than ,true,false).
    Like wise you can add multiple 'Image' UIs in that table & based on visibility conditions you will get these alert images in table.
    Regards
    Sandeep

  • Crystal Reports XI - How to pull same column value with different select...

    I have a report with many (around 30) sub reports and it is giving serious performance issue. I am currently finding out a strategy to improve the performance. I see that most of the sub reports are taking same parameters from main report except for one parameter which is different for each sub report and hard coded in them and pulling up the same column value from a oracle database with a different select criterion. I am trying to find out a way using either of command/crystal formula/SQL expression which can do the same job for me and give me performance improvement. I tried to take the parameters from the main report in one sub report and mapped them to parameters being transferred to the command and then drag and drop the field for which I need to display the value but due to some reason it is not returning values when I am trying multiple commands...I need some help in selecting a strategy for this issue resolution and some guidance....Any help would be highly appreciated....

    My version is 11.5.8.826. First of all I need to make it clear that I have 6 set of sub reports and each set has 5 sub reports. So if I can resolve the issue for one set, I resolve it for all. The sub reports are doing nothing but fetching a column value using a simple SQL SELECT query and appending to the right of a box in main report. The issue is that all these queries embedded into the sub reports are using same SQL except for one parameter in the "where" clause and they are fetching same column value from the database and fortunately all of them are returning same number of results. So at the end these results create a table when run. The only way I can stop using sub reports is by creating a table in the main report and use some object(formula/command/SQL expression or whatever) to fetch that column value using the same filter conditions. But please take a note that I need to use and append the same column value from a database table and use different filter conditions and append them to the right so that at the end they create a table...as long as I get the table in the output with a decent performance , anyone will be least bothered about what I used inside the report.....please ask me as many questions to get more lights on the issue....

  • Filter column value with special characters

    HI,
         I have a table table1 with a varchar column column1 having a value(ASW'JK'TH)(the column value itself has special charater'').Please help me with a quwery to filter this value
    Regards
    ASwathy

    db version is 11g:
    in_identifer VARCHAR2 (200) := q'[RM'2007'29]';
    I need where condition for a tabel coumn with teh above value

  • Conditional suppress only if all column values are zero

    I would like to suppress whole column if dbfield value is 0.00. I was able to suppress it in common tab of format field by using formula if dbfield =0.00 then true else false.
    But i would like to suppress column value only when all the values in column are equal to 0.00. Otherwise I would like to retain those 0.00.
    Let me know how I can do this?
    Your response is appreciated
    -Thanks
    Raghu

    Go to "Format Field...", select the Common tab, and put something like the following in the Suppress formula.
    Maximum({dbField}) = 0

  • BEx Analyzer: Display values with Zero data

    Hi,
    I urgently need to know something about BEx QD/Analyzer:
    If I drilldown e.g. Customer into the rows, it only shows me those customers for which there are values in place. However, I need to see all Customers, i.e. also the ones where the values are zero.
    How can I do this in Bex Analyzer or if needed BEx QD.
    Thanks
    Sabine

    Thanks,
    but it won't be possible to create a multiprovider just for that.
    Maybe I wasn't clear enough
    If a have Customer A, Cust B and Cust C and I drilldown by customer in the rows, then the system only shows me Cust B and Cust C, because for a there has been e.g. no turnover in one specific month.
    But in the drilldown in the report, I still want to see Cust A as well, even though the value is zero. So I should just see an empty line (instead of the key figures for Cust A).
    Guys, that must be possible!! Help me
    Sabine

  • I want to compare two columns and replace any equal values with the value in a specific cell

    I want to compare the numbers in two columns and replace all matching numbers in the second columns with the corresponding value from a cell in the same row as the matching number. 

    Me too.
    Barry

Maybe you are looking for

  • How to assign an order to a GL account

    Hi all, Can anybody please let me know how to assign an order to the GL account? Thanks, S.Sumana.

  • Use of contextmenu will crash in new flashplayer

    hi all, i am using flex 2.0 final addition to create context menu support in my application i am sucessfully able to create context menu but when i am trying to select any item from contextmenu in flash player 9.0 final release it will crash the apli

  • Multiple selction in the dropdownlistbox

    Hi All Can any one help me out that I am implementing the Drobdownlist for box for the multiple selections and to save the selected items in a database table. I have written code for the oninputprocessing. But I am getting error. unable to proceed fu

  • Windows to Mac transfer

    My PC recently died and I bought a macbook pro with retina display to replace it. I am trying to reinstall all of my old programs on my new computer, but my adobe installation cds are all configured for windows...is there any way to get a replacement

  • Problem with Reversed document with IDOC interface

    I have a problem when I create Idoc which will reverse a document. I use ACC_DOCUMENT_REVERSE, in Idoc is filled like this - OBJ_TYPE ( BKPFF ) OBJ_KEY( reverse document number + company code + year) OBJ_SYS ( system id ) OBJ_KEY_R ( obj_key of docum