cross tab using sql

Hello

I'm using the version of oracle 11g.

I have a requirement where I have to produce a cross-tab as explained below. Please help me write a SQL query to do this. Thank you very much.


Sample data:
------------------
Customer             product type
--------------------------------------------
AAA                           DVD
AAA                           Tape
BBB                           Tape
CCC                                 DVD
CCC                           Bluray
DDD                           DVD
DDD                           Tape
DDD                           Bluray
Logic
                                                                                
     AAA                                              BBB                         CCC                         DDD          
     DVD     Tape     Bluray                    DVD     Tape     Bluray               DVD     Tape     Bluray               DVD     Tape     Bluray
DVD          1                    DVD                         DVD               1          DVD          1     
Tape     1                         Tape          1               Tape                         Tape     1          1
Bluray                              Bluray                         Bluray     1                    Bluray          1     
Final Output
No. of customers who purchased the products across all product types
                    
     DVD     Tape     Bluray               
DVD          2     1               
Tape     2     1     1               
Bluray     1     1                    
Scripts:
-------------------------
create table cust_product(customer varchar2(5), product_type varchar2(10));

insert into cust_product values('AAA','DVD');
insert into cust_product values('AAA','Tape');
insert into cust_product values('BBB','Tape');
insert into cust_product values('CCC','DVD');
insert into cust_product values('CCC','Bluray');
insert into cust_product values('DDD','DVD');
insert into cust_product values('DDD','Tape');
insert into cust_product values('DDD','Bluray');

Hello

858747 wrote:
... Sample data:
------------------

Customer             product type
--------------------------------------------
AAA                           DVD
AAA                           Tape
BBB                           Tape
CCC                                 DVD
CCC                           Bluray
DDD                           DVD
DDD                           Tape
DDD                           Bluray

...
Final output
N ° of guests who have purchased products for all types of product

`     DVD     Tape     Bluray
DVD          2     1
Tape     2     1     1
Bluray     1     1                    

Sorry, I don't follow the logic. Try to explain in words, with specific examples.
Doesn't have 2 separate clients, 'CCC' and 'DDD', buy 'DVD' and 'Bluray '? Why aren't the results

`     DVD     Tape     Bluray
DVD          2     2
Tape     2     1     1
Bluray     2     1                    

with 2 in the corners?

Assuming it was just error, you can do something like this:

WITH     got_pairs     AS
(
     SELECT       a.product_type               AS product_a
     ,       NVL (b.product_type, a.product_type)     AS product_b
     FROM            cust_product     a
     LEFT OUTER JOIN     cust_product     b  ON  a.customer     = b.customer
                            AND     a.product_type != b.product_type
)
SELECT       *
FROM       got_pairs
PIVOT       (     COUNT (*)
       FOR     product_b
       IN     ( 'DVD'
          , 'Tape'
          , 'Blueray'
          )
       )
ORDER BY  CASE  product_a
          WHEN  'DVD'     THEN  1
          WHEN  'Tape'     THEN  2
          WHEN  'Bluray'     THEN  3
       END
;

This assumes that the combination (customer, product_type) is unique, as in your example of data., and that only product_types is 3 in your sample data.
If these assumptions are not true, then after a few revised sample data and results, which show what you want in these cases.

Sorry, I don't have an Oracle 11 database now to test this.
I can (and has) test the outer join, which combines a product_type with him that if he can not be combined with any other thing.

Using a technique of 11 pivot before Oracle, the following works:

WITH     got_pairs     AS
(
     SELECT       a.product_type               AS product_a
     ,       NVL (b.product_type, a.product_type)     AS product_b
     FROM            cust_product     a
     LEFT OUTER JOIN     cust_product     b  ON  a.customer     = b.customer
                            AND     a.product_type != b.product_type
)
SELECT       product_a     AS product_type
,       COUNT (CASE WHEN product_b = 'DVD'    THEN 1 END)     AS dvd
,       COUNT (CASE WHEN product_b = 'Tape'   THEN 1 END)     AS dvd
,       COUNT (CASE WHEN product_b = 'Bluray' THEN 1 END)     AS dvd
FROM       got_pairs
GROUP BY  product_a
ORDER BY  CASE  product_a
          WHEN  'DVD'     THEN  1
          WHEN  'Tape'     THEN  2
          WHEN  'Bluray'     THEN  3
       END
;

Note that the got_pairs of the subquery is identical in the two motions.

Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

Published by: Frank Kulash, may 29, 2011 16:05
Oracle 9 append query.

Tags: Database

Similar Questions

  • How to create Cross Tab using Desktop

    Hello world

    We use Sundard banner (universities) with discoverer.

    I would like to create a cross-tab


    | Final note
    |_______________________________
    Title of the course.
    |
    |


    Valid values of rank are: HP - honors
    H - honors
    P past

    Suppose that we had 3 students for the class: emergency medicine
    George Washington - HP
    John Adams - HP
    Abraham Lincoln - H

    Want a query to look like this:


    | HP | H | P
    |_________ |_____|_________________
    Emergency medicine | 2. 1
    |
    |

    Is this possible using Desktop, pls advise... thx, Sandra

    Hello

    Yes, you should be able to create a cross tab report in Discoverer Desktop, select the title of the course, the final score and the counter of the students. Then put the title of the course on the final quality left on top and the County as your data point.

    Rod West

  • Import Export using SQL Developer

    People

    I have 6 tables whose data must be exported from a database and imported into the other. The structure of the table constraints etc. is the same across both of the DB.

    Database is 11g. Average amount of data in tables 5 is 2.5million contain lines and 1 340million.

    Could you please suggest the best possible way to the export and import of data using SQL Developer. Developer SQL version 3.2.20.09

    There is an option in the 'View' tab in Developer SQL by using 'DBA' but do not have s/n of these patterns. I am well aware expdp and impdp operations but it is managed by another team that can cause delays both want to do it myself.

    Can we do expdp and impdp on SQL Developer without access s/n?

    All of the suggestions.

    Thank you

    Simple method would be to create external table Using the ORACLE_DATAPUMP Access Driver. Its neat and fast.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28319/et_dp_driver.htm#i1007502

  • Building xml in oracle without unnecessary tags using sql

    I wanted to build XML in oracle using sql, I found a way to construction using sql functions after a little research, I am completely unaware of any XML. My query is


    SELECT XMLELEMENT("orderwave",
      XMLAGG
    (XMLELEMENT("order_header",
      
    -- XMLATTRIBUTES(t2.l_name AS "order_number"),
      XMLFOREST
    (
      nvl
    (t2.l_name,' ') as "order_number",
      
    (
      SELECT XMLAGG
    (XMLELEMENT("order_line",
      XMLFOREST
    ( nvl(t1.l_name,' ') AS "label_type",
      nvl
    (t1.l_num,0) AS "lpn",
      nvl
    (t1.l_num,0) AS "sku"
      
    )
      
    )
      
    ) 
      FROM test_table t1
      WHERE UPPER
    (t1.record_type)='D'  
      
    ) AS sap
      
    )
      
    )
      
    )
      
    ) AS HEADER
      FROM test_table t2
      WHERE UPPER
    (t2.record_type) ='H';


    My problem is for using xmlforest, I had to use alias name 'sap' in my query to work and to get xml output. If i am using that, I am getting an unwanted tag 'SAP' around my data which I have to later cut it, which is unacceptable. Is there a way I can get rid of this extra 'SAP' tag without having to cut. The output data is


    <orderwave>
      
    <order_header>
      
    <order_number>order1</order_number>
      
    <SAP>
      
    <order_line>
      
    <label_type>test1</label_type>
      
    <lpn>1</lpn>
      
    <sku>1</sku>
      
    </order_line>
      
    <order_line>
      
    <label_type>test2</label_type>
      
    <lpn>2</lpn>
      
    <sku>2</sku>
      
    </order_line>
      
    <order_line>
      
    <label_type />
      
    <lpn>0</lpn>
      
    <sku>0</sku>
      
    </order_line>
      
    </SAP>
      
    </order_header>
      
    <order_header>
      
    <order_number>order2</order_number>
      
    <SAP>
      
    <order_line>
      
    <label_type>test1</label_type>
      
    <lpn>1</lpn>
      
    <sku>1</sku>
      
    </order_line>
      
    <order_line>
      
    <label_type>test2</label_type>
      
    <lpn>2</lpn>
      
    <sku>2</sku>
      
    </order_line>
      
    <order_line>
      
    <label_type />
      
    <lpn>0</lpn>
      
    <sku>0</sku>
      
    </order_line>
      
    </SAP>
      
    </order_header>
    </orderwave>


      Any help is really appreciated and thanks in advance.

    -- sample data
    with test_table
    as
    (
        select 'H' record_type, 'order1' l_name, 0 l_num from dual
        union all
        select 'H' record_type, 'order2' l_name, 0 l_num from dual
        union all
        select 'D' record_type, 'test1'  l_name, 1 l_num from dual
        union all
        select 'D' record_type, 'test2'  l_name, 2 l_num from dual
    )
    -- end of sample data
    select xmlelement
           (
              "order_wave"
            , xmlagg
              (
                xmlelement
                (
                    "order_header"
                  , xmlelement("order_number", t1.l_name)
                  , xmlagg
                    (
                      xmlelement
                      (
                         "order_line"
                       , xmlelement("label_type", t2.l_name)
                       , xmlelement("lpn", t2.l_num)
                       , xmlelement("sku", t2.l_num)
                      )
                    )
                )
              )
           ) xml_data
      from test_table t1
     cross
      join test_table t2
     where t1.record_type = 'H'
       and t2.record_type = 'D'
     group
        by t1.l_name;
    
    -- output
    /*
    
            
                    order1
                    
                            test1
                            1
                            1
                    
                    
                            test2
                            2
                            2
                    
            
            
                    order2
                    
                            test1
                            1
                            1
                    
                    
                            test2
                            2
                            2
                    
            
    
    */
    
  • Cross tab query

    Hi guys,.

    I hope someone can help.  I'm trying to generate a cross-tab query that displays the total output per month in our production environment.

    I used the query here http://www.dba-oracle.com/oracle_tips_crosstab_sql.htm and manipulated to

    select 
    DECODE(GROUPING(mtr.model_range||' '||mtr.oven_cavity), 1, 'All Cavities', mtr.model_range||' '||mtr.oven_cavity) AS "Model Range Cavity"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'JAN' THEN 1 else null end) "JAN"
       --,SUM(SP.INPUT_QUANTITY(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'JAN' THEN 1 else null end)) "JAN"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'FEB' THEN 2 else null end) "FEB"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'MAR' THEN 3 else null end) "MAR"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'APR' THEN 4 else null end) "APR"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'MAY' THEN 5 else null end) "MAY"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'JUN' THEN 6 else null end) "JUN"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'JUL' THEN 7 else null end) "JUL"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'AUG' THEN 8 else null end) "AUG"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'SEP' THEN 9 else null end) "SEP"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'OCT' THEN 10 else null end) "OCT"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'NOV' THEN 11 else null end) "NOV"
       ,count(case WHEN substr(NVL(sp.START_RUN_TIME,sp.SCHEDULED_START_DATE),4,3) = 'DEC' THEN 12 else null end) "DEC"
       ,count(case when 1 = 1 then 1 else null end) "Total"
    from XXMEL_PROVISA_SCHEDULES_PLAN sp
    ,    XXMEL_PVS_WORKS_ORDER_LIST wl
    ,    xxmel_pqm_cells pc
    ,    xxmel_provisa_model_to_range mtr
    WHERE 1=1
    AND sp.part_number = MTR.MODEL_NAME (+)
    AND sp.work_unit = pc.pk_cell_id
    AND sp.RUN_QUANTITY> 0
    And sp.input_quantity >0
    AND SP.PART_NUMBER = wl.MODEL (+)
    AND plan_id = :P17_PLAN_ID
    and simulation_id = :P17_SIM_ID
    and mtr.oven_cavity is not null
    group by rollup(mtr.model_range||' '||mtr.oven_cavity)
    

    This query works OK giving me the count of how many lines there are for each month, but I have to do is to add the field named MS. INPUT_QUANTITY for each month.

    I get the error message "ORA-00904:"SP"". "" ' INPUT_QUANTITY': invalid identifier "when you include the commented line on line 4 of the above query. SP. INPUT_QUANTITY is a valid column

    I use it on an instance of Oracle 10g.

    Thank you

    Chris

    Select
    DECODE (GROUPING (mtr.model_range |)) » '|| MTR.oven_cavity), 1, "all cavities, mtr.model_range | '|| MTR.oven_cavity) AS "model range cavity.
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "JAN" THEN 1 other trailing null) "JAN".
       , SUM ((affaire QUAND substr (NVL (sp.)))) START_RUN_TIME, Ms. SCHEDULED_START_DATE), 4, 3) = "JAN" THEN MS. INPUT_QUANTITY else 0 end)) "JAN". 
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "FEB" THEN 2 other trailing null) "FEB.
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "MAR" THEN 3 other trailing null) "MAR."
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "APR" AND 4 other trailing null) "APR."
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "MAY" THEN 5 other trailing null) «CAN»
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "JUN" THEN 6 other trailing null) "JUN".
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "JUL" THEN 7 other trailing null) "JUL".
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "August" AND 8 other trailing null) "AUG.
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "SEP" THEN 9 other trailing null) "MS."
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "OCT" THEN 10 other trailing null) 'OCT.
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "NOV" AND 11 other trailing null) "NOV.
       , count (case WHEN substr (NVL (sp.) START_RUN_TIME, Ms. (SCHEDULED_START_DATE), 4, 3) = "DEC" AND 12 other trailing null) "DEC".
    -- , County (cases where 1 = 1 and then 1 other trailing null) 'Total '.
       count (*) 'Total'
    of XXMEL_PROVISA_SCHEDULES_PLAN sp
    , Wl XXMEL_PVS_WORKS_ORDER_LIST
    , xxmel_pqm_cells pc
    , xxmel_provisa_model_to_range mtr
    WHERE 1 = 1
    AND sp.part_number = MTR. MODEL_NAME
    AND sp.work_unit = pc.pk_cell_id
    AND Ms. RUN_QUANTITY > 0
    And sp.input_quantity > 0
    AND MS. PART_NUMBER = wl. MODEL
    AND the plan_id = argument: P17_PLAN_ID
    and simulation_id =: P17_SIM_ID
    and mtr.oven_cavity is not null
    Group of rollup (mtr.model_range |) » '|| MTR.oven_cavity);

    ----

    Ramin Hashimzade

  • How to get the full DDL using SQL developer

    Hi all

    I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?


    Also how I see existing procedures using SQL developer?  A toad, we were able to achieve using the schema browser.

    Hi all

    I reached by - right click on connection - diagram open... and any browser will even...

  • Use SQL to write SQL in sqldeveloepr

    Is there a slick way to use SQL to write SQL in sqldeveloper? This would entail the release of a statement SQL SELECT, which, after all, is just sitting there in the window exit, ready to run running. Or am I pretty much stuck to writing for the hold file and then execute it?

    Hello

    You may be using a version of SQL Developer prior to 2.1. Using 2.1 or higher, the toolbar of the Output of the Script tab contains an icon to the output of the Script run as a Script that opens a new spreadsheet and copy the output of the script to run inside.

    Kind regards
    Gary

  • Access DB in SQL Server using SQL Dev 3.2.2

    Could someone tell me how to set up SQL Dev 3.2.2 to access a SQL Server database. I am trying to connect to SQL Server 2005
    I tried to install the driver, JTDS JDBC of updates, but apparently not have installed anything.
    I have donwloaded a driver JTDS directly and tried a few statements used on the old version of SQL Dev, but when I copy the JAR files and ddl to the bottom of my window no longer works, once I have delete the connections I get it back.

    Any help would be greatly appreciated

    Paul

    Published by: Trotty on December 10, 2012 11:22

    I often have problems to install third party JDBC drivers use check for updates. The downloaded files are of length zero.

    To manually install...

    Download jtds 1.2. Later versions are not supported.

    Place the jar somewhere.
    In sqldeveloper, go to tools | Preferences | Database | Third of JDBC drivers
    Click Add entry...
    Navigate to which you've placed the jar file and select it. Click OK and close the Preferences dialog box.

    The new connection dialog box should now include tabs for SQL Server and Sybase.

  • Cross tab report vertical display?

    Is it possible for a cross-tab (or another format of report template RTF) to achieve this?

    The only problem with our cross tab report is that the data should be grouped by day. This is the format we want to achieve:

    Employee - MON - TUE - sea
    John - 08:15 - 08:15 - 11:00
    -12:15 PM - 08:15-16:00
    -01:15 PM - 08:15-17:00
    -17:30 PM - 08:15-19:30
    Mary - 10:00 - 08:15 - 10:00
    -14:15 PM - 11:15 - 14:15
    -15:15 PM - 12: 15 - 15:15
    -19:30 PM - 17:15-19:30

    In this way, each watch used (John and Mary) time, they started to work and below the time they went on their lunch break below that time back from lunch break and below the time they finished the work.

    With a report of the cross we tab get these results:


    Employee - Monday - TUES - Wednesday - Thurs
    John - 08:15 - 12:15 - 13:15-17:30
    Mary - 10:00 - 14:15 15:15 PM - 19:30

    The data goes across the row instead of to the bottom. John 12:15 time lunch should appear directly above the time of 08:15 that he begins to work as in the first example.

    Suggestions for a report on the cross tab (or any other type of format) to display data like that?

    Thank you very much! :)

    OK, I got it, bit of hacking, and I got the result you wanted... old skool crosstabbing

    ! http://blogs.Oracle.com/xmlpublisher/images/CTab2.jpg!

    The fields are

    ! http://blogs.Oracle.com/xmlpublisher/images/CTab3.jpg!

    He writes for a blog next week...

    RTF model available here [http://blogs.oracle.com/xmlpublisher/files/ToughCrossTab.rtf]

    Tim

  • Column using SQL format

    Hi thanks for the reply.

    IF I want the column OPP_VALUE format how do I format it using sql

    I do when I create the table? I loaded these data using the spreadsheet.

    I tried
    The separate TAB. CLIENT, tab. SC, tab. HOURS, tab. OPP_VALUE, tab.opp_val_rank
    Of
    (SELECT CLIENT, SC, TIME, column OPP_VALUE format OPP_VALUE 999 999, DENSE_RANK() over (order by OPP_VALUE DESC) opp_val_rank)
    OF FMW_ANALY) tab
    WHERE the opp_val_rank < = 10;

    I get the error ORA-00936: lack of expression

    increase the 9 for your lot fits into:

    to_char(OPP_VALUE,'9999999,99999') OPP_VALUE
    
  • Cross tab with several expandable columns

    Hi all

    I develop a cross tab report... is my example of xml file
    <? XML version = "1.0" encoding = "UTF-8"? >
    rowset <>
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - Back-Office < / DD_CODE >
    < NOTE_DATE > 12 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - Back-Office < / DD_CODE >
    < NOTE_DATE > 11 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - Back-Office < / DD_CODE >
    < NOTE_DATE > 14 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - Back-Office < / DD_CODE >
    < NOTE_DATE > 112 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - monitoring < / DD_CODE >
    < NOTE_DATE > 121 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - monitoring < / DD_CODE >
    < NOTE_DATE > 122 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - monitoring < / DD_CODE >
    < NOTE_DATE > 131 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > Call - monitoring < / DD_CODE >
    < NOTE_DATE > 111 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - Back-Office < / DD_CODE >
    < NOTE_DATE > 11 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - Back-Office < / DD_CODE >
    < NOTE_DATE > 143 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - Back-Office < / DD_CODE >
    < NOTE_DATE > 122 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - Back-Office < / DD_CODE >
    < NOTE_DATE > 111 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - monitoring < / DD_CODE >
    < NOTE_DATE > 1432 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - monitoring < / DD_CODE >
    < NOTE_DATE > 112 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - monitoring < / DD_CODE >
    < NOTE_DATE > 121 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    Visit Site < DD_CODE > - monitoring < / DD_CODE >
    < NOTE_DATE > 123 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > visit - WDE Office < / DD_CODE >
    < NOTE_DATE > 123 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > visit - WDE Office < / DD_CODE >
    < NOTE_DATE > 1321 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > visit - WDE Office < / DD_CODE >
    < NOTE_DATE > 1312 < / NOTE_DATE >
    < / ROW >
    < ROW >
    Product < NAME > < / NAME >
    < DATE > 2008 - 05-01 T 00: 00:00.000 - 05:00 < / DATE >
    < TYPE_CODE > < / TYPE_CODE >
    < MOST_RECENT_NOTE_DATE > 1 < / MOST_RECENT_NOTE_DATE >
    < DD_CODE > visit - WDE Office < / DD_CODE >
    < NOTE_DATE > 211 < / NOTE_DATE >
    < / ROW >
    < / LINES >

    If I use the cross-tab Wizard... I get the following output...
    -------------Call - Back Office-------Call - Monitoring-------Site Visit - Back Office-------Site Visit -Monitoring-----Visit - WDE Office
    product              12                      121                       11                                    1432                   123
    
    but I'm looking for output like...
    
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
    The figures in each column are dynamic... I might have 2,3,4... (In this case, all are four)... I looked at the link below, but he had static 2 repeat columns... but in my case, the columns of repetition are unknown...
    http://winrichman.blogspot.com/2008/09/crosstab-with-multiple-repeating.html
    Is is possible to build a cross- like this tab... ?
    Thanks in advance...

    Hello
    Email me at colectionaru at gmail dot com
    I'll watch your xml and post a solution here.

    Kind regards
    Colectionaru

  • How to change the page that appears when I open the page new tab using the sign + on the tab bar?

    every time I open a new tab using + sign on the tabs bar, a Web site appears, which I was not aware. I want just the old rear setting. It must be my fault of friends. Help, please.

    You can do this on the topic: config page by resetting the pref browser.newtab.url via the context menu.

    See this article on the page tab (topic: newtab):

  • How to get a normal white page when open a new tab, using ' + '.

    When you open a new tab, using '+', I want Firefox to open the blank page. But it shows all my sites from the browsing history. 'White page' is with images-hyperlinks to these Web pages! How to get a normal white page without images-hyperlinks in navigation history without deleting all browsing history?

    Click on the button 'Hide new tab page' in the upper right corner of the page

  • The slider has stopped being able to open previous tabs. I can go back in a tab using the keyboard commands, but not there mouse.

    Without my change all settings, mouse ceased to be able to open previous tabs. They become locked. I can go back to a previous tab using keyboard commands. Why is this happening? How can I find the power to the mouse?

    You can try to find the real cause. Safe mode disables installed Extensions, themes (appearance) in (Alt + T) Tools > Add-ons. Hardware acceleration is also disabled - manual setting is Tools > Options > Advanced > general > use hardware acceleration when available. All these adjustments can be also enabled/disabled/changed manually to isolate the cause after exit safe mode and start Firefox normally.

  • CRM using SQL database in an environment of small business often inaccessible with the following error message

    Hello

    This is my first time on this forum so bear with my ignorance!  I'll expose the background of my setup and then explain the error.

    We have a small business with a server running SBS2011 and PC running Windows 8 and 8.1 connected to the server in a domain environment.

    We use a CRM product called Emu Tall that uses SQL Server 2008 R2 on the server for the database and the PC run a local application that connects to this database.

    On a daily basis, but completely randomly and sometimes several times a day, a user will try and open the application on a PC and get the following error message.

    Could not load file or assembly 'Microsoft.SqlServer.SqlEnum, Version = 10.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91' or one of its dependencies. The system cannot find the specified file.

    At first, I thought it must be a matter of waiting time as it seemed to happen every morning, but I've proved since that it occurs at any time of the day and is apparently unrelated to amount of users or idle time or something like that.

    Here's another oddity that hopefully sheds some light on it. If I go to the server and open the CRM application on the server, it works very well since it is only the PC that have the connection problem.  In addition, as soon as I connected to the server of any PC can connect immediately (until it happens again later in the day).  I don't need to stay connected to the server, connect one time and close the session and he "fixed" it for a few hours for all PC users.

    I contacted the CRM vendor, and they are completely confused and have no idea what to do.

    We are trolling along at the moment with me opening a session on the server for launch launch whenever a user receives the error message but it is far from satisfactory.

    A final observation is that it does not always.  It used to work fine.  The problem began just two months ago and seems to coincide with the increase in our user from 5 to 12 users license even if the CRM provider swear that it is nothing to do with the license.  They may agree; I don't know enough to argue the point.

    Any help will be appreciated! I'm sure it will be a simple solution and someone there will know why and the answer immediately but is elusive at this time.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for

  • script to fill in XML

    I have a predefined XML that contains a large number of tags that need to stay in the correct order. For each new item that I get, I need some of the tags with information now complete and save the XML to a new file by using the name of items. Is the

  • Private browsing is not private

    Private browsing is not private for example when I use the private cache is write on my HARD drive and when I close firefox is clear of the great now, I have some problems with my HARD drive and need to restore my files and I find not all hides the b

  • Cannot connect BT headset to Satellite R830

    Hello I just bought the headset Plantronics M50 and try to pair it to my Satellite R830.I installed the latest drivers for Bluetooth from Toshiba, but I'm not able to see the helmet in my PC. I've seen drivers Bluetooth (version 8.00.12) documentatio

  • How to add user libraries to FPGA palette?

    Hello I know how to add a VI library of user LV, but how do I make it easily accessible in the blockset FPGA palette? Kind regards Simo

  • What to do with a wandering record?

    I have a stray folder titled, d5deaa13e124f626152e0fc4fda which appeared after an update in the C:\ directory. It contains 2 folders labelled, amd64 and i386. AMD64 contains; filterpipelineprintproc.dll, msxpsdrv, msxpsinc.gpd, msxpsinc.ppd, mxdwdrv.