Arranging charts in one row
Hi,
How should I go about aligning 3 line charts in one row? What I plan to do is have a report containing data on the first row and on the second row I'll have 3 charts to represent the data above. Right now my charts are occupying rows 2,3,4 and are in column 1.
Any suggestions will be greatly appreciated. Many thanks
I figured out what to do. I placed negative values on the left, right, top, bottom margin parameters. That expanded my chart without expanding the region that contains it. Thanks for all your help though.
Now can someone show me how to set my chart font to BOLD?
Similar Messages
-
How does a chart track info on more than one row
As you can see by the attached graphic, I haven't had a problem until the new year hit where I need the chart to continue tracking info on two rows of data (year 2007) that continue onto another two rows of data (year 2008), and so forth into future years. Is there a way to do this with the current table, or do I need to create another table from which to build a chart.
!www.3bldesign.com/image/numberschart.png!
www.3bldesign.com/image/numberschart.png
Message was edited by: Tux Kapono
Message was edited by: Tux KaponoIn the example above, I removed the actual date values and created Text Labels only. This is probably why the graph is showing weird labels. The problem with Text labels are their use in an X-Y (or Scatter Graph.) Numbers needs to have a Month format for date data types. Do we need to go further with your request? For continuous lines, yes, the data needs to be formatted that way. The X-Axis values are coming from one row of data and in your original example "Feb" is only "Feb" (not Feb-07 and Feb-08).
Regards,
Edit:
The dark colored cells result when the graph is selected. If you want to reformat the cells you can do so by changing the cell's Font and Background colors using Inspector.
Message was edited by: WWJD -
Passing one row of a query to a function
I want to pass a query into a function one row at a time in
the same way you could pass an array to a function one row at a
time. I've read that queries are just CF structures under the hood
so I believe it should be possible. I just don't know the syntax to
reference a single query row (and all it's variables).
I don't want to pass the whole query to the variable because
I would like to do the looping outside the function. The idea is to
simplify and standardize the formatting and arrangement of several
variables (columns) in a UDF and keep the syntax to use the
function simple. Therefore, I'd like to avoid having to do stuff
like convert the query to an array. That would defeat the goal of
keeping it simple.
Thanks
Magnus> myQuery.getRow(), but
> using undocumented functions make me nervous.
I absolutely agree, as a standard "caveat emptor" sort of
thing. Which is
a shame because there's a wealth of functionality "under the
hood" which is
far more useful than the "official" approach to things.
To be honest, I treat the whole "that stuff is 'not
supported'" and "it
could change in future versions" thing with a liberal amount
of salt.
1) I didn't find the support from Macromedia very accessible
in the first
place, and have no reason to think it will be any different
with Adobe.
Other than in emergencies (that'd be once, in eight years), I
have never
used official support;
2) I've been watching a lot of the "undocumented" stuff for a
few versions
(like since 6.1), and it all still works;
3) I've had more problem with "fixes" to CFML issues breaking
workarounds
of the same than I have with using undocumented code.
Obviously that's
because I have 1000 lines of "normal" code to every line of
"undocumented"
code I use, but still.
Basically when one changes version of software, there's a
chance your code
will stop working. It doesn't seem any more risky to me to
use
undocumented features than documented ones.
Food for thought, if nothing else.
Adam -
Dear all,
I have a input that looks like this:
HeaderKeySomeHeaderInformationItemKeySomeItemInformationItemKeySomeItemInformation...
Here's the actual input
TEHGMESS0026000000288S0001TEI2____026200006112410400000000 18010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000JTEI2____026200006112410400000000 19010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
HeaderKey = TEHGMESS
ItemKey = TEI2____
Is it possible to process this via MessageTransformBean (my actual scenario is JMS to IDoc)? I already tried but I only succeeded when having new lines in my input to separate between Header and (multiple) Items.
So when the input and my configuration looks like below it works, but when I only have a single row input it doesn't work, even when specifying xml.recordHeader.endSeparator = '0' / xml.recordItem.endSeparator = '0'. I even tried xml.endSeparator = '0' but no luck.
Input that works
TEHGMESS0026000000288S0001
TEI2____026200006112410400000000 18010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
TEI2____026200006112410400000000 19010000000000 00126000000000126000120600000000002000000000 000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
Matching configuration that works for input which structures are delimited by new line.
Paramentername
Parametervalue
Transform.Class
com.sap.aii.messaging.adapter.Conversion
Transform.ContentType
text/xml;charset=utf-8
xml.conversionType
StructPlain2XML
xml.documentName
MT_TEI2Split
xml.documentNamespace
http://hansgrohe.com/pi/MQ/TEI2/10
xml.keyFieldName
SATZARTKey
xml.keyFieldType
CaseSensitiveString
xml.processFieldNames
fromConfiguration
xml.recordHeader.fieldFixedLengths
8,4,9,1,4
xml.recordHeader.fieldNames
SATZARTKey,SATZLENHG,NUTZLEN,MESSAE,MESSNR
xml.recordHeader.keyFieldValue
TEHGMESS
xml.recordItem.fieldFixedLengths
8,4,2,10,8,19,3,3,2,10,6,2,10,6,2,10,6,6,6,6,6,11,9,2,10,6,2,10,6,3,4,3,7,14,8,1,31
xml.recordItem.fieldNames
SATZARTKey,SATZLEN,BUCHART,TRNR,ANDGNR,MITEM,TEIVARI,BSTSTATU,REFTYP,ORNO,POS,REFTYP1,ORNO1,POS1,CHATYP,CHARGE,CHAPOS,ABBVONL,ABBNACH,ZUBVONL,ZUBNACH,I2MENG,I2BUNR,REFTYPN,ORNON,POSN,REFTYP1N,ORNO1N,POS1N,BSTSTATN,ABUSERAB,ABUSERFN,ABUSERNA,I2TIME,I2LIDNR,I2FMCODE,FILLER
xml.recordItem.keyFieldValue
TEI2____
xml.recordsetName
records
xml.recordsetStructure
recordHeader,1,recordItem,*
Any clues on this? Is it even possible to have multiple structures in one row? Many thanks in advance
JensSAP came back to me with this answer:
First, I would like to point the documentation for Message Transform
Bean (MTB) in 7.4:
http://help.sap.com/saphelp_nw74/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm?frameset=/en/57/0b2c4142aef623e10000000a155106/frameset.htm¤t_toc=/en/45/0ea2de423c2d6be10000000a11466f/plain.htm&node_id=18
As it is written at the beginning of this document, MTB is used to
call classes written for the Plain Adapter Engine. So you may find
additional documentation about the parameters for convertion in the
documentation of the Plain Adapter Engine
(http://help.sap.com/saphelp_nw74/helpdata/en/0d/00453c91f37151e10000000a11402f/content.htm?frameset=/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm¤t_toc=/en/75/246b3de666930fe10000000a114084/plain.htm&node_id=11).There it is written that the structures by default are
arranged line-by-line. The endSeparator just adds additional character
string as a separator after the last column in a row.
I hope that this answers your question. MTB expects the data to be
structured line by line.
You may add a custom module, which transforms the message in the
expected format.
If you have a look at the second link there's even a more precise wording that multiple structures within one line are not supported:
xml.NameA.endSeparator
Even if no specification is made here, a line break must follow since substructures are always expected as a line of the document.
Bottom line is that it's not supported by now and verfied by me with PI 7.4 SP5
Many thanks to Ambrish, Amit and Hareesh for the valuable input. Will probably try to work things out for now following Ambrish's / Hareesh's suggestion as this seems easier to implement. Amit's proposal with a dedicated module however would probably be the more polished solution.
Cheers
Jens -
Combining multiple rows into one row
Hi all.
My most humble apology for this question but solutions in previous threads did not seem to help much.
Apparently, my account has not been verified and I am currently at home with no access to the SQL code so i can't post the actual code.
We have this (mockup) of code
Select S.C1, AViewSS.Study, AViewSS.SlotName, IST.TakenByDate, IST.ScannedByTime, SE.TimepointCalculation
From IST
INNER JOIN
AViewSS ON IST.GroupID = AViewSS.GroupID and
IST.SlotID = AViewSS.SlotID
INNER JOIN
S ON AViewSS.StudyID = S.StudyID
INNER JOIN
SE ON IST.Line = SE.Line and IST.SubLine = SE.SubLine and
AViewSS.ScheduleID = SE.ScheduleID
WHERE
(IST.GroupID = 92) and (IST.SlotID between 1791 and 1795)
and (AViewSS.VisitID = 137)
The query currently returns this result set
Col 1 Col 2 Taken Date Date 1 Date 2 Date 3
Scanned DateTime
Data Data 3/12/2015 3/12/2015 7:22
3/12/2015 7:22
Data Data 3/12/2015 3/12/2015 8:47
3/12/2015 8:47
Data Data 3/12/2015
3/12/2015 9:27 3/12/2015 9:27
Data Data 3/22/2015 3/22/2015 7:27
3/22/2015 7:27
Data Data 3/22/2015
Data Data 4/12/2015
Data Data 4/12/2015
Data Data 4/12/2015
You’ll notice that rows 1, 2, 3 are related as are rows 4, 5 and rows 6, 7, 8.
This is what we ultimately want to see given the results above.
In the report, rows 1, 2, 3 from the results should roll into one row with the ScannedByTimeStamp from each row returned by the query populating the appropriate report time column based on the value of a column in the row.
Col 1 Col 2 Taken Date Date 1 Date 2
Date 3
Data Data 3/12/2015 3/12/2015 7:22 3/12/2015 8:47 3/12/2015 9:27
Data Data 3/22/2015 3/22/2015 7:27
Data Data 4/12/2015
We would appreciate any guidance.Hi Duane,
The table and matrix data regions can display complex data relationships by including nested tables,matrices, lists, charts and gauges. Tables and matrices have a tabular layout and their data comes from a single dataset, built on a single data source. The
key diference between tables and matrices is that tables can include only row groups, where as matrices have row groups and columns groups.
All Code in this sample are downloadable from
this URL
create procedure spMultiple
as
begin
declare @Mytable table ([Col 1] varchar(20),[Col 2] varchar(20),[Taken Date] varchar(20),[Date 1] varchar(20),[Date 2] varchar(20),[Date 3] varchar(20))
Insert into @Mytable ([Col 1],[Col 2],[Taken Date],[Date 1],[Date 2],[Date 3])
select * from
Select 'Data' as [Col 1],'Data' as [Col 2],'3/12/2015' as [Taken Date],'3/12/2015 7:22' as [Date 1],'' as [Date 2],'' as [Date 3]
union all
Select 'Data' as [Col 1],'Data' as [Col 2],'3/12/2015' as [Taken Date],'' as [Date 1],'3/12/2015 8:47' as [Date 2],'' as [Date 3]
union all
Select 'Data' as [Col 1],'Data' as [Col 2],'3/12/2015' as [Taken Date],'' as [Date 1],'' as [Date 2],'3/12/2015 9:27' as [Date 3]
union all
select 'Data' as [Col 1],'Data' as [Col 2],'3/22/2015' as [Taken Date],'' as [Date 1],'3/22/2015 7:27' as [Date 2],'' as [Date 3]
union all
select 'Data' as [Col 1],'Data' as [Col 2],'3/22/2015' as [Taken Date],'' as [Date 1],'' as [Date 2],'' as [Date 3]
union all
select 'Data' as [Col 1],'Data' as [Col 2],'4/12/2015' as [Taken Date],'' as [Date 1],'' as [Date 2],'' as [Date 3]
union all
select 'Data' as [Col 1],'Data' as [Col 2],'4/12/2015' as [Taken Date],'' as [Date 1],'' as [Date 2],'' as [Date 3]
union all
select 'Data' as [Col 1],'Data' as [Col 2],'4/12/2015' as [Taken Date],'' as [Date 1],'' as [Date 2],'' as [Date 3]
) as temp;
with Mytable2(
[Col 1],
[Col 2],
[Taken Date],
[Date],
[NameDate]
as
SELECT
[Col 1],
[Col 2],
[Taken Date],
[Date],
[NameDate]
FROM
(SELECT
[Col 1],
[Col 2],
[Taken Date],
[Date 1],
[Date 2],
[Date 3]
FROM
@MyTable) as p
UNPIVOT
[Date] FOR [NameDate] IN ([Date 1],[Date 2],[Date 3])
)AS unpvt
group by
[Col 1],
[Col 2],
[Taken Date],
[Date],
[NameDate]
Select * from Mytable2 t1 where [date]<>''
end
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Ricardo Lacerda -
How to return one ROW with Multiple value seperated by Colon in a SQL Query
Hi,
I have a SQL query as mentioned.
select deptno
from deptI want to mofidfy this query, so that this should return me department list with colon delimeted in one ROW.
10:20:30:40.......Thanks,
DeepakIn 10g:
select rtrim(xmlagg(xmlparse(content deptno || ':')).getstringval(), ':') data
from dept;
DATA
10:20:30:40with apologies for the abuse of XML... -
How to Plot number and string in one row (data logger counter via MODBUS) ?
hi all i made data log quantity using Digital Counter via modbus (RS-485) to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
i have problem about plot the number & string in one row, as shown on the picture below :
how to move that string on one row ? i attach my vi.
Thanks~
Solved!
Go to Solution.
Attachments:
MODBUS LIB Counter.vi 39 KBHi rhiesnand,
right now you add 2 new rows to your array.
The solution is to concatenate both row parts to one bigger 1D array before adding that array as new row to your 2D array!
Like this:
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to Plot number and string in one row (data logger counter) ?
hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
i have problem about plot the number & string in one row, as shown on the picture below :
how to move that string on one row ? i attach my vi.
Thanks~
Attachments:
MODBUS LIB Counter.vi 39 KBDuplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...
-
Hi guys, I got a black out. I got this situation:
Create table Forum ( Icity varchar(50), IMonth int, Iyear int, ACons int, BCons int, CCons int) insert into forum values ('Buenos Aires',1,2014,100,0,0), ('Buenos Aires',2,2014,140,0,0), ('Buenos Aires',3,2014,60,0,0), ('Toronto',1,2014,400,0,0), ('Toronto',2,2014,625,0,0), ('Toronto',3,2014,880,0,0), ('Buenos Aires',1,2014,0,330,0), ('Buenos Aires',2,2014,0,1230,0), ('Buenos Aires',3,2014,0,470,0), ('Toronto',1,2014,0,1100,0), ('Toronto',2,2014,0,1520,0), ('Toronto',3,2014,0,400,0), ('Buenos Aires',1,2014,0,0,300),('Buenos Aires',2,2014,0,0,440), ('Buenos Aires',3,2014,0,0,1080), ('Toronto',1,2014,0,0,640), ('Toronto',2,2014,0,0,1020), ('Toronto',3,2014,0,0,880)
I had to run a huge union all taking data fro ACons, BCons, CCons, no way to do link or other stuff, we're talking about millions rows, different servers..anyway. I got this situation. Now I need an output like:
Buenos Aires 1 2014 100 330 300
Toronto 1 2014 400 1100 640
Pratically Icity, Imonth, Iyear, Acons, Bcons, Ccons in one rows and not in three difefrent rows. I already did this stuff a lot of time but I'm going underpressure by another side ( a Cube that doesn't update correctly).
Any suggestion? Thanks everyone.Are you looking for the below? If not, please let us know:
Create table Forum ( Icity varchar(50), IMonth int, Iyear int, ACons int, BCons int, CCons int)
insert into forum values
('Buenos Aires',1,2014,100,0,0), ('Buenos Aires',2,2014,140,0,0),
('Buenos Aires',3,2014,60,0,0), ('Toronto',1,2014,400,0,0),
('Toronto',2,2014,625,0,0), ('Toronto',3,2014,880,0,0),
('Buenos Aires',1,2014,0,330,0), ('Buenos Aires',2,2014,0,1230,0),
('Buenos Aires',3,2014,0,470,0), ('Toronto',1,2014,0,1100,0),
('Toronto',2,2014,0,1520,0), ('Toronto',3,2014,0,400,0),
('Buenos Aires',1,2014,0,0,300),('Buenos Aires',2,2014,0,0,440),
('Buenos Aires',3,2014,0,0,1080), ('Toronto',1,2014,0,0,640),
('Toronto',2,2014,0,0,1020), ('Toronto',3,2014,0,0,880)
Select Icity,IMonth,Iyear,MAX(ACons),MAX(BCons),MAX(cCons) From Forum
Group by Icity,IMonth,Iyear
Drop table Forum -
Multiple record in one row..
Hi experts,
I want to merge multiple row from same table into one row... is it possible? if so then how??
Regards,
SKPSure, it's possible
create table scott.a
as
select 1 a, 2 b from dual
union all
select 3 a, 4 b from dual
create table scott.b
(a number, b number, c number, d number)
insert into scott.b
select a1.a,a1.b,a2.a,a2.b from scott.a a1, scott.a a2
where a1.a = 1 and a2.a = 3
P.S. Sorry, at first misunderstood the task
Message was edited by:
Dmytro Dekhtyaryuk -
Query below is returning data in multiple rows, I want to display them as one row:
select
event_id,
data_type_cd,
quantity
from Event,Data_types
where event_id = 1234
and event.DATA_TYPE_ID = data_types.DATA_TYPE_ID
(I want to display data_type_cd concatenated with quantity as every code had different quantity)> Sample data is:
> Data_type_id Quantity
> ------------------ ----------
> 1 34
> 2 67
> 15 35
> 20 23
> I want to display as:
> 1 34 2 67 15 35 20 23
if you want all the rows in one column see this given example below:
SQL> select t.*
2 from (select 1 data_type_id, 34 quantity from dual union all
3 select 2 data_type_id, 67 quantity from dual union all
4 select 15 data_type_id, 35 quantity from dual union all
5 select 20 data_type_id, 23 quantity from dual) t;
DATA_TYPE_ID QUANTITY
1 34
2 67
15 35
20 23
SQL> select substr(sys_xmlagg(xmlelement(col, ' ' || data_type_id||' '||quantity)).extract('/ROWSET/COL/text()').getclobval(), 2) new_disp
2 from (select 1 data_type_id, 34 quantity from dual union all
3 select 2 data_type_id, 67 quantity from dual union all
4 select 15 data_type_id, 35 quantity from dual union all
5 select 20 data_type_id, 23 quantity from dual) t;
NEW_DISP
1 34 2 67 15 35 20 23
SQL> -
Concatenating values in one row
I need to write a function that will give me a concatenated list of all the records where gurmail_matl_code_mod like '8%'
This query is giving me those results:
GURMAIL_PIDM CODE1 CODE2
1135711
1135711 8IBD
1135711 8IBW
I want something like this 1135711 8IBW 8IBD in one row.
select
gurmail_pidm,
max(decode(rn,1,gurmail_matl_code_mod )) code1,
max(decode(rn,2,gurmail_matl_code_mod )) code2
from (select gurmail_pidm,
gurmail_matl_code_mod,
row_number() over (partition by gurmail_pidm order by gurmail_matl_code_mod desc) rn
from
(select gurmail_pidm,gurmail_matl_code_mod
from saturn.spriden,
general.gurmail
where spriden_pidm = gurmail_pidm
and spriden_change_ind is null
and gurmail_matl_code_mod like '8%'
and gurmail_pidm = 1135711
and GURMAIL_DATE_PRINTED is null
and gurmail_matl_code_mod is not null))
group by gurmail_pidm, gurmail_matl_code_mod How I can modify this query or let me know if you have other ideas..
Thank youHello
try this,
SQL> with tab as(Select 1135711 GURMAIL_PIDM, Null CODE1 from dual Union All
2 Select 1135711 GURMAIL_PIDM, '8IBD' CODE1 from dual Union All
3 Select 1135711 GURMAIL_PIDM, '8IBW' CODE1 from dual)
4 SELECT GURMAIL_PIDM || sys_connect_by_path(CODE1,' ') Result
5 FROM (SELECT GURMAIL_PIDM
6 ,code1
7 ,row_number() over(Partition BY GURMAIL_PIDM Order BY GURMAIL_PIDM) rn
8 FROM tab)
9 WHERE connect_by_isleaf = 1
10 Start With rn = 1
11 Connect BY Prior rn = rn - 1;
RESULT
1135711 8IBW 8IBDHope this helps
Christian Balz -
Hellou
I need help in SQLPLUS. I need to prompt into the file one row of information like this:
0000004202;;00151564;[email protected];160120071333
this -> 0000004202;;00151564;[email protected]; is just static text
this -> 160120071333 is date in format (ddmmyyyyHHMM)
And I need it in one row
prompt 0000004202;;00151564;[email protected]; select to_char(sysdate,'ddmmyyyyHH24MM') from dual
does not work
Can you help me?
I used something Like this:
spool file
declare cas_aktual VARCHAR(12);
begin
select to_char(sysdate,'ddmmyyyyHH24MM') into cas_aktual from dual;
dbms_output.enable;
dbms_output.put_line('blabla'||cas_aktual||'konec');
end;
spool OFF
But it isn't work too>
I used something Like this:
spool file
declare cas_aktual VARCHAR(12);
begin
select to_char(sysdate,'ddmmyyyyHH24MM') into
cas_aktual from dual;
dbms_output.enable;
dbms_output.put_line('blabla'||cas_aktual||'konec');
end;
spool OFF
But it isn't work tooYou need a forward-slash character ("/") right after the PL/SQL block to allow sqlplus to run the contents of the buffer.
test@ora>
test@ora> spool c:\test.log
test@ora>
test@ora> declare cas_aktual VARCHAR(12);
2 begin
3 select to_char(sysdate,'ddmmyyyyHH24MM') into cas_aktual from dual;
4 dbms_output.enable;
5 dbms_output.put_line('blabla'||cas_aktual||'konec');
6 end;
7 /
blabla300720081207konec
PL/SQL procedure successfully completed.
test@ora>
test@ora> spool OFF
test@ora>
test@ora> host type c:\test.log
test@ora>
test@ora> declare cas_aktual VARCHAR(12);
2 begin
3 select to_char(sysdate,'ddmmyyyyHH24MM') into cas_aktual from dual;
4 dbms_output.enable;
5 dbms_output.put_line('blabla'||cas_aktual||'konec');
6 end;
7 /
blabla300720081207konec
PL/SQL procedure successfully completed.
test@ora>
test@ora> spool OFF
test@ora>
test@ora>isotope -
Hello,
I hope some1 can help me for these.
I am using apex 3.1.2 ver
My first question: how can I put more columns for example 4 columns with heading in one row? when I do, screen is too wide but i do not want scrolling?
e.g
aaaaaaaaaaaaaaa( ) bbbbbbbbbbbbbb ( ) ccccccccccccccccc ( ) ddddddddddd( )
second question?
how can i display second column value based on first column value before saving the page?
e.g. aaaaaaa(1) bbbbbbbb(should display text value based on first column)
for example 1 - abc
2 - def
3 - ghi and so on.
last question? how can i disable the column? should column enable based on other column? e.g if a then second column take value other disabled?
Many thx.
kind regards,Irha10 wrote:
how can I put more columns for example 4 columns with heading in one row? when I do, screen is too wide but i do not want scrolling?In item property change "Begin on new Line " to "Yes"
Irha10 wrote:
how can i display second column value based on first column value before saving the page?01. You have to create a branch to same page
02. Submit the page using any event (such as button press or something). So when you enter details to first item and then press button then page will submit and reload the same page.
03. In the page create a before region process and check whether second item is not null and third item is null then populate third item. Then first item is not null and second item null then populate second item.
Irha10 wrote:
? how can i disable the column? should column enable based on other column? e.g if a then second column take value other disabled?You can use a java script and enable and dissable item based on any condition such as value of another item
Example
if ($x('P16_YYY').value !='SOME VALUE')
$x('P16_XXX').disabled = true;
}else
$x('P16_XXX').disabled = false;
} -
Hi all,
I want to display all the party codes which have same party name,
and I want to display all the party codes in one row separated by comma. is it possible?You can either use analytic functions + hierarchy or stragg (listagg if you are on 11.2) or undocumentd wm_concat. There are plenty examples on this forum. For example:
select deptno,
ltrim(sys_connect_by_path(job,','),',') job_list
from (
select deptno,
job,
row_number() over(partition by deptno order by job) rn
from emp
where connect_by_isleaf = 1
start with rn = 1
connect by deptno = prior deptno
and rn = prior rn + 1
DEPTNO JOB_LIST
10 CLERK,MANAGER,PRESIDENT
20 ANALYST,ANALYST,CLERK,CLERK,MANAGER
30 CLERK,MANAGER,SALESMAN,SALESMAN,SALESMAN,SALESMAN
select deptno,
rtrim(stragg(job || ','),',') job_list
from emp
group by deptno
DEPTNO JOB_LIST
10 MANAGER,PRESIDENT,CLERK
20 CLERK,ANALYST,CLERK,ANALYST,MANAGER
30 SALESMAN,MANAGER,SALESMAN,SALESMAN,CLERK,SALESMAN
select deptno,
wm_concat(job) job_list
from emp
group by deptno
DEPTNO JOB_LIST
10 MANAGER,PRESIDENT,CLERK
20 CLERK,ANALYST,CLERK,ANALYST,MANAGER
30 SALESMAN,MANAGER,SALESMAN,SALESMAN,CLERK,SALESMANSY.
Maybe you are looking for
-
Problem in display of char. and key figure for yearly query
Hello all, I got a query in which i have to do restriction on Calendar Day/Month in Rows under Material which is a Characteristics So it should be PACKAGE QUANTITY
-
Lightroom VS Camera Raw 5.5 (color correction)
Hi, does somebody know if discarding the advantage of making layers of Photoshop, is the Adobe Lightroom color correction controls superiors to the CameraRaw PS Interface correction controls ??? I mean for color correction purposes is Adobe Lightroom
-
Export error in Oracle Applications 11.03
I am having trouble exporting fields out of Oracle Applications. I get an error saying failed command. Any ideas on how to fix? This wouldn't be related to IE version or service pack or OS would it??? Some workstations can while others cannot.
-
TDS certificate numbers according to Business Place for one key
Dear all, I am trying to generated TDS certificates through J1INCERT. I am able to generated certificate numbers also. But I want to generate the certificate numbers according to my business place. EX: I assigned number range as 200001 to 299999.
-
Oracle Gateway for MS SQL Server
I have a oracle 10g database installed on Linux platform. I have installed oracle 11g gateways in the same system in a different location other than that of ORACLE_HOME. I have configured the initdg4msql.ora and configured the listener in the ORACLE_