combining several line to line out
I have the following value from a query result. I'm trying toformat the output to provide a unique combination of C3 and its corresponding
C4 values in a single row. The combination will be between the four groups
listed in C1. Any ideas will be greatly appreciated.
C1... C2... C3... C4
1001 1234 00 Text1
1001 1235 01 Text2
1002 1236 00 Text3
1002 1237 01 Text4
1003 1238 00 Text5
1003 1239 01 Text6
1003 1240 02 Text7
1003 1241 03 Texte8
1004 1242 0000 Texte9
1004 1243 0001 Text10
1004 1234 0002 Text11
1004 1235 0003 Texte12
1004 1236 0004 Texte13
1004 1237 0005 Texte14
The sample output:
00-00-00-0000 text1.text3.text5.text9
00-00-00-0001 text1.text3.text5.text10
.
.
01-00-00-0000 text2.text3.text5.text9
01-00-00-0001 text2.text3.text5.text10
.
.
01-01-03-0005 text2.text4.text8.text14
Hello
Welcome to the forum!
Whenever you post a question, it helps if you include the number of Oracle version you are using. If you use Oracle N, a solution that only works in Oracle N + x will not help you, and a solution that requires that you have Oracle N - x may not be the best for you.
In addition, CREATE TABLE... and... INSERT statements (or CREATE TABLE... AS of the statements) for your sample data, if you want to test their suggestions.
To do what you want, you could do a join of the 4 tracks, but which is not to scale and if needs change.
CONNECTION BY more general is:
SELECT SUBSTR ( SYS_CONNECT_BY_PATH (c3, '-')
, 2
) AS c3_list
, SUBSTR ( SYS_CONNECT_BY_PATH (c4, '.')
, 2
) AS c4_list
FROM table_x
WHERE CONNECT_BY_ISLEAF = 1
START WITH c1 = 1001
CONNECT BY c1 = PRIOR c1 + 1
;
This requires that you know the value of c1 of the first group (1001 in this example), and the next groups have eactly c1 1 superior to the former group.
Tags: Database
Similar Questions
-
Combine several values of rank in a line like comma delimeted string
Hello
I have a requirement to combine several values of rank in a line as the comma delimeted string as below
INDEX_NAME COLUMN_NAME POSITION_COLONNE
EMP_EMAIL_UK EMAIL 1
EMP_EMP_ID_PK EMPLOYE_ID 1
EMP_DEPARTMENT_IX DEPARTMENT_ID 1
JOB_ID EMP_JOB_IX 1
EMP_MANAGER_IX MANAGER_ID 1
EMP_NAME_IX LAST_NAME 1
EMP_NAME_IX FIRST_NAME 2
I write in a SQL and the output I need is, for example EMP_NAME_IX LAST_NAME, FIRST_NAME.
I can't write any function as well.http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php
SELECT index_name, ltrim(sys_Connect_by_path(column_name, ','), ',') column_names FROM (select index_name, column_name, row_number() over(partition by index_name order by column_position) rn from all_ind_columns WHERE table_owner = 'HR') WHERE connect_by_isleaf = 1 START WITH rn = 1 CONNECT BY PRIOR rn = rn - 1 and prior index_name = index_name
-
Vertically Center a LabelField several lines on a screen
Hello
I am trying to vertically align a LabelField several lines on a screen. This turns out to be more difficult than it should be. I am calculating the upper margin of the LabelField with:
int topEmptySpace = (Display.getHeight() - label.getPreferredHeight()) / 2; label.setMargin(topEmptySpace, 15, 0, 15);
It works, but only if the text in the LabelField is a single line. When it becomes multi-line, getPreferredHeight() value does not change, and therefore the LabelField is not perfectly in the Center. I saw a couple other posts about it, without a solution...
Thoughts? Thank you!
Because getPreferredHeight is just a suggestion. A field can know its peak that it is laid out. It is too late for setMargin (in general - there are all kinds of tricks). Fortunately, you can easily calculate the actual height your aura LabelField - multiply its getPreferredHeight by (
+ 1). Unlike many other text fields, LabelField never Word encapsulates and respect only line breaks. -
Transfer incoming calls to several lines on 7960
Hi all
I hope someone can help out me. Some time ago, I came across a paper on Cisco's Web site that showed me how to transfer incoming calls to several lines on the same phone. I can't for the life of find me it.
The scenario is that I have a phone reception (7960) which has 6 buttons on line. I want incoming calls to its extension 926 to hit line 1 first, if this line is busy he stumbles on line 2 and so on.
I use Call Manager 4.2 at present that is currently configured with monitoring Console. I'm moving this phone to an another CUCM on 4.2 (it's complicated) with a view possibly to upgrade to the latest version. I won't use the monitoring I know, that they declined to support in his favor in later versions by opting for a standalone package. I distictly recall this document is written for version 4.x, when I found it. He spoke of creating new spaces of research of appellant as ReceptionL1_to_L2 to achieve the desired result.
Has anyone seen this document before and have a link to it? Or perhaps could suggest a better way to do this?
Thanks in advance for your help, much appreciated.
Hello
Here is the reference in addition to the good information of Manish
and Abhishek (5 of each)
How many calls per line working in Cisco CallManager 4.x
http://www.Cisco.com/en/us/products/SW/voicesw/ps556/products_tech_note09186a00801f3b4e.shtml
See you soon!
Rob
"Clocks go slow in a workplace.
"Drag to minutes and hours jerk."-Shock
-
Help to extract data Clob to a column in a table that has several lines in a table
Help to extract data Clob to a column in a table that has several lines in a table
It works for only the first line
CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';
Grant read, write on DIRECTORY XMLDIR to the public;
() dbms_xslprocessor.clob2file
beef in CLOB,
XMLDIR IN VARCHAR2,
"testfile2.txt" IN VARCHAR2);
DECLARE
buf CLOB.
BEGIN
SELECT H15_DOC
IN buf
OF H15TEST. H15_STAGE
where rownum = 1;
dbms_xslprocessor.clob2file (buf, 'XMLDIR', 'testfile2.txt');
END;
/
-This error code
CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';
Grant read, write on DIRECTORY XMLDIR to the public;
() dbms_xslprocessor.clob2file
XData in CLOB,
XMLDIR IN VARCHAR2,
"testfile2.txt" IN VARCHAR2,
CSID in NUMBER: = 0);
DECLARE
CURSOR xmlmycur IS SELECT H15_DOC
OF H15TEST. H15_STAGE
where rownum = 102140;
l_clob CLOB.
XData CLOB.
BEGIN
DBMS_LOB.CREATETEMPORARY (l_clob, true);
DBMS_LOB.CREATETEMPORARY (xdata, true);
OPEN xmlmycur.
LOOP
SEEK xmlmycur INTO xdata;
dbms_xslprocessor.clob2file (xdata, 'XMLDIR', 'testfile2.txt');
EXIT WHEN xmlmycur % notfound;
END LOOP;
CLOSE Xmlmycur;
END;
/
ORA-21560: 3 argument is null, invalid or out of range
ORA-06512: at "SYS." DBMS_LOB", line 991
ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 324
ORA-06512: at line 15 level
FYI, it seems that the file being created will exceed 5 gig
Yes, it is a known issue with DBMS_XSLPROCESSOR.clob2file with big files.
Here is a slightly modified version of the code that I posted earlier, fixing WRITE_ERROR except:
DECLARE
v_file utl_file.file_type;
-write a unique to clob
procedure write_clob (p_content in clob) is
v_buffer varchar2 (32767).
V_POSITION pls_integer: = 1;
v_amount pls_integer: = 32767;
Start
loop
Start
DBMS_LOB. Read (p_content, v_amount, v_position, v_buffer);
exception
When no_data_found then exit;
end;
UTL_FILE.put_raw (v_file, utl_raw.cast_to_raw (v_buffer), true);
V_POSITION: = v_position + v_amount;
end loop;
end;
BEGIN
-Open the file
v_file: = utl_file.fopen ('TEST_DIR', 'testfile2.txt', 'wb', 32767);
-loops through the lines
for r in)
Select h15_doc
of h15test.h15_stage
)
loop
write_clob (r.h15_doc);
end loop;
UTL_FILE.fclose (v_file);
END;
/
-
Hello
I use several lines of flight path images, and when the mouse is hovering over an image rollover on the second row or below the image that is supposed to appear appears on the image at the top of its column. Any help would be appreciated, I've tried everything I can and can not find a way to solve this problem. If you need videos or screenshots of the problem, DOM Panel or code please ask. Thank you
I'm on a mac on Yosemite and spin the latest version of dreamweaver
Until you find permanent web hosting, do a Google search for free web hosting. You will find a lot out there that you can use for temporary testing & debugging.
Nancy O.
-
Selection of several lines to copy and paste
Recently, I created a form and added the functions to allow our customers to enter their information. On one page, I created several lines just so that customers can type in their notes. I noticed that, if I wanted to copy the notes and paste it in another document, such as word, I am only able to copy one line at a time. In addition, when I type the cursor do not run automatically to the next line when I run out of space that I have to manually type the tab key. Someone knows how to fix this?
-Copy several lines: not possible.
-Jump to the next field when the first is complete: Possible, but requires a script and it works not always great place.
-
01427 00000 - "einreihig subquery returns several lines.
Hi all
How can I solve it
This code gives me this errorSELECT v.code ,v.bar_code ,v.arb_name ,v.eng_name ,v.branch_no ,(SELECT sum(quantity) FROM viw_whs_items_movement GROUP BY branch_no) FROM viw_whs_items_movement V
01427 00000 - "einreihig subquery returns several lines.
I know that I have more value, but I need this value
Result group
SELECT sum(v.quantity) FROM viw_whs_items_movement v GROUP BY v.branch_no ########################## SUM(V.QUANTITY) --------------- 114453 2501 8137 13270 15230 120626 22536 2926 12848 37509 20911 7503 6248 17221 462 24 15041 10307 12524 526627 10564 8230 13204 2840 80769 1418238 215694 15238 5063 104187 913 147079 11293 12678 18855 35 rows selected
Must be scalar subqueries. You demonstrate your subquery returns more than one line. Where the error.
A solution would be to establish a correlation between the results of the subquery by joining the branch_id with branch_id of the outer query. However, as the two queries use the same table, you can simply use an analytical SUM():
SELECT v.code ,v.bar_code ,v.arb_name ,v.eng_name ,v.branch_no ,sum(quantity) over (partition by branch_no) as branch_tot FROM viw_whs_items_movement V
Cheers, APC
-
OK, I have three tables, two tables are one and one is one to many. From one to the other tables have all the data in a row and one of many data available in several lines.
The table several (named county_notes) has notes on specific counties. Other tables (named county_bio and county_stats) have different information about each County. The three tables are connected by a code.
What I want to be able to list notes on each county and County information in the same report.
For example:
Record1
County: Craven
Phone: (252)123-4567
Notes:
Judy is nice
John is average
The tables would be like this:
county_bio
County_name ID
1 craven
county_stats
ID county_phone
1 (252) 123-4567
county_notes
Notes ID
1 Judy is nice
1 John is average
Of course the tables above are just examples, but you get the idea of how the tables are arranged to the top. The problem is that I can join the table of county_notes to one of the two using tables, it's bad. Problem 2, Coldfusion separates each note in another record. So I find myself with record "craven" showing twice (once with the note about judy) and once with the note about john.
Here's the SQL code that connects county_bio and county_notes:
SELECT *.
OF county_bio
County_notes LEFT JOIN
ON county_bio.ID = county_notes.county_ID
First of all how all three tables connected? And on the other hand how ColdFusion to print each note about the County in a record?
Thanks for any help! I have worked on this for a few days and am running out of ideas.
wbnc1902 wrote:
> First of all how all three tables connected?something like this:
SELECT *.
OF (county_bio INNER JOIN county_stats ON cb.ID = cs.ID cs cb)
LEFT JOIN county_notes ON cb.ID = cn.county_ID cnNOTE: it is not the best practice use SELECT *. Instead, you should
List the actual columns that you have selected.> And on the other, how do
> ColdFusion to print each note about the County in a record?Search for the tag CFOUTPUT GROUP attribute in the docs
HTH
---
Azadi Saryev
SABAI - Dee.com
http://www.SABAI-Dee.com -
No sound docking station line out
HP Elitebook 8540p, HP Docking Station VB043AA #ABA, Windows 7 64-bit. audio output works very well for a portable loudspeakers and headphones for laptop; When I plug the speaker docking station output cable, the sound continues to come from the internal speakers. When I right click on "speaker" icon and select 'reading devices' I see ' speakers / HP ' and "headphones (RTC)" but I see no option to upgrade to the alignment of the docking station.
problem solved! labels (and the documentation of the docking station) apparently are back! with the arrow pointing TOWARDS the hole is the LINE-OUT. I can only assume the other jack would be online but I have not tested. someone fell asleep for a while on the Assembly line because my co-workers with the same platform with the same problem. Someone correct me if I'm wrong but don't "arrow pointing away from jack" = "line out" = "jack speaker?
-
Qosmio X 770 - 11 c - how to disable on board the speakers when you use Line Out?
Hello
Is it possible to disable on board to intervene when the output line is used.
Currently, if I plug in a cable to the socket of hadphone and choose alignment on the realtek Control Panel, sound is output line out as expected, but also through the internal speakers.
Is it possible to stop this and don't have sound out through the output line?
Thank you
Graeme
If you want to hear his helmet only you should choose option helmet.
Disconnect the cable and reconnect it. When you see the small window on the screen where you can choose between the headphones and output line options choose headphones and you'll hear on external display only.In case you have disabled this pop-up dialog box you can activate it manually. Open the Realtek Manager connect the external device and when you see active point black on the right side make double click here and change the settings.
-
Problem Audio Line Out HP Docking Station A7E36AA #ABB
Hello
I have the Elitebook 8570p (Win7 Pro x 64) and the Docking Station A7E36AA # ABB
I plugged my speakers with audio line out of the docking station, but the sounds of music 'flat', without no bass.
I tried the same speakers with the line out of the elitebook directly and it works.
I thought that the reason for this is the docking station.
Yesterday I got from the docking i11X REPLACEMENT, plugged my speakers with its audio line out and got the same failure: his flat without bass.
Same again: directly after my elitebook, all works.
I reinstalled the audio driver from the hp supportpage
but nothing changes.
What else can be often cause this problem?
I hope that there is an adequate solution.
Best regards
123halllo
Caramel
Thank you for your response.
Your link refers to the same version of driver as my link (6.10.6435.0; 5.10.6435.0)
But there is a statement:
1. download and install the following SoftPaq:
SoftPaq description -
Match pattern IMAQ 4 to superimpose several lines 2
Hello community OR,.
I have a problem connecting to the match pattern to superimpose several lines 2.
I want to track an object from a video webcam.
In this help http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/ it is said that the Matches (Pixels) (Bounding Box) must be connected to the superposition of several lines to the end of line Points. But I can't take the bounding box only. I tried the unbundling of the table 1 d of the clusters, but I can't do it.
Any help is appreciated. I can post a picture of my code if requested.
Thank you
Marwan Sabry
I'm sorry, it's an array of clusters.
-Therefore, index 0 for the first game.
-unbundling with name for encompassing and then pass it to overlay vi. -
> Now I'm unlable to select more number of lines that are not a sequence in a single page to copy the data rows and paste somewhere in one fell swoop.
> Is this concept implemented in Windows 7. ?
> Is there a provision (method) to select several lines that are not continuous across the keyboard or the mouse in windows 7?Byagaris,
It depends on what program you are trying to copy and paste into. You are able to select continuous, multiple lines, by using the Ctrl Key and clicking, or by highlighting the desired line. For example, I held the Ctrl key and then, using the mouse, has highlighted several different phrases in the various paragraphs, and could then copy them. This feature is available for several versions of windows.
If you are not able to perform this action then post what happens when you try and what program you try it.
Mike - Engineer Support Microsoft Answers
Visit our Microsoft answers feedback Forum and let us know what you think. -
I received an email for the diagnosis of the printer and I was prompted to install the updated drivers and I did it and now when I print the test page, I get several lines of text that displays only the top or the bottom 1/2 letters across the page, I printed a self-test diagnostic Page and printed everything in pink , but it does not print 1/2 letters across the page as a test page, then I printed a page of print quality and it did the same as the test page and it does the same thing as the test page, then I tried calibrate spacing of thought which may fix the problem but does not , what can I do?
Irven
Hi mmcmret8,
Thank you for your answer! It is possible that the print heads may need to be changed, at this point, I would recommend to you please call our hotline at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.
Best regards!
Maybe you are looking for
-
who are authorized dealers on that? MacBook pro will have the warranty if I buy in that can? what the seller "macStore".. ???
-
Satellite Pro 6100 system does not start
Hi people,I have the following problem. I used my laptop long enough for thet to deplete battery and the device to go into hibernation. Given the againm battery costs, I tried the system and now it does not start.The leds light up fine and stay lit u
-
Hi guys, im fairly new to all this labview, so I apologize if this is a silly question, im using an elapsed timer, I got a signal when it is greater than a constant, it resets the timer that gives a value of 0 for a defiler, when the signal is in the
-
[T410] FDE - user password insufficient to erase disk (master required?)
Hello community, before all sorry for my bad English skills. I have a problem with my drive hard-encryption: For about 1.5 years, I encrypted my hard drive with a user-password (FDE). Now, I plan to replace the hard drive and use the external old as
-
How long does a HP pc Recovery take?
Well, the title is the whole of it. I do a recovery partition on HP Pavillion 23, AMD A6 factory. It has been sitting on 1% for quite some time now. I'm not nervous. Seems I read somewhere, it can be a confectioners? Thanks for any info. Jack ":-D