How to display/concatenate several lines into one line
I have a report that retrieves a project name and its corresponding attached resources.If tha project has 4 resources attached will appear 4 different columns.
is there a way to display a single line with the corresponding resources names concatenated into a single cell?
There is a related issue of PL/SQL and is not a matter of apex. However, see this as an example:
http://Apex.Oracle.com/pls/OTN/f?p=31517:84
There are also a bunch of other code related to this issue.
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------
Tags: Database
Similar Questions
-
Combining the NACHA several files into one
Gurus, we will implement the new file format NACHA for our payroll service. Payroll running a DOS command to concatenate several files into one .mf. Is there a way to Oracle to achieve the same?
Database server
----------------------------------------
RDBMS: 11.2.0.3.0
Oracle Applications: 11.5.10.2
Thanks, Naveen Gagadam.
Published by: mascot of Oracle on May 30, 2013 10:26Vignesh Hi, I just went through our Installer and there are Consolidation defined for each payroll that we use. I think it is better the purpose of having a consolidation set. Could you tell me how to consolidate several salary mass as a whole or alternatively can add several wage masses on the fly (as parameters) for each race NACHA?
Thanks, Naveen.
-
Y at - it a safe application for concatenating several files into one .rtf?
Y at - it a safe application for concatenating several files into one .rtf?
Why do you do this?
Is it arril (3D image files) or .rtf (Rich Text Format) files?
-
Concatenate several lines in a Unique identifier
Hi all
I need to concatenate several lines in a unique identifier
So, my unique identifiers are name and email_id columns.
It is 1:M relationship as eponymous and email_id can have n number of different products, now I should
So let's say that the name = xyz and [email protected] has 5 rows with different product info for them.
Product # #Name #email_id
XYZ [email protected] Ora
XYZ [email protected] sql
XYZ [email protected] siebel
XYZ [email protected] erp
XYZ [email protected] crm
My end result would be after concatenation (seen / as a delimiter between each concatenated row):
Product # #Name #email_id
XYZ [email protected] Ora/sql / / erp/crm siebel
Need help please, after several attempts, I can't seem to make it work. I thank in advance
Published by: user13080645 on January 22, 2011 07:33Hello
You should look at using STRAGG or LISTAGG - take a look on: http://www.dba-oracle.com/t_display_multiple_column_values_same_rows.htm or search the Forum of SQL for these
Andy
-
How to scan several documents into one PDF
How to scan several documents into single PDF - have no ADF
Thanks - great app
-
display of several lines in column 1
Hello
With the help of Oracle 11 g R2.
Does anyone know of a way to display the results of a query which are normally displayed as multiple lines in a single column with the values of data separated by commas? For example, if I have the following table:
create table testtable (number of Column1)
Insert into testtable values (1)
Insert into testtable values (2)
Insert into testtable values (3)
Looking for the result in column 1.
result
1, 2, 3
If the number of records included a 4th place like this
Insert into testtable 4
The result should be
1, 2, 3, 4
The query must be independent of the number of rows returned.
Search for the analytical function of the listagg().
Good bye
DPT
-
Hi all
uses v.11.1.1.5 Jdev
How to display texts in the new line.
For example:
< af:outputText value = "contempt on unlocked solved provided. I was wondering it welcomed oh. Careful pacing he smiles however to an offence. So ardently end it decency he convinced something admitting ye. Nice in good as if different horrible. Gaiety, its quick access enjoy his brow set hope had there. That too but more famous principles of connection reckless joy. Itself too improve winding request fees are compact. All new paid little hard pure it. "/ >".
< af:spacer height = "10px" / >
< af:outputText value = "Pleasant in good as if different horrible." Mirth his quick take advantage of his front set hope had there. "/ >
< af:outputText value = "I wondered it he welcomed oh." Careful pacing he smiles however to an offence. "/ >
< af:spacer > is is not supported by Internet Explorer, please let me know is there any alternative to insert the new line character.
Thank you
ANU.
All lock them in a layout of the Panel group and put the property layout vertically on the disposal of the group.
It'll solve your problem.
Thank you
-
How can I get several lines in a form?
I have a form that contains five fields inside. One of the fields may require several lines to exist and when it is printed, you cannot use a scroll bar.
This field is "Allow multiple lines" checked. Just to make it work, everything else do as well. Of course, that did not work anyway. This subform which can repeat has a 'RepeatingData' node, which has a "Repeat" node that contains five fields that can repeat. I don't see any property on each node so that it can grow dynamically.
Any ideas?
The problem is at the disposal of the field. Right-click on the field, hover over pallet, and then click page layout.
You should see that the height and width parameters. under the entry for the height, there is a checkbox indicating "develop to adapt."
Hope that helps!
-PastAdobe
-
How to display all the lines to PRint html option in obiee 11g
Hello
I am facing a problem in obiee 11g (windows server 2003). I have 2 environments (SIT & dev)
In dev I'm not confronted with no problem but in SIT when I print the report in html format only lines 1 to 25 are displayed.
What should I do to display all the lines
Thanks in advance
AbdulHello
By default it will like that alone. You must enable PDF/print properties in your analysis
Just go to edit analysis - result table edit table/pivot table see and
-Click on properties of PDF print control - select display as "all lines".Then save it and run it.
Thank you
Deva
-
I have to create forms that are to be completed by hand and by electronic means. The problem that I am running provides several lines that will be printed for the people who are the form of fill by hand. I tried to add an image of lines behind the text field, but these would have got in the way when the form has been completed electronically.
I use LiveCycle Designer ES2 v. 9.0 on a Windows computer.
Thank you.
Ok.
- Take a textfield
- Navigate to the object. Allow multiple lines
- Go to the Layout | Height | activate "develop to adapt."
- Go to initialize or readyform event (you must change the _ for your textfield) this.rawValue = "___\n___\n___";
- Go to the event, enter - this.rawValue = null;
- Go to the exit event
If (this.) RawValue is nothing)
{
this.rawValue = "___\n___\n___";
} else {}
With this solution you can simulate the same reason above.
I hope it's useful for you,
Mandy
-
Report to concatenate several lines into one line
I have three tables:
1 project Pk = proj_id
2 Resources_on_Project Pk = Resources_on_proj_id Foreign_key = proj_id
3 cost Pk = cost_id Foreign_key = proj_id
columns in the table:
Project: proj_id, proj_name, proj_description
Resources_on_Project: Resources_on_proj_id, proj_id, id_ressource
cost: cost_id, proj_id, cost_type, cost_incurred
the table relationships:
Project: Resources_on_project 1:m (project has several resources in Appendix)
Cost of the project: 1:m (project has many costs in annex)
Data:
Project:
PROJ_ID, proj_name, proj_description
1, CDM, Advisory Services
2, efficient lighting, efficient ESCO
Resources_on_project
Resources_on_proj_id, proj_id, id_ressource
1, 1, 1
2, 1, 2
3, 2, 3
4, 2, 4
Cost:
cost_id proj_id cost_type cost_incurred
1.1, food, 1200
2.1, travel, 2000
3.1, trip, 3500
4.1 food, 1200
5.1, trip, 1400
6.1, travel, 1200
7,2 trip, 2000
8.2 food, 1200
9.2, trip, 1300
10.2, food, 2000
11.2, travel, 800
12.2, travel, 1150
13.2, food, 3000
14.2, food, 1000
15.2, food, 2400
First project has 2 resources attached to it and 6 different costs.
Second project includes 2 resources and 9 heads of different costs.
I want a report that gives me:
Proj_name, Proj_description, id_ressource, cost_incurred
Advisory services CDM 10500 1/2
ESCO effective effective lighting 14850 3/4
I wrote a query:
«Select «PROJECT»» PROJ_NAME' as 'PROJ_NAME. "
««PROJECT»» PROJ_DESCRIPTION' as 'PROJ_DESCRIPTION. "
sum (COST. COST_INCURRED) as "COST_INCURRED."
'RESOURCES_ON_PROJECTS '. "" RESOURCE_ID ' as 'RESOURCE_ID.
'COST', 'cost ',.
"RESOURCES_ON_PROJECTS" "RESOURCES_ON_PROJECTS"
'PROJECT' 'PROJECT '.
where "PROJECT. "" PROJ_ID "=" RESOURCES_ON_PROJECTS. " "" PROJ_ID.
and 'PROJECT '. "" "PROJ_ID '=' COST. PROJ_ID.
PROJECT group. PROJ_NAME, PROJECT. PROJ_DESCRIPTION, RESOURCES_ON_PROJECTS. ACCOUNTABLE_RESOURCE_ID
the result is:
Advisory services CDM 1 10500
Advisory services CDM 2 10500
ESCO effective effective lighting 3 14850
ESCO effective effective lighting 4 14850
It gives a new line for each different resource.
I want to:
Advisory services CDM 10500 1/2
ESCO effective effective lighting 14850 3/4
any help will be appreciated.
Published by: Rahul Gupta on September 7, 2009 16:07Rahul Gupta says:
Shadow of Blu,It's exactly what I wanted. But the measures specified by you are not clear for me.
can you let me know how I can implement?
Okay... Let's take the internal selection...
SQL> select proj_name 2 ,proj_desc 3 ,resource_id 4 ,cost 5 ,row_number() over (partition by proj_name order by resource_id) as rn 6 from output 7 / PROJ_NAME PROJ_DESC RESOURCE_ID COST RN --------- ----------------------- ----------- ---------- ---------- CDM Advisory Services 1 10500 1 CDM Advisory Services 2 10500 2 Efficient ESCO Efficient lighting 3 14850 1 Efficient ESCO Efficient lighting 4 14850 2 SQL>
This affects a line number for each line, each group proj_name (partition). Line numbers are allocated in the order of the id_ressource.
Now, using a (hierarchical) query connection we create a hierarchy of folders as well as RN = 2 is considered to be a child of RN = 1, etc..
SQL> ed Wrote file afiedt.buf 1 select level 2 ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name -- indent for hierarchical illustration only 3 ,x.proj_desc 4 ,x.resource_id 5 ,x.cost 6 ,x.rn 7 from ( 8 select proj_name 9 ,proj_desc 10 ,resource_id 11 ,cost 12 ,row_number() over (partition by proj_name order by resource_id) as rn 13 from output 14 ) x 15 connect by proj_name = prior proj_name and rn = prior rn + 1 16* start with rn = 1 SQL> / LEVEL PROJ_NAME PROJ_DESC RESOURCE_ID COST RN ---------- --------------- ----------------------- ----------- ---------- ---------- 1 CDM Advisory Services 1 10500 1 2 CDM Advisory Services 2 10500 2 1 Efficient ESCO Efficient lighting 3 14850 1 2 Efficient ESCO Efficient lighting 4 14850 2 SQL>
Now, using the sys_connect_by_path function we can get it to collect the data, because it passes through to the bottom of the hierarchy...
SQL> ed Wrote file afiedt.buf 1 select level 2 ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name 3 ,x.proj_desc 4 ,x.resource_id 5 ,sys_connect_by_path(resource_id,'/') as resources 6 ,x.cost 7 ,x.rn 8 from ( 9 select proj_name 10 ,proj_desc 11 ,resource_id 12 ,cost 13 ,row_number() over (partition by proj_name order by resource_id) as rn 14 from output 15 ) x 16 connect by proj_name = prior proj_name and rn = prior rn + 1 17* start with rn = 1 SQL> / LEVEL PROJ_NAME PROJ_DESC RESOURCE_ID RESOURCES COST RN ---------- --------------- ----------------------- ----------- ---------- ---------- ---------- 1 CDM Advisory Services 1 /1 10500 1 2 CDM Advisory Services 2 /1/2 10500 2 1 Efficient ESCO Efficient lighting 3 /3 14850 1 2 Efficient ESCO Efficient lighting 4 /3/4 14850 2 SQL>
Now, we can store up to the sys_connect_by_path to eliminate the left "/" simply by using the TRIM function.
We also need to do however is to choose only the lines that have reached the bottom of the hierarchy (the nodes). We have a pseudo-device column we can refer to called CONNECT_BY_ISLEAF...SQL> ed Wrote file afiedt.buf 1 select level 2 ,lpad(' ',(level-1)*2,' ')||x.proj_name as proj_name 3 ,x.proj_desc 4 ,x.resource_id 5 ,ltrim(sys_connect_by_path(resource_id,'/'),'/') as resources 6 ,x.cost 7 ,x.rn 8 ,connect_by_isleaf 9 from ( 10 select proj_name 11 ,proj_desc 12 ,resource_id 13 ,cost 14 ,row_number() over (partition by proj_name order by resource_id) as rn 15 from output 16 ) x 17 connect by proj_name = prior proj_name and rn = prior rn + 1 18* start with rn = 1 SQL> / LEVEL PROJ_NAME PROJ_DESC RESOURCE_ID RESOURCES COST RN CONNECT_BY_ISLEAF ---------- --------------- ----------------------- ----------- ---------- ---------- ---------- ----------------- 1 CDM Advisory Services 1 1 10500 1 0 2 CDM Advisory Services 2 1/2 10500 2 1 1 Efficient ESCO Efficient lighting 3 3 14850 1 0 2 Efficient ESCO Efficient lighting 4 3/4 14850 2 1 SQL>
So now we can filter only the lines where CONNECT_BY_ISLEAF = 1, also remove the output columns and calculates values etc, we don't need to see.
SQL> ed Wrote file afiedt.buf 1 select x.proj_name 2 ,x.proj_desc 3 ,ltrim(sys_connect_by_path(resource_id,'/'),'/') as resources 4 ,x.cost 5 from ( 6 select proj_name 7 ,proj_desc 8 ,resource_id 9 ,cost 10 ,row_number() over (partition by proj_name order by resource_id) as rn 11 from output 12 ) x 13 where connect_by_isleaf = 1 14 connect by proj_name = prior proj_name and rn = prior rn + 1 15* start with rn = 1 SQL> / PROJ_NAME PROJ_DESC RESOURCES COST --------------- ----------------------- ---------- ---------- CDM Advisory Services 1/2 10500 Efficient ESCO Efficient lighting 3/4 14850
-
How to display A / V (line) input in Windows Media Center
I am running Windows Media Center on Vista and have equipped with a Hauppauge TV card. It has analog (NTSC) TV input, digital TV (ATSC) and a composite video & audio. TV tuners work very well. How to choose the A / V input line to display? There is no "enter" of the remote control button. I know that the signals are there because I get a picture of the video and a slice of audio using Win - TV (really crappy software).
In the Windows Media Center Setup, it says:
Cable
Satellite
Antenna
Is it possible to have the A / V input see the place as a 'channel '?
Thank you;
Andy W.
Hi Andy W,.
You can't see the Audio/video entry up as a channel.
Reference:
http://support.Microsoft.com/kb/942375
http://Windows.Microsoft.com/en-us/Windows-Vista/TV-on-your-computer-understanding-TV-signals-and-TV-tuners
http://Windows.Microsoft.com/en-us/Windows-Vista/what-should-I-know-before-adding-TV-tuners-to-use-with-Windows-Media-CenterBindu S - Microsoft Support
[If this post can help resolve your problem, please click the button 'Mark as answer' or 'Useful' above]
This message. [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
Hi all
I have two tables RENEWED_FD and KEC_FDACCT_MSTR.
In the RENEWED_FD table, there are columns namely OLD_FDR_NO, ACCT_CUST_CODE, ACCT_TYPE, QUANTITY.
In the KEC_FDACCT_MSTR table, there are columns namely ACCT_FD_NO, ACCT_CUST_CODE, ACCT_TYPE, QUANTITY.
In the RENEWED_FD table, OLD_FDR_NO is present and rest all columns are empty, so I want to insert all other values of column in table KEC_FDACCT_MSTR
where RENEWED_FD. OLD_FDR_NO = KEC_FDACCT_MSTR. ACCT_FD_NO.
How to do this in Toad for ORACLE FORMS 6i or Oracle?
Help me
Thank you.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
I tried with the following code:
Code:
INSERT INTO RENEWED_FD
(ACCT_CUST_CODE, ACCT_TYPE, SUM)
SELECT ACCT_CUST_CODE, ACCT_TYPE, AMOUNT
OF KEC_FDACCT_MSTR
WHERE RENEWED_FD. OLD_FDR_NO = KEC_FDACCT_MSTR. ACCT_FD_NO;
But I got this error:
ORA-00904: "RENEWED_FD." "" OLD_FDR_NO ": invalid identifier
Oh, you're on 9i db. In 9i the MATCHED and UNMATCHED aren't optional, and you must use both. FUSION has evolved through time, and it's a shame that you cannot make the most out of it because of your version.
You use better UPDATE statement then.
update of renewed_fd one
Set)
a.acct_cust_code
a.acct_type
a.amount
) =
(
Select b.acct_cust_code
b.acct_type
b.amount
of kec_fdacct_mstr b
where a.old_fdr_no = b.acct_fd_no
)
where
There are)
Select null
of kec_fdacct_mstr b
where a.old_fdr_no = b.acct_fd_no
)
-
Morphing several objects into one.
I can't morphing 4 photos in one. No idea how because I do not know where to start as I am a newbie to the animation graphics and eager to learn.
I set up entirely in illustrator and use this technique I wrote a tutorial for a bunch of years:
http://library.CreativeCOW.NET/articles/gerard_rick/morph.php
Simply configure you your different shapes in Illustrator, using the blending mode to create up to 256 intermediate forms between the two, develop, release them in layers and then import them into a comp in AE and sequencing layers.
-
How to display records of entry into Modbus in hexadecimal?
I am connected in series to a relay, and by reading the registry entry to 1 address, I get 580 which is the version of the firmware of the relay and is therefore correct. Is it sort of, I could get the output as the full header modbus IE: (address: additional function: data: error code check/crc) for example: Fe, 02, 44, 80, 00, 02, F8, DC?
Also when I am trying to write to a single coil, which is the reset of the system, I don't know what address to use for the block of writing simple microphones. I know that the function is 5 and the operation code for this relay is 0001 but do not know how and where to use the code of operation?
Attached the VI is used to read the registry as well as documentation on the reset command and application Modbus for relay
Set your "String to write" command to the spell of display. Then type the hex values.
Maybe you are looking for
-
I noticed on my (Ubuntu 10.04 LTS) home and work computers (Windows 7 Home Premium), occasionally when Middle-click to close a tab, the adjacent tab that comes forward is immediately recharged. Computer work from FF 13.0.1, I check what version I hav
-
Establishment of a network of the laptop on pc
My pc shows the networking group, but after using the assistants on phone, still can not see the netgroup on laptop. Can anyone help please.
-
Hello I have a Satellite A215 with what looks like a major problem. When I plug in the adapter I get 2 combination of LED on the front to come-Sometimes the area of ejection blue light twice then nothingSometimes the sector and the battery light will
-
HP elitebook 850 g1 failed when put on "Machine warning is not in condition.
Hello, I have a Hp elitebook 850 g1, my computer display alert failed "Machine warning is not in condition. plz help me how can I solve this message...
-
How to install Streets & Trips on another computer I have initially loaded on?
Originally installed on my desktop, but I want to move to my new laptop for travel. Thank you