Group by count in xml
Hi
I have a xml file like this
G1
Col1
Col2
G2
Type name1 tag
Type name 2. Tag
G3
Count tag for type name1
Several tags for type name1
Count tag for type name 2
Several tags for type name2
G3 end
G2 end
G1
How to calculate tge sum of all counts according to the type name 1 or 2
...like. type1: count10
Type 2:count 5
Please help
Thanks
Kp
Hi BIPUser
Thanks a lot for your time..But it did not work...I pasted the exact thing..Can you please review and let me know..
Trying to find the exact no of days for 'BLUE' Type..Another type is RED..but not yet got data for that..
<?xml version="1.0" encoding="UTF-8"?>
<A1>
<Q1>
<Invoice_Type>BLUE</Invoice_Type>
<tag2>150</tag1>
<tag3>1234</tag2>
<tag4>2567</tag3>
<Q2>
<textattribute5>10000001</textattribute5>
<invoice_type>BLUE</invoice_type>
<Q4>
<Hold_Release_days>132.95</Hold_Release_days>
<Q4_Invoice_id>10000001</Q4_Invoice_id>
</Q4>
</Q2>
<Q2>
<textattribute5>200001</textattribute5>
<invoice_type>BLUE</invoice_type>
<Q4>
<Hold_Release_days>2.99</Hold_Release_days>
<Q4_Invoice_id>200001</Q4_Invoice_id>
</Q4>
</Q2>
</Q1>
<Q1>
<Invoice_Type>RED</Invoice_Type>
<tag2>61</tag2>
<tag3>222</tag3>
<tag4>400</tag4>
<Q2>
<textattribute5>10000002</textattribute5></Q1>
<invoice_type>RED</invoice_type></A1>
<Q4>
<Hold_Release_days>152.95</Hold_Release_days>
<Q4_Invoice_id>10000002</Q4_Invoice_id>
</Q4>
</Q2>
<Q2>
<textattribute5>200002</textattribute5>
<invoice_type>RED</invoice_type>
<Q4>
<Hold_Release_days>2.00</Hold_Release_days>
<Q4_Invoice_id>200002</Q4_Invoice_id>
</Q4>
</Q2>
</A1>
thanks
kp
Similar Messages
-
How to create Matrix with Group report layout in xml
Hi,
i would be glad if anyone could tell me How to create Matrix with Group report layout in xml?
Here i am attaching the required design doc
below is the code
select COST_CMPNTCLS_CODE,
-- crd.RESOURCES,
NOMINAL_COST,
cmm.COST_MTHD_CODE,
-- crd.COST_TYPE_ID,
gps.period_code
-- ORGANIZATION_ID
from CM_RSRC_DTL crd,
gmf_period_statuses gps,
CM_MTHD_MST cmm,
CR_RSRC_MST crm,
CM_CMPT_MST ccm
where gps.period_id = crd.PERIOD_ID
and crd.cost_type_id = cmm.cost_type_id
and crd.RESOURCES = crm.RESOURCES
and crm.COST_CMPNTCLS_ID = ccm.COST_CMPNTCLS_ID
and gps.period_code in (:p_period1, :p_period2, :p_period3)
group by COST_CMPNTCLS_CODE, cmm.COST_MTHD_CODE, gps.period_code,NOMINAL_COST
order by 1,2,3,4.
The o/p of the report shoud be as given below
Period-1 Period-2 Period-3 Period-4
COMPONENT
LABOUR - DIRECT
Actual 1 2 3 4
Actual Rate 10 10 10 10
Standard Rate
Var%
DEPRICIATION-DIRECT
Actual
Actual Rate
Standard Rate
Var%
OVERHEAD - DIRECT
Actual
Actual Rate
Standard Rate
Var%
LABOUR - IN DIRECT
Actual
Actual Rate
Standard Rate
Var%
Thanks in advanceYour friend is obviously not a reliable source of HTML
information.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Mr.Ghost" <[email protected]> wrote in
message
news:f060vi$npp$[email protected]..
> One of my friends advised me to develop my whole site on
the layout mode
> as its
> better than the standard as he says
> but I couldnot make an ordinary table with rows and
columns in th layout
> mode
> is there any one who can tell me how to?
> thanx alot
> -
Hello Friends,
I have a query where I select organization, item_num, and transaction_date.
I need to group and count the result by transaction_date, so I will have 3 groups:
First - will count records where transaction_date falls between the 1st and 10th of the month.
Second - will count records where transaction_date falls between the 11th and 20th of the month.
Third - will count records where transaction_date falls between the 21st and 31st of the month.
The result of this count will be used in the Oracle Report.
Please, give me your advise on how I can achive this.
Thank you.select organization,
item_num,
count(case
when transaction_date between trunc(transaction_date, 'mm') and trunc(transaction_date, 'mm') + 9 then 1
end) "1-10",
count(case
when transaction_date between trunc(transaction_date, 'mm') + 10 and trunc(transaction_date, 'mm') + 19 then 1
end) "11-20",
count(case
when transaction_date between trunc(transaction_date, 'mm') + 20 and trunc(last_day(sysdate)) then 1
end) "21-end"
from mytable
group by organization, item_num
Ramin Hashimzade -
How to get the page count in XML Publisher Report
Hi Team,
I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
Best Regards
Srithere is some seeded variable available please read xml publisher developer user guide
-
Counting of XML nodes based on a condition
Hello,
I have following XML with me:
<?xml version="1.0" encoding="utf-8" ?>
<Rowsets DateCreated="2010-11-30T11:12:10" EndDate="2010-06-05T16:52:23" StartDate="2010-06-05T16:52:23" Version="12.0.10 Build(18)">
<Rowset>
<Columns>
<Column Description="Material Number" MaxRange="1" MinRange="0" Name="MAT" SQLDataType="1" SourceColumn="MAT"/>
<Column Description="Plant" MaxRange="1" MinRange="0" Name="WER" SQLDataType="1" SourceColumn="WER"/>
<Column Description="Storage Location" MaxRange="1" MinRange="0" Name="LGO" SQLDataType="1" SourceColumn="LGO"/>
<Column Description="" MaxRange="1" MinRange="0" Name="TANK" SQLDataType="1" SourceColumn="TANK"/>
<Column Description="Batch Number" MaxRange="1" MinRange="0" Name="BATCH" SQLDataType="1" SourceColumn="BATCH"/>
<Column Description="Valuated Unrestricted-Use Stock" MaxRange="1" MinRange="0" Name="CLABS" SQLDataType="8" SourceColumn="CLABS"/>
<Column Description="Quality Stock" MaxRange="1" MinRange="0" Name="CINSM" SQLDataType="8" SourceColumn="CINSM"/>
</Columns>
<Row>
<MAT>111</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>2020</BATCH>
<CLABS>0</CLABS>
<CINSM>19.000</CINSM>
</Row>
<Row>
<MAT>222</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>1010</BATCH>
<CLABS>1000000.000</CLABS>
<CINSM>0</CINSM>
</Row>
<Row>
<MAT>333</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>1010</BATCH>
<CLABS>1000000.000</CLABS>
<CINSM>0</CINSM>
</Row>
<Row>
<MAT>444</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>1010</BATCH>
<CLABS>1000000.000</CLABS>
<CINSM>0</CINSM>
</Row>
<Row>
<MAT>555</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>1010</BATCH>
<CLABS>1000000.000</CLABS>
<CINSM>0</CINSM>
</Row>
<Row>
<MAT>666</MAT>
<WER>US</WER>
<LGO>T1</LGO>
<TANK>T100</TANK>
<BATCH>1010</BATCH>
<CLABS>1000000.000</CLABS>
<CINSM>0</CINSM>
</Row>
</Rowset>
</Rowsets>
Now, I want my select statement to return following based on a count of XML node:
select
If count(/Rowsets/Rowset/Row[CLABS > 0]/BATCH) > 1 then 'Mixing'
else if count(/Rowsets/Rowset/Row[MAT = "Parameter Value"]/MAT) = 0 then 'None'
else 'Other'
from Tablename TT where TANK = something and Plant = something
How can I achive this using Oracle query? I can do it using SQL server but not getting the correct syntax for Oracle :(I got the answer on my own :)
SELECT CASE WHEN count(RW."CountofBATCH") > 1 then 'Mixing'
WHEN count(RW."CountofMAT") = 0 then 'None'
ELSE 'Other'
END
FROM TABLENAME TT, XMLTable('/Rowsets/Rowset/Row' PASSING TT.XMLCOL
COLUMNS
"CountofBATCH" PATH '/Row[CLABS > 0]/BATCH',
"CountofMAT" PATH '/Row[MAT = "[Parameter Value]"]/MAT'
) AS RW
where
some condition -
I have an xml report template; the request is that if the page brakes in for-each-group
To set page number.(Index+1)
How can i mange the numbers of pages if i can know when the page brakes
(Using xml publisher 5.5)Hi
What are you trying to achieve functionally in your template?
The template is completely unaware of the page numbers, its not until the rendering engine lays the contents of the report onto the page we do not know what is going to fit on each page.
Tim -
How to Get the Total Page Count in XML Reports?
Hi All,
we have a requirement where we have to print Page X of Y(Total Page Count of the document).
But whenever my header group resets the total count is also reseting.
for e.g.
I m getting the page 1 of 4, page 2 of 4, page 3 of 4, page 4 of 4 for my first record.
same way i am getting page 1 of 3 ,page 2 of 3, page 3 of 3 for my second record.
But the requirement is to display page 1 of 7, page 2 of 7, page 3 of 7, page 4 of 7 for the first header record.
And page 5 of 7, page 6 of 7 and page 7of 7 for the second record.
Is there any way to achieve this?
Thanks,
SachinYou might have better luck getting an answer here:
BI Publisher -
How To Use QoQ For Group By Count
Ok, I am having a issue with Group By and Count. Basically, here is what i am working with...
<cfquery name="TEST" datasource="MyDataSource">
SELECT
ContentID, ContentName, ProductID
FROM
MyTable
</cfquery>
HERE IS AN EXAMPLE DUMP
1, ABCD, 33
1, ABCD, 34
1, ABCD, 35
1, ABCD, 36
1, ABCD, 37
2, EFG, 342
2, EFG, 343
2, EFG, 344
2, EFG, 345
2, EFG, 346
2, EFG, 347
2, EFG, 348
3, HIJK, 101
3, HIJK, 102
3, HIJK, 103
Then I run this query on it.
<cfquery name="MYGROUPLIS" dbtype="query">
SELECT
ContentID, ContentName, COUNT(ProductID)
FROM
TEST
GROUP BY
ContentID, ContentName
</cfquery>
It Should be this:
1, ABCD, 5
2, EFG, 7
3, HIJK, 3
But instead i get this:
1, ABCD, 12
1, EFJ, 12
1, HIJK, 12
WHY?????I refactored your example code to be stand-alone, and ran it.
Here's the code:
<cfscript>
qTest = queryNew("contentId,contentName,ProductID", "Integer,Varchar,Integer");
queryAddRow(qTest); querySetCell(qTest, "contentId", 1); querySetCell(qTest, "contentName", "ABCD"); querySetCell(qTest, "ProductID", 33);
queryAddRow(qTest); querySetCell(qTest, "contentId", 1); querySetCell(qTest, "contentName", "ABCD"); querySetCell(qTest, "ProductID", 34);
queryAddRow(qTest); querySetCell(qTest, "contentId", 1); querySetCell(qTest, "contentName", "ABCD"); querySetCell(qTest, "ProductID", 35);
queryAddRow(qTest); querySetCell(qTest, "contentId", 1); querySetCell(qTest, "contentName", "ABCD"); querySetCell(qTest, "ProductID", 36);
queryAddRow(qTest); querySetCell(qTest, "contentId", 1); querySetCell(qTest, "contentName", "ABCD"); querySetCell(qTest, "ProductID", 37);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 342);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 343);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 344);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 345);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 346);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 347);
queryAddRow(qTest); querySetCell(qTest, "contentId", 2); querySetCell(qTest, "contentName", "EFG"); querySetCell(qTest, "ProductID", 348);
queryAddRow(qTest); querySetCell(qTest, "contentId", 3); querySetCell(qTest, "contentName", "HIJK"); querySetCell(qTest, "ProductID", 101);
queryAddRow(qTest); querySetCell(qTest, "contentId", 3); querySetCell(qTest, "contentName", "HIJK"); querySetCell(qTest, "ProductID", 102);
queryAddRow(qTest); querySetCell(qTest, "contentId", 3); querySetCell(qTest, "contentName", "HIJK"); querySetCell(qTest, "ProductID", 103);
</cfscript>
<cfquery name="qGrouped" dbtype="query">
SELECT contentId, contentName, COUNT(ProductID)
FROM qTest
GROUP BY contentId, contentName
</cfquery>
<cfdump var="#qGrouped#">
Here's the result:
COLUMN_2
CONTENTID
CONTENTNAME
1
5
1
ABCD
2
7
2
EFG
3
3
3
HIJK
Which is what of us expect.
What version of CF are you on? I'm running this on CF8.0.1
Are you certain about the data coming back from the DB?
Adam -
Group and count by range of amount
Hi all,
I have a list of 400,000 lines like this:
But I need grouped by amount of 10 and count the number of clients grouped, something like this:
I hope the pictures explain better my problem.
Thanks for your support
CarlosHi Carlos,
According to your description, this issue is more related to excel instead of excel development.
The Excel IT Pro Discussions forum is the better place for excel questions, we will move it there for you.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
mytable
id | yy
1 | 78
2 | 78
3 | 78
3 | 79
3 | 79
4 | 79
5 | 79
5 | 80
Desired output:
yy | id_count
78 | 3
79 | 2
80 | 0
Following query doesn't work, as it doesn't take into account that id was already counted
select yy, count(distinct id) as id_count
from mytable
group by yy
--output
yy | id_count
78 | 3
79 | 4
80 | 1
Hope this makes sense.
Ideas?Hi,
You only want to count each id once, with the first (that is, lowest) yy: is that right?
Here's one way:
WITH got_r_num AS
SELECT id
, yy
, ROW_NUMBER () OVER ( PARTITION BY id
ORDER BY yy
) AS r_num
FROM my_table
SELECT yy
COUNT ( CASE
WHEN r_num = 1
THEN id
END
) AS id_cnt
FROM got_r_num
GROUP BY yy
ORDER BY yy
;Doing anything for the first of each id is probably a job for "ROW_NUMBER () OVER (PARTITION BY id ...)". -
Need Help with an Group By Count
I'm having some difficulties with a query.
My results are as follows:
Acct_num - Route_ID - Service
12345678 - 1112222 - Gas -
12345678 - 1112222 - H20 -
12345678 - 3334444 - Elec -
98765432 - 8889999 - Gas -
98765432 - 8889999 - H20 -
98765432 - 8889999 - Elec -
What i need to do is write a script that will show me, any acct_num's where the route_id is different. All Route_id's should be the same for all services, but in some cases, they were entered incorrectly and i need to find the invalid ones, so i can correct them.
Ideally, i would only like to see one row, but if i can just get my results to show me all the acct_num for the ones where the route_id is different, that would be a great start
I have been trying to use a distinct and do a count on the acct_num, but my counts are ignoring the distinct.
This is the code i have been using so far, but i don't think it is on the right path:
SELECT distinct SA.SERVICE_ACCOUNT_NUMBER,
MR.METER_ROUTE_ID,
-- ECAT.SERVICE_TYPE--,
count(SA.SERVICE_ACCOUNT_NUMBER) as ACCT_NUM_COUNT
FROM SERVICE_ADDRESS SADD,
SERVICE_ACCOUNT SA,
SERVICE_SERVICE_ACCOUNT SSA,
EQUIPMENT E,
EQUIPMENT_CLASS EC,
EQUIPMENT_CATEGORY ECAT,
EQUIPMENT_LOCATION EL,
EQUIPMENT_LOCATION_EQUIP ELE,
EQUIPMENT_LOCATION_ROUTE ELR,
EQUIPMENT_TYPE ET,
METER_ROUTE MR
WHERE SADD.SERVICE_ADDRESS_ID = SA.SERVICE_ADDRESS_ID
AND SSA.SERVICE_ACCOUNT_NUMBER = SA.SERVICE_ACCOUNT_NUMBER
AND SSA.END_DATE IS NULL
AND SSA.SERVICE_ID = E.CURRENT_SERVICE_ID
AND ET.EQUIPMENT_CLASS = EC.EQUIPMENT_CLASS
AND EC.EQUIPMENT_CATEGORY = ECAT.EQUIPMENT_CATEGORY
AND EL.EQUIPMENT_LOCATION_ID = ELR.EQUIPMENT_LOCATION_ID
AND EL.EQUIPMENT_LOCATION_ID = ELE.EQUIPMENT_LOCATION_ID
AND ELE.EQUIPMENT_ID = E.EQUIPMENT_ID
AND E.EQUIPMENT_TYPE_ID = ET.EQUIPMENT_TYPE_ID
AND EC.EQUIPMENT_CATEGORY LIKE '%METER'
AND ELE.END_DATE IS NULL
AND MR.METER_ROUTE_ID = ELR.METER_ROUTE_ID
AND SA.SERVICE_ACCOUNT_NUMBER IN (6051, 124899)
GROUP BY SA.SERVICE_ACCOUNT_NUMBER, MR.METER_ROUTE_ID
--HAVING COUNT(sa.service_account_number) > 1thanks in advanceIf you take your query more or less as it is:
select <code> SA.SERVICE_ACCOUNT_NUMBER,MR.METER_ROUTE_ID</code>
FROM (rest of your query) take your query more or less as it is:
select <code> SA.SERVICE_ACCOUNT_NUMBER,MR.METER_ROUTE_ID</code>
FROM (rest of your query) and then wrap around it:
select <code>SERVICE_ACCOUNT_NUMBER</code>,count(*)
from (your query above)
GROUP BY saervice_account_number
having count(*) > 1
that should give you what you want.
The inner query gives you all of the account#/route combinations.
The outer query picks those account#s with more than one route.
Jon -
GROUP BY+COUNT+SUM SQL
Hi,
I have a table, it has 2 colunms, ( name,number)
name number
B1 7
B1 7
B1 28
B1 28
B1 28
B2 7
B2 28
B3 7
I want to see below
number
name sum 7sum 28sum
B1 5 2 3
B2 2 1 1
B3 . . .
CAN YOU HELP ME
THANK YOU VERY MUCH FOR HELPLike this?
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'B1' as name, 7 as num from dual union all
2 select 'B1', 7 from dual union all
3 select 'B1', 28 from dual union all
4 select 'B1', 28 from dual union all
5 select 'B1', 28 from dual union all
6 select 'B2', 7 from dual union all
7 select 'B2', 28 from dual union all
8 select 'B3', 7 from dual)
9 --
10 -- end of test data - use query below
11 --
12 select name
13 ,count(*)
14 ,sum(decode(num,7,1,0)) as sum7
15 ,sum(decode(num,28,1,0)) as sum28
16 from t
17 group by name
18* order by 1
SQL> /
NA COUNT(*) SUM7 SUM28
B1 5 2 3
B2 2 1 1
B3 1 1 0 -
Select, grouping and counting...
Hi again, I managed to bypass my trigger problem, so thanks a lot...!
Now, I have a simple question...
Using two tables, Joueur (NoJ (PK), NoE(PK, FK1), NomJ, Adresse, Tel, CoJ)
and Equipe (NoE(PK,FK1), NomE, NoJC(Fk1 of NoJ))
I'll explain the model...
It's a Team table, and a Player Table.
Naturally, the PK on Player (Joueur) is NoE (team number) and NoJ (Player number)
On the Team table, the primary key is NoE (Team number
and the foreign key is NoE AND NoJC which stands for the number of the CAPTAIN player ...
So...
I've got to make a table of 4 cloumns: Team number (NoE), Team name (NomE), Team captain name, number of player in team...
So I need to combine those two tables... on the first table, I got all the info BUT the number of players, which lists all 1 due to the where NoJC = NoJ... but this function is required to get the Captain name...
Select NoE, NomE, NomJ as Capitaine, count(*)
from EQUIPE join JOUEUR using (NoE)
where NoJ=NoJC
group by NoE, NomE, NomJ;
select noe, count(*)
from EQUIPE join JOUEUR using (NoE)
group by noe;Any clue?I suggest for you :
Put then column noJC in joueur table nojc NUMBER CONSTRAINT fk_no_joueur_cap REFERENCES joueur(noj);
Regards Salim.
SQL> DROP TABLE joueur;
Table supprimée.
SQL> DROP TABLE equipe;
Table supprimée.
SQL> CREATE TABLE equipe (noe NUMBER CONSTRAINT pk_no_eq PRIMARY KEY, nome VARCHAR2(30));
Table créée.
SQL> CREATE TABLE joueur (noj NUMBER CONSTRAINT pk_no_joeur PRIMARY KEY,
2 noe NUMBER CONSTRAINT fk_no_equipe REFERENCES equipe(noe),
3 nomj VARCHAR2(30), adresse VARCHAR2(100), tel VARCHAR2(20),
4 coj VARCHAR2(10), nojc NUMBER CONSTRAINT fk_no_joueur_cap REFERENCES joueu
r(noj) );
Table créée.
SQL> INSERT INTO equipe
2 VALUES (1, 'RC Kouba');
1 ligne créée.
SQL> INSERT INTO joueur
2 VALUES (1, 1, 'Salim', '... Montreal', '514-111-1111', 'NNN', NULL);
1 ligne créée.
SQL> INSERT INTO joueur
2 VALUES (2, 1, 'Richard', '... Montreal', '514-111-2222', 'NNN', 1);
1 ligne créée.
SQL> INSERT INTO joueur
2 VALUES (3, 1, 'Stéphane', '... Montreal', '514-111-3333', 'NNN', 1);
1 ligne créée.
SQL> COMMIT ;
Validation effectuée.
SQL>
SQL> SELECT equipe.noe, equipe.nome, j.noj nojc, j.nomj capitaine,
2 COUNT (joueur.noj) AS "Nombre de joueurs"
3 FROM joueur, equipe, joueur j
4 WHERE joueur.noe = equipe.noe AND j.noe = equipe.noe AND j.nojc IS NULL
5 GROUP BY equipe.noe, nome, j.noj, j.nomj;
NOE NOME NOJC CAPITAINE Nombre de joueurs
1 RC Kouba 1 Salim 3
SQL> -
I have a table of member_id's and number codes and dates. Each member can have any number of any of the available codes allocated to him on different dates. I need to be able to be able to group by member_id and count the number of a specified code allocated to each member. I need to show zero counts. Does that make sense?
Any help with this would be greatly appreciated
Lindsaylindsay wrote:
I have a table of member_id's and number codes and dates. Each member can have any number of any of the available codes allocated to him on different dates. I need to be able to be able to group by member_id and count the number of a specified code allocated to each member. I need to show zero counts. Does that make sense?Not really. When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
Where exactly does APEX come into this? It sounds more like a general SQL problem which might be better suited to the {forum:id=75} forum.
Either here or there, Re: 2. How do I ask a question on the forums? would make the problem clearer than any amount of vague description. Post this code wrapped in <tt>\...\</tt> tags. -
Multiple Page Counts / Group Page Count
I'm trying to have a page count per group on my reports.
For example, we have a report that prints a Move Order. A Move Order may have multiple pick slips (one per sub-inventory). I want to have a Move Order page count and a Pick Slip page count.
Does anybody have a way to do this?
Thanks,You aren't really linking the frames to the pages. Simply set the "page break before" on the second frame. When the first frame finishes printing (regardless of how many pages that is) it will skip to the next page before the second frame starts printing. If required, you can make the page numbering re-set if you want to based on repeating frame values.
If you really want to distinguish between the layouts, you can create up to 3 layouts by using each of the three sections (header, main, trailer). As each section finishes, there is also a page break before the next section starts.
You can get at the page number using srw.get_page_num() but I don't think this will help you.
Maybe you are looking for
-
Robo Help Server 8 Publishing files to wrong location
Hi I have recently installed a trail verstion of Robo Help 8 server. All appears to be ok with the install I can access the website and log into the admin portal etc... The only diffrence from the default install is that I have configured tomcat to
-
Error in PeopleTools 8.48 while calling CI based Web Services from BPEL
Hi All, I am working with a CI based web serives and using the PeopleSoft generated wsdl file while calling from a BPEL process. When I am using the same component in PeopleTools 8.47, it's working fine. But the same is NOT working when I'm using Peo
-
Adding Airport to my MacPro (1.Gen) - where are the airport antenna wires
Hello everyone! I´m quite desperate. I just tried to install an airport card to my old Mac Pro but I just can´t find the antenna wires. I just found the BT wire but nothing else I could use to connect to the card itself! I took out the hds (1+2) but
-
How do I get the latest version of safari on my macbook pro?
-
Import flickr published service settings from LR3?
Hello, I've searched and searched but can't figure out how to import my flickr settings from LR3, in particular my photosets, into LR4. If I recreate them they will presumably overwrite the stuff I've already published to flickr. Is there a way to i