Cross tab with several expandable columns
Hi allI 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
Tags: Business Intelligence
Similar Questions
-
Cross Tab with group by period
Good afternoon
I wonder if some can help me with this query, I am writing?
The cross-tab is for columns 1 to 31, representing the days of the month, sum of the quantity of an article sold.
In addition the company description.
I would then finish with 3 entrances in the results for each company, but these are for the sum of the quantity of items in the following periods: -.
Breakfast: 01:00 - 10:00
Lunch: 11:00 - 14:00
Dinner: 17:00 - 22:30
Yes, the company is closed for the missing periods, for example 10:00-11:00 & 14:00 to 17:00.
Test case:
With similar results to: -.CREATE TABLE COMPANIES ( "ID" NUMBER(9,0), "CODE" NUMBER(8,0), "DESCRIPTION" VARCHAR2(40 CHAR), CONSTRAINT "PK_COMPANIES" PRIMARY KEY ("ID") ); INSERT INTO COMPANIES VALUES (1,1,'COMPANY A'); INSERT INTO COMPANIES VALUES (2,2,'COMPANY B'); INSERT INTO COMPANIES VALUES (3,3,'COMPANY C'); CREATE TABLE CUSTOMERS ( "ID" NUMBER(9,0), "CODE" VARCHAR2(30 CHAR), "CARD_NUM" VARCHAR2(30 CHAR), "DESCRIPTION" VARCHAR2(40 CHAR), "COMPANY_ID" NUMBER(9,0), CONSTRAINT "PK_CUSTOMERS" PRIMARY KEY ("ID") ); INSERT INTO CUSTOMERS VALUES (1,'001','001','A CUSTOMER', 1); INSERT INTO CUSTOMERS VALUES (2,'002','002','A CUSTOMER', 2); INSERT INTO CUSTOMERS VALUES (3,'003','003','A CUSTOMER', 3); INSERT INTO CUSTOMERS VALUES (4,'004','004','A CUSTOMER', 1); INSERT INTO CUSTOMERS VALUES (5,'005','005','A CUSTOMER', 2); INSERT INTO CUSTOMERS VALUES (6,'006','006','A CUSTOMER', 1); CREATE TABLE ARTICLES ( "ID" NUMBER(9,0), "CODE" VARCHAR2(20 CHAR), "DESCRIPTION" VARCHAR2(40 CHAR), CONSTRAINT "PK_ARTICLES" PRIMARY KEY ("ID") ); INSERT INTO ARTICLES VALUES (1,'001', 'A Meal'); CREATE TABLE TRANSACTIONS ( "ID" NUMBER(9,0), "TILL_ID" NUMBER(9,0) NOT NULL ENABLE, "SHOP_ID" NUMBER(9,0) NOT NULL ENABLE, "OPERATOR_ID" NUMBER(9,0), "TRANS_NUM" NUMBER(5,0) NOT NULL ENABLE, "SPLIT_NUM" NUMBER(5,0), "TRANS_DATE" DATE NOT NULL ENABLE, "TOTAL_AMOUNT" NUMBER(12,2) NOT NULL ENABLE, "BOOKKEEPING_DATE" DATE NOT NULL ENABLE, "CARD_NUM" VARCHAR2(30 CHAR), CONSTRAINT "PK_TRANSACTIONS" PRIMARY KEY ("ID") ); INSERT INTO TRANSACTIONS VALUES (1,1,1,1,1,NULL,to_date('27.04.2011 10:30:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'001'); INSERT INTO TRANSACTIONS VALUES (2,1,1,1,1,NULL,to_date('27.04.2011 10:31:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'002'); INSERT INTO TRANSACTIONS VALUES (3,1,1,1,1,NULL,to_date('27.04.2011 10:32:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'003'); INSERT INTO TRANSACTIONS VALUES (4,1,1,1,1,NULL,to_date('27.04.2011 10:33:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'004'); INSERT INTO TRANSACTIONS VALUES (5,1,1,1,1,NULL,to_date('27.04.2011 10:34:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'005'); INSERT INTO TRANSACTIONS VALUES (6,1,1,1,1,NULL,to_date('27.04.2011 10:35:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'006'); INSERT INTO TRANSACTIONS VALUES (7,1,1,1,1,NULL,to_date('27.04.2011 14:30:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'001'); INSERT INTO TRANSACTIONS VALUES (8,1,1,1,1,NULL,to_date('27.04.2011 14:31:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'002'); INSERT INTO TRANSACTIONS VALUES (9,1,1,1,1,NULL,to_date('27.04.2011 14:32:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'003'); INSERT INTO TRANSACTIONS VALUES (10,1,1,1,1,NULL,to_date('27.04.2011 14:33:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'004'); INSERT INTO TRANSACTIONS VALUES (11,1,1,1,1,NULL,to_date('27.04.2011 14:34:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'005'); INSERT INTO TRANSACTIONS VALUES (12,1,1,1,1,NULL,to_date('27.04.2011 14:35:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'006'); INSERT INTO TRANSACTIONS VALUES (13,1,1,1,1,NULL,to_date('27.04.2011 22:00:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'001'); INSERT INTO TRANSACTIONS VALUES (14,1,1,1,1,NULL,to_date('27.04.2011 22:01:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'002'); INSERT INTO TRANSACTIONS VALUES (15,1,1,1,1,NULL,to_date('27.04.2011 22:02:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'003'); INSERT INTO TRANSACTIONS VALUES (16,1,1,1,1,NULL,to_date('27.04.2011 22:03:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'004'); INSERT INTO TRANSACTIONS VALUES (17,1,1,1,1,NULL,to_date('27.04.2011 22:04:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'005'); INSERT INTO TRANSACTIONS VALUES (18,1,1,1,1,NULL,to_date('27.04.2011 22:05:05', 'DD.MM.YYYY HH24:MI:SS'),0.01,to_date('27.04.2011', 'DD.MM.YYYY'),'006'); CREATE TABLE TRANS_ARTICLES ( "TRANSACTION_ID" NUMBER(9,0) NOT NULL ENABLE, "ARTICLE_ID" NUMBER(9,0) NOT NULL ENABLE, "QTY_WEIGHT" NUMBER(10,3) NOT NULL ENABLE, "PRICE" NUMBER(10,2) NOT NULL ENABLE, CONSTRAINT "PK_TRANS_ARTICLES" PRIMARY KEY ("TRANSACTION_ID") ) INSERT INTO TRANS_ARTICLES VALUES (1,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (2,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (3,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (4,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (5,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (6,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (7,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (8,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (9,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (10,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (11,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (12,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (13,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (14,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (15,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (16,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (17,1,1,0.01); INSERT INTO TRANS_ARTICLES VALUES (18,1,1,0.01);
This is the Group of periods which is I don't know how to do.1 Company A - 01:00 10:00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 Company A - 11:00 14:00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 Company A - 17:00 22:30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 2 Company B - 01:00 10:00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 Company B - 11:00 14:00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 2 Company B - 17:00 22:30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0
Thank you & best regards,
AndrewHello
Here's a way to do it:
WITH all_time_slots AS ( SELECT '01:00 - 11:00' AS label, 1 / 24 AS start_time, 11 / 24 AS end_time FROM dual UNION ALL SELECT '12:00 - 15:00', 12 / 24, 15 / 24 FROM dual UNION ALL SELECT '17:00 - 23:30', 17 / 24, 23.5 / 24 FROM dual ) , all_days AS ( SELECT LEVEL AS day_of_month FROM dual WHERE LEVEL IN (1, 27, 31) -- ***** FOR TESTING ONLY ***** CONNECT BY LEVEL <= 31 ) , inner_joins AS ( SELECT EXTRACT (DAY FROM tr.bookkeeping_date) AS day_of_month , tr.trans_date , ta.qty_weight , cu.company_id FROM articles ar JOIN trans_articles ta ON ta.article_id = ar.id JOIN transactions tr ON tr.id = ta.transaction_id JOIN customers cu ON cu.card_num = tr.card_num WHERE ar.description = 'A Meal' AND tr.bookkeeping_date >= DATE '2011-04-01' AND tr.bookkeeping_date < DATE '2011-05-01' ) , unpivoted_data AS ( SELECT co.description , ad.day_of_month , NVL (ij.qty_weight, 0) AS weight_0 , ts.label FROM companies co CROSS JOIN all_time_slots ts CROSS JOIN all_days ad LEFT OUTER JOIN inner_joins ij ON ij.company_id = co.id AND ij.day_of_month = ad.day_of_month AND ij.trans_date - TRUNC (ij.trans_date) BETWEEN ts.start_time AND ts.end_time ) SELECT * FROM unpivoted_data PIVOT ( SUM (weight_0) FOR day_of_month IN ( 1 AS day_1 , 27 AS day_27 , 31 AS day_31 ) ) ORDER BY description , label ;
Ouput, given the example of data that you changed it about an hour ago:
DESCRIPTION LABEL DAY_1 DAY_27 DAY_31 ----------- ------------- ---------- ---------- ---------- COMPANY A 01:00 - 11:00 0 3 0 COMPANY A 12:00 - 15:00 0 3 0 COMPANY A 17:00 - 23:30 0 3 0 COMPANY B 01:00 - 11:00 0 2 0 COMPANY B 12:00 - 15:00 0 2 0 COMPANY B 17:00 - 23:30 0 2 0 COMPANY C 01:00 - 11:00 0 1 0 COMPANY C 12:00 - 15:00 0 1 0 COMPANY C 17:00 - 23:30 0 1 0
Sorry, I'm short on time right now. I'll try to post an explanation in 4 hours approximately.
See my next post for an explanation.Published by: Frank Kulash, 28 April 2011 21:29
-
Here's a puzzle. The table on the cross tab below should display text values in row 2, column 2 and not a sum. In addition, there are several values for each column, and they need to be under another. For example, let's say that the desired output is as follows:
Industry - 2005 - 2004 - 2003
Society 1-10-30-25
-------------------------20---------50----------0
Company 2 - 12 - 0-15
'0' cells may simply include white, that's all that is needed.
Here's the RTF cross code table tab:
Cell 1.1 {noformat} <? horizontal-break-table: 1? > {noformat}
Cell 1.2 {noformat} <? for-each-group@column:results;. / YEAR? > <? YEAR? > <? end for each group -? > {noformat}
Cell 2.1 {noformat} <? for-each-group: RESULTS; / INDUSTRY? > <? variable@InContext:G1;current-group()? > <? INDUSTRY? > {noformat}
Cell 2, 2 {noformat} <? for each group-@cell://RESULTS;. / YEAR? > <? for - each:current-group()? > <? ($G1[(./YEAR=current()/YEAR)]/SALES)? > <? end foreach? > <? end for each group -? > <? end for each group -? > {noformat}
However, this does not have the expected results. It displays this, which is not correct:
Industry - 2005 - 2004 - 2003
Society 1-10-30-25
-------------------------10---------30---------25
-------------------------10---------0-----------0
Company 2 - 12 - 0-15
-------------------------12---------0----------15
-------------------------12---------0-----------0
The following XML code:
rowset <>
< RESULTS >
The <>Company INDUSTRY 1 < / INDUSTRY >
< YEAR > 2005 < / YEAR >
< > 10 SALES < / SALES >
< / RESULTS >
< RESULTS >
The <>Company INDUSTRY 1 < / INDUSTRY >
< YEAR > 2005 < / YEAR >
< > 20 SALES < / SALES >
< / RESULTS >
< RESULTS >
The <>Company INDUSTRY 1 < / INDUSTRY >
< YEAR > 2004 < / YEAR >
< > 30 SALES < / SALES >
< / RESULTS >
< RESULTS >
The <>Company INDUSTRY 1 < / INDUSTRY >
< YEAR > 2004 < / YEAR >
< SALES > 50 < / SALES >
< / RESULTS >
< RESULTS >
The <>Company INDUSTRY 1 < / INDUSTRY >
< YEAR > 2003 < / YEAR >
< > 25 SALES < / SALES >
< / RESULTS >
< RESULTS >
<>company 2 < / INDUSTRY >
< YEAR > 2005 < / YEAR >
< > 12 SALES < / SALES >
< / RESULTS >
< RESULTS >
<>company 2 < / INDUSTRY >
< YEAR > 2003 < / YEAR >
< > 15 SALES < / SALES >
< / RESULTS >
< / LINES >
Any ideas? Thank you very much!Give you a few points: 0)
-
Shortcut for the new window with several tabs
Is it possible to have a shortcut on the desktop to launch a new window with several tabs? For example - home page is set to "www.google.com", but the shortcut opens new window with tabs "www.cnn.com" and "www.youtube.com".
Then far,.../firefox.exe-nouveau-fenetre followed by the two URL in quotes will open two new windows. Entry - new-window "www.cnn.com" - new-tab 'www.youtube.com' will open two new windows if no instance of firefox is open, but if another window is already open, youtube will add a tab to the already open window, rather than the new window with cnn.com
In reply to myself... withdrawal-order new window (and-new-tab), now it works.
Looks like I'm too complicated it.
shortened final was "C:\Program Files (x 86) \Mozilla ' 'url1'"url2.
-
all play them at the same time with several videos tabs
When I have several tabs open tabs with videos that all try to play at the same time
Hi crazychief,
Some Web sites will have this default tag value for their videos. You can try:
- Enter about: config in the address bar and press to enter.
- Agree that you will be attentive
- Search for media.autoplay.enabled
- Double click to change the false value
Hope this helps!
-
Pivot with several aggregate function calls?
Hello
You use Oracle 11 g R2, with APEX 4.2.3 I'm taking of the cross tab (pivot) built this query:
Start
return ' with pivot_data like)
SELECT department_id, job_id, salary
Of oehr_employees
)
SELECT *.
OF pivot_data
PIVOT)
Salary
FOR department_id
IN ('| v ('P5_DEPT_LIST') |')
)';
end;That works very well and add in the comm column and also have the sum of pivot and build department_id in database columns... I've not found no documents showing how have several columns summed up in a pivot query again.
Any ideas?
Thank you
Tony Miller
Software LuvMuffin
Ruckersville, WILLTexasApexDeveloper wrote:
I've not found no documents showing how have several columns summed up in a pivot query again.
Not even THE official documentation?
http://docs.Oracle.com/CD/E11882_01/server.112/e25554/analysis.htm#DWHSG8731
-
Expandable columns PLM4P 6.2 question
Hello
I need a help on the following problem.
I try to use the expandable columns feature to add a column in the grid of "Sourcing approvals specification-oriented", on the approval tab profile Sourcing provide.
After you create a new class and adding the necessary configuration, I am able to see properly the new column in the grid (with all of the empty cells).
The problem that I face is all the context object that is passed to the method GetCellValues.
Public collection < IExtensibleCell > GetCellValues (IExtensibleColumnContext context)
The object 'context. Context' is a SortableEventingList that contains a collection of objects 'RowModel', and this class is a nested private class of prodika.ctlSpecRelatedSourcingApproval.
Because of this, I am not able to use this object.
Y at - it something I am doing wrong?
How can I solve this problem?
Thank you very much
Paolo
You are able to access the objects of reflection. See this link for more details on the reflection. https://msdn.Microsoft.com/en-us/library/ms173183.aspx
We have a built-in helper class Xeno.Prodika.Reflection.ReflectionHelper in ProdikaCommon.dll. You can use it as below.
var obj = ObjectCreator.Create(); ReflectionHelper.GetPropString(obj, "Name");
-
Creating a DVD with several file format of files/best project for export (PE13)
Hello! I first 13 (just improved 10) elements and trying to figure out the best way to save my movie on DVD. There are at least two different project files (the film, shock and eventually a video "making of") that I want to put on the same DVD with a menu. A couple of years, trying to do this with first Elements 10, I could not get it to work and had to use a separate DVD menu software. I can do that again, if I need to, but the software I used was lost, so I thought I would check to see if it can be done first before going to buy it again.
If I can't do it in first, I need advice on the best format to save project files to burn to DVD later. I'm a novice, and most of these sizes looks like gibberish to me! I had problems in the past (a few years ago) with a black border appears around the film, after he was saved, reducing the size of the movie, and I'm hoping to avoid that...
The film is about 1 1/2 hrs long
The blooper reel is about 17 minutes
If there is more info to help answer my questions I'll be happy to find it!
alsyarn
Thank you for the important information for troubleshooting your Premiere Elements burn on DVD-VIDEO to DVD disc so that it presents throughout without black borders.
Open the first elements 13/13.1 to his Expert workspace, go to file Menu/New/Project and set the project preset manually to
NTSC
DV widescreen
Do follow the following order
- Open the project in the workspace Expert and go to file menu/new project and change the settings.
- In the settings, set the project preset to NTSC/DV widescreen. OK to get out of there.
- In the dialog box new project opens, rename the project and make sure you have a checkmark next to the "Force selected setting on this project." OK to get out of there.
- In the Expert workspace, import your media source by using Add Media / choice.
Import your Source 3 (720 x 480 widescreen display 16:9) - which should occupy all the space area monitor Edit which is a space of DV widescreen size.
Import your Source 1 (1920 x 1080 16:9)-that must fill the space of the monitor Edit once the scale is automatically just to fill the space of the Edit monitor.
Import your Source 2 (720 x 480 which is what is because it has a format of 1.0 pixels)-that does not fit properly. Balance this video in Edit area monitor to enter space monitor without black borders.
It is unclear why the project 720 p settings have been set for this instead of NTSC DV widescreen. But please implement your project as described above, then export as suggested.
I have suggested above based on destination DVD VIDEO to DVD disc. When you have a montage with several formats, you set an adjustment everything with scaling in the monitor area space Edit put in place by the predefined project and major. General guideline - the project preset should correspond to the properties of the media source... and with more than one type of format, you define major and if adapt everything with scaling if you don't want black borders.
Another tip... When you want to scale width and height separately in edit box monitor, first go to applied effects tab/Applied effects Palette/panel of the selected clip expanded Motion and remove the box keep the Proportions.
Please consider. And then we'll try to condense all that into a workflow that will work for you.
Thank you.
RTA
-
Homepage opens with two additional tabs with quicklinks undesirable.
Opening of my homepage now also open 2 two additional tabs with tile links to Facebook, Twitter and other undesirable websites. Maybe it's Yahoo, which I don't use. I might add the screenshot of these tabs, but need help to do it. It's a painting, *.png file. Homepage has no "pipes" | in the address.
You can check the setting of the homepage:
- Tools > Options > general > startup: Homepage
Firefox supports several home pages separated by ' |' symbol (pipe).
You can check the suspicious extensions or recently installed unknowns.
Your list of details of the system shows that you have a user.js file in the profile folder to initialize prefs each time you start Firefox.
The user.js file is present than if you or another software has created this file and normally it wouldn't be here.
You can check its contents with a text editor (right click: open with) If you do not create this file yourself.The user.js file is read whenever Firefox is started and initializes the preferences to the specified value in this file, so the preferences set via user.js can be changed temporarily for the current session.
You can remove possible user.js and numbered prefs-# .js files and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.
-
I don't want the new tab with apps opening when I open Firefox, how to fix this?
I want to just the home page to open without the new tab with a search bar on this issue.
Sometimes the home page changes are caused by a new extension or external software change your Firefox settings. These can sneak in when you install other software, as many free programs include a set of less useful things.
Could check you your extensions for the actions essential or unrecognized? Open the page modules using either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click Extensions. Then, when in doubt, turn off. Or if it's obviously nonsense, delete.
If the button Delete is absent for an extension, you can usually find a way to remove it using the Control Panel, uninstall a program (or all what is it called now to the point Windows 8.1). By clicking on the column heading to sort by date, "installed on" is useful to find and remove unknown elements not trustworthy bundle or other additions.
Once your system is clean, your preferred homepage appears, either immediately or after the update the setting in Options?
-
After updating to the latest version of Firefox, when it opens I get two tabs, and one that appears on my screen is new tab with my homepage on the other, which requires that I click on it to go. Also, when I click on a link, the same thing happens, a new tab page comes up, with what I clicked on as another tab I have to click to get to. It's actually quite boring and inconvenient. How to get back to the way it was, so that when I run Firefox it opens on my homepage, and when a new page opens, I see the content of the link I clicked on? This new and improved IMO is really new and worse.
A further extension could have snuck in. These can be bundled with other software you may have installed recently.
Try turning off all non-essential or unrecognized extensions on page modules. Either:
- CTRL + SHIFT + a
- Firefox orange (or the Tools menu) button > Add ons
In the left column, click Extensions. Then, when in doubt, turn off. (Or so completely junk, delete).
Typically, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.
That get rid of the extra tab?
Note: I also suggest to visit the Control Panel, uninstall a program and by clicking on the column heading "installed on". This should bring the most recent additions at the top and group by install date so that you can examine the software may have unexpected how have been installed.
-
What happened to the tab with the sign + to create an empty tab?
I recently upgraded to v3.6 through several versions of Firefox v8.01. There was once a small tab with a sign more at the end of the tab bar that allowed me to create a new empty tab. It seems to have disappeared somewhere beyond v4.0
What happened and how I get it back? Yes I know I can activate the button of toolbar for a new tab, but have it at the end of the tab bar is more natural to use.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
See also:
-
Slide with several digital poster Down filter event Bug button?
A key event filter on a slide with several digital screens down does not work as expected when not waived. If you for example tab of this slide with two digital screens digital display, the cursor remains on his position, rather than get KeyFocus to the next control. Same behavior at fault if you want to move the cursor on the left/right keyboard, nothing happens. Anyone an idea why?
A simulation of that VI is attached. All other controls, a Slide with a digital display or a standard digital control, the key Down event filter behaves as expected... I tested in versions 8.5.1 LV (attachment), LV2012SP1 and LV2013.
A teammate now found a solution or workaround. We do not know if this is the way it should be, if yes, then it's a bit hidden, but it works!
It seems that the cursor needs to know on what digital display the FocusObj is when you use the event notifier KeyDown. Then, when to get the reference of the digital display active and the wiring of this reference to the terminal FocusObj filter event everything works as expected, numbers of tabs, typed, cursor etc and have to filter and notify events structure to the event.
A vi and a printscreen are attached.
The question is probably due to the specialty of slides and the class NumericWithScale in general, as its digital displays are a little under References and during the implementation of the features of event KeyDown for the class NumericWithScale filter, LV simply does not know on which side of the main action control part must be executed.
Or someone has a better solution and explanation?
-
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 subtract a grunge texture of a layer with several objects?
Hi all
I've been struggling with this for hours. Would be very grateful for help.
I'm trying to apply a vintage texture to some vector illustrations.
In the screenshot, the work I created is in the layer of "work." I tried to simplify the work as much as possible by using the union, merge, expand, etc. I wanted to do a piece of work, but that seems so simple that I can get it.
When I try to perform a subtraction on the layer 'work' with the layer of 'texture', basically everything disappears.
I suspect that it does not work as expected because the layer of my work is always composed of several objects and not a unified object.
Vintage texture superimposed on the work looks good, but I need this subtraction in vector because I intend to get it printed on a shirt in one color, so I can't get the holes filled with color.
Any help would be greatly appreciated.
Thank you!
Ray
How can I activate art in a single compound path?
First of all, to unite all paths with the first button in the Pathfinder palette. Then choose object > compound path > make (or press Command-8).
But don't do it this way. Use an opacity mask.
If I use the grunge texture as an opacity mask, do I still to transform the art into a single compound path first or I can do to a layer with several objects as if it were now?
No, you have not; You can keep a complete editibility of your design. You need to just design group firstly, why the opacity mask applies to all this.
Opacity masks are easier to use if you uncheck "Clip" after their creation. Then, all parts of the mask that is black will be transparent; each part that is white will be opaque, and the things which are shades of gray will be partially transparent. Just like in Photoshop. Right now, your grunge texture is white, so you would need to change to black after making your opacity mask.
Maybe you are looking for
-
iPad Air keeps the beep when I connect it to my MacBook Pro 15 retina.
Hi, I have connected my Air iPad to my MacBook Pro 15 new retina and it maintains to the beep on and outside. It is a problem, I only experience with my MacBook Pro with two USB ports. When I connect the iPad to my MacPro, it works fine: it loads and
-
Satellite Pro M30 - audio output problem
Hello Audio output level is lower when I bought this laptop... All of a sudden without any reason. I almost don't hear all the sounds... What is the problem? Software is ok. I reinstall the audio drivers. Once when it was portable sound back to a nor
-
Update iOS 9.2 recommendation
Personal salvation, I have an iPhone 6 with 2 suggestions that can make it more user-friendly new version of iOS (newer than the latest iOS version 9.2): (1) you know when you double tap the home button, all apps from the ground back appear? After cl
-
Windows 7 x 64 envy 700-109cb - don't miss you that 2 drivers
This forum is fantastic! Thank you HP Experts! I was able to install W7 and locate most of the drivers for this card mother IPM87-MP. Could you please help to locate the 2 drivers I'm missing? Network controller The drivers for this device are not
-
I did the free upgrade to Office 2007 to Office 2010 and he watered my machine. The registry seems to be totally shot. I had to manually uninstall 2010 and I tried for 4 days to put 2007 on my machine, but only get errors. I don't have my recovery di