compare the permeable line data and add more than 1 column
I have data like thiscol1 col2 col3
1 AB XY
UV 1 CD
EF 2 OP
2 GH QR
3. I M
4 J N
I got kicked out like that
Col1 Col2
1 AB CD XY UV
2 EF GH OP QR
3. I J
M 4 N
I'm using oracle 10.2.0.4.My table is located in the remote database. Also my concatinated output is greater than 4000 bytes
I tried the queries I can copied that did not work.
option 1
It gives the error ORA-22992: cannot use LOB Locators selected remote tables
Request_id SELECT, to_clob (wm_concat (col2 | col3) as notes)
FROM table_x
GROUP BY col1
option 2
This works, but does not allow to add other columns
WITH got_r_num AS
(
SELECT col1, col2
ROW_NUMBER () OVER (PARTITION BY col1
ORDER BY col2
) AS r_num
FROM table_x
)
SELECT col1
REPLACE (SYS_CONNECT_BY_PATH (col2, ',')
, ','
) AS all_col2s
OF got_r_num
WHERE CONNECT_BY_ISLEAF = 1
START WITH r_num = 1
CONNECT BY r_num = r_num + 1
AND col1 = col1 PRIOR
Please help me
Thank you very much
Try this
with t
as
(
select 1 c1,'AB' c2,'XY' c3 from dual union all
select 1,'CD','UV' from dual union all
select 2,'EF','OP' from dual union all
select 2,'GH','QR' from dual union all
select 3,'I','M' from dual union all
select 4,'J','N' from dual
)
select c1, ltrim(sys_connect_by_path(c2,','),',')||','||ltrim(sys_connect_by_path(c3,','),',') c2
from (select t.*, row_number() over(partition by c1 order by 1) rno
from t)
where connect_by_isleaf = 1
start with rno = 1
connect by c1 = prior c1
and rno = prior rno + 1
Tags: Database
Similar Questions
-
compare the permeable line data and add
I have data like this
col1 col2
1 AB
1 CD
2 PQ
2 LM
3A
3 d
I got kicked out like that
1 ABCD
2 PQLM
3A
3 d
Please help me
Thank you very muchHello
Welcome to the forum!
Whenever you have a question, tell what version of Oracle you are using.
You should post some examples of data in a form people can actually use.
For example:CREATE TABLE table_x ( col1 NUMBER (4) , col2 VARCHAR2 (10) ); INSERT INTO table_x (col1, col2) VALUES (1, 'AB'); INSERT INTO table_x (col1, col2) VALUES (1, 'CD'); INSERT INTO table_x (col1, col2) VALUES (2, 'PQ'); INSERT INTO table_x (col1, col2) VALUES (2, 'LM'); INSERT INTO table_x (col1, col2) VALUES (3, 'A'); INSERT INTO table_x (col1, col2) VALUES (4, 'C');
Also post the reulsts you want from these data, as well as an explanation of how to get these results.
Did you publish the results, but not an explanation. Why do you want to2 PQLM
in the output rather than
2 LMPQ
? Or would be an acceptable?
Combining data from multiple lines in a single large chain is called chain aggregation . There are several ways to do it, depending on your version and exactly what you need.
Here's a way to string aggregation. It works in Oracle 9 (and more)WITH got_r_num AS ( SELECT col1, col2 , ROW_NUMBER () OVER ( PARTITION BY col1 ORDER BY col2 ) AS r_num FROM table_x ) SELECT col1 , REPLACE ( SYS_CONNECT_BY_PATH (col2, ',') , ',' ) AS all_col2s FROM got_r_num WHERE CONNECT_BY_ISLEAF = 1 START WITH r_num = 1 CONNECT BY r_num = PRIOR r_num + 1 AND col1 = PRIOR col1 ;
The query above assumes that col2 never contains a «,» If so, then use another secondary channel never occurred in col2 as argument on SYS_CONNECT_BY_PATH 2nd. The 2nd argument of REPLACEMENT must be the same.
See other ways to string aggregation:
http://www.Oracle-base.com/articles/10G/StringAggregationTechniques.phpPublished by: Frank Kulash, may 6, 2010 16:34
-
The ability to have and print more than 999 pages in InDesign
Would it not be possible to add the ability to have and print more than 999 pages in InDesign? I know this may sound crazy, but there are cases where necessary more than 999 pages in a document.
What version do you use?
The limit in CS4 is 9999 (nearly ten thousand little). Anything even that big is likely to be pretty unweildy to work with, and a huge problem delayed if something goes south. I highly recommend to break anything as long into sections and using the book function
-
replacement selection on 2 columns and return more than 1 column lists
Hello
I try to build 2 other selection lists and each selection list should return more than 1 column
2 PART_ID and PART_SPECIFICATION columns
Now I build a select on PART_ID as list
Select part_id d, part_id parts r;
The result should be:
PART_ID and PART_SPECIFICATION a PART_ID column must be the text of PART_SPECIFICATION
The selection based on PART_SPECIFICATION list should be like
Select d, part_id parts r part_specification;
Now, it should be posted part_specification in PART_SPECIFICATION and part_id in PART_ID.
This is because a user knows the part_id and the other knows only the specification
Please help me
Siegwin
Hi Siegwin,
Check your application Page 7 (copy of the 500 page) using the selection instead of plugin list, it gives all the values.
and works very well,
use ajax process to get the Xml data in page elements
Here are the changes
application process: getData
point of application: TEMPORARY_APPLICATION_ITEM
create a function in the html header pull_multi_value() page
and he gave the floor to point page p7_empno on the attribute of the html form element as onchange = "pull_multi_value (this.value)"; ""
This can help you.
Leave.
-
How to find the names of tables that have more than 100 columns
Hi gurus,
Please help me find the names of the tables that have more than 100 columns in the database.Below will be useful for you.
SELECT atc.OWNER,atc.TABLE_NAME,count(*) FROM all_tab_columns atc GROUP BY atc.OWNER,atc.TABLE_NAME HAVING count(atc.COLUMN_NAME) > 100
Adding another point, you can use user_tab_columns, all_tab_columns, dba_tab_columns, based on your needs/access.
Thank you
SuriPublished by: Suri on February 23, 2012 11:30
-
The two lines EX90 and add speed dial
My friends, I need help in this case, we replaced digital phone with EX90 new to our general manager. but there is some functionality was available on the old phone:
1 - the old phone has buttons around the screen as a speed dial buttons for certain numbers of employees
2 - the old phone has two lines one private and one is the direct lineHere, he wants the same features on the EX90:
1. I configured the favorite on the EX90 as a shortcut, but he wanted the speed Dial buttons appear directly on the screen forpress about this directlry.
2 - I have configured the EX90 on CUCM and added the second row but he only appeared, if there is a method to allowcalls on the (direct and private calls on different lines) EX90
Please I need your urgent help
The DefaultPanel Option is only in more recent versions of TC software, I do not remember what version it appeared in, but it is there in the last TC7.1.3. If you don't, you probably use an older version of software on your EX.
It is located in the web interface under Setup, System Configuration, UserInterface touchscreen Panel default.
The options are: none, last, list of contacts, MeetingList and keyboard.
The option of contact list
Another option (although, as for a simple speed dial) is the installation Service that puts a button in the upper left corner of the touch screen. Note: Only facility Service 1 is available in the Panel even if you configure 5 of them.
Wayne
--
Please rememeber the frequency responses and mark your question as answered as appropriate. -
AppleScript set the string to date and add 30 minutes
I am filling 2 boxes of time on a website in Safari, using Applescript from buttons selected by the user.
My current Applescript is:
Value dialog box to display the dialog box buttons ' when did your first departure case? {"07:30, ' 08:00, ' 08:30" "" "}
definition of the first button returned of the result
inputByName ("time 1", 0, start)
the value of test for '07:30 ' - assuming that the user has selected '07:30 ' in the dialog box
Test date - do not know how to assign 07:30 as an hour
Finishing to test set + (30 * minutes)
inputByName ("2", 0, finishing)
The error return is number 'Invalid date and time date 07:30 < < script > >.' -30720
Any help would be greatly appreciated!
Thank you
s
You must use a complete date in the date/time of your machine settings. A simple way is to simply get the current date (which returns a full date object) and manipulate that, for example:
tell (current date) set its time to (7 * hours) + (30 * minutes) set someDate to it end tell return time string of someDate
-
How to remove the jump line, characters and past of a table column?
HII,
I m using 4 Apex.
I m find the problem by removing the line break, characters and captures existing data in the column of the table.
thnx in advancefor example
replace(replace(l_string_var, chr(10)),chr(13))
Best regards
MarkoPublished by: Marko Goricki, January 17, 2011 10:52
-
Hello
I found that loadVars. time to load and sendAndLoad 30 seconds ofter.
I need to replace to increase, because there may be more time to deal with my call.
Is there a way to do this?
I saw messages onHTTPStatus usage to detect the statutes, but he still times out after 30 seconds.
Test against the PHP code and the function "sleep()" reveals the 30 second time out.
That's all! Thank you! * slaps forehead *.
So for other people having this problem while testing on loadVars in the Flash IDE: make your tests online (on a web server) in the browser! :)
In this way, the loadVars does not expire after 30 seconds, and you can use the appropriate code to test for results as expected (especially if your scripts may take longer to run)
Thanks Dave! :)
-
I don't know what that means:
"There is not enough disk space to left to the location of the cache... Thumbnails and previews are not generated or updated in cache on the disk. Please leave bridge and add more disk space on the volume of the cache or change the location of the cache in the Cache preferences. Then restart Bridge. »
I deleted a whole bunch of photoshoots I had on my desktop, but how to make more space here?
Erica
Hi Ericacole
What version of the bridge are you using and what is your OS?
Please how much is left in your main hard drive.
By default, the bridge cache is located at: -.
C:\Users\Yourname\AppData\Roaming\Adobe\Bridge CC\Cache (AppData is a hidden folder)
Note that cache bridge could be very large depending on your use of the product.
Please see Troubleshooting of errors, freezes | Adobe Bridge | Windows, Mac OS
Concerning
Assani
-
Hello
I can t open Google Earth or Microsoft Office programs because I get this message - the application could not start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe for more details.
A few days ago I could open all what programs. I put t know what is the problem.
I did sxstrace and that's what I have-
=================
Launch the activation context generation.
Input parameter:
Flags = 0
ProcessorArchitecture = Wow32
CultureFallBacks = en-US; en
ManifestPath = C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe
AssemblyDirectory = C:\Program Files (x 86) \Google\Google Earth\client\
Application configuration file =
-----------------
INFO: File analysis shows C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe.
INFO: Manifest definition identity is (null).
INFO: Reference: Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053"
INFO: Resolving reference Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053".
INFO: Resolving reference for ProcessorArchitecture WOW64.
INFO: Resolving reference for the neutral culture.
INFO: Application binding policy.
INFO: No found publisher policy.
INFO: No redirect political connection is found.
INFO: Start the detection of assembly.
INFO: Can't find the assembly in WinSxS.
NEWS: Try to detect manifest to C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.4053__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
INFO: Found no manifesto for the neutral culture.
INFO: End detection of assembly.
INFO: Resolving reference for ProcessorArchitecture x 86.
INFO: Resolving reference for the neutral culture.
INFO: Application binding policy.
NEWS: Control strategy of the Publisher C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.5592_none_517247830f45081d.manifest
INFO: Start the detection of assembly.
INFO: End detection of assembly.
ERROR: Activation context generation failed.
End activation context generation.Help, please!
This type of error can be caused if the Visual C++ library runtime components are missing or because of a third-party software.
Follow the steps below:
Method 1:
If the problem is caused by the lack of Visual C++ libraries, you can download and install the Runtime components of Visual C++ libraries from the link below:
This error can occur when the Microsoft .NET Framework installation on the computer is damaged or is missing.Try it out below step to reinstall and repair installation of Microsoft .NET Framework on the computer, then check if you can install the software.
(a) click the Start button, select Control Panel, click programs and then click on 'Turn Windows has or not.' If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
(b) search for Microsoft .NET framework 3.5.1 uncheck, click OK and restart the computer.
(c) after the reboot, open again "Turn Windows features on or off" and place a check next to Microsoft .NET framework 3.5.1 and restart the computer.
Step 2
If the previous step fails, then I suggest that you manually download and install Microsoft Visual C++ 2005 and 2008 Redistributable Package and check to see if you can install the software.
In programs and features, you do not show that you have installed Microsoft Visual C++ 2005 Redistributable and Microsoft Visual C++ 2008 Redistributable? If this is not the case, download the links here.
Package redistributable Visual C++ 2005 (X 86)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
Visual C++ 2005 (x 64) redistributable package manager
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=eb4ebe2d-33c0-4A47-9dd4-b9a6d7bd44da&displaylang=enPackage redistributable Microsoft Visual C++ 2008 (x 86)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en
Package redistributable Visual C++ 2008 SP1 (x 64)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=enI hope this helps.
-
I have QQ (an international chat program) installed on the laptop. Then my hard drive crashed. Now when I try to reinstall it on my new hard drive I get the following message:
"Error: the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for details"
-how can I solve this problem? I have Windows 7.Hello
Thanks for choosing Microsoft Community to post your question.
It seems that you can not install application QQ, you get an error: "the application could not start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.
We're here to help and guide you in the right direction. This problem could be caused when the computer is missing the correct C++ run time for your type of system components. (x 86 or x 64).
Here are a few troubleshooting steps that you can try to solve this problem.
Method 1: we will install Microsoft Visual C++ for your computer package.
Note: If you use the 32-bit operating system, download and install 32-bit edition(X86).
If you use the 64-bit operating system, download and install edition(X64) 64-bit.
Microsoft Visual C++ 2008 SP1 Redistributable Package (x 86)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=enMicrosoft Visual C++ 2008 SP1 Redistributable Package (x 64)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=enPackage redistributable Microsoft Visual C++ 2010 (x 86)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=a7b7a05e-6de6-4D3A-A423-37bf0912db84
Package redistributable Microsoft Visual C++ 2010 (x 64)
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=bd512d9e-43c8-4655-81bf-9350143d5867
Method 2: Run the fixit available at the following link.
Solve problems with programs that cannot be installed or uninstalled
http://support.Microsoft.com/mats/Program_Install_and_Uninstall
Also, check the event log using Event Viewer.
Please see the link below for more information on how to use Event Viewer to check the error message or information,
http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer
If you have additional problems, please reply to this post and we will be happy to help you further.
-
«WINDOWS 7 error the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.»
This cams almost for all the applications that I try to open. I read all kinds of things to solve problems, but I can't install anything because it is constantly on the screen.
I think it's like that because my computer shuts off when I was doing the system restore, because he has not started.
I don't know what to do.
Hello
You can view the event log by using Event Viewer. See the link below for more information about how to use Event Viewer to check the error message or information,Please check the information in Event Viewer and let us know the problem more briefly for a better solution.
Method 1:However, try the SFC (System File Checker) scan on the computer. Check out the following link to do the same thing:
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833Method 2:You try to run the fixit given in the following link and check if it works:Method 3:You have recently updated with Microsoft Visual C++?I hope this helps! -
25/07 last I bought with credit card the Acrobat to word converter. More than 24 hours then passed and I have no communication with you or the service that I bought. Please, I need an answer. Thank you.
Hi ruit78694630,
Please try to use the service to export it to PDF format in line using your Adobe ID https://cloud.acrobat.com/exportpdf & check if its working or not.
Otherwise, you can contact our support team here, contact customer service.
Kind regards
Nicos
-
Use the project start Date and duration to calculate the end Date of project
I'm trying to calculate the end date of the project in a report using the project end Date and time entered on the opportunity.
For example, if the start date of the project filled an opportunity is 31/01/2009 and the length (integer) is entered on the opportunity is 5, the project end date is in the report must be 30/06/2009.
I'm trying to TIMESTAMPADD forumaul allows you to add the duration (number of months) to the project start date
This Fx works TIMESTAMPADD (SQL_TSI_MONTH, 12, '-used Custom Attributes ".) DATE_40)
But if I try to replace the number twelve by the length (integer field) I get an error when you try to save: TIMESTAMPADD (SQL_TSI_MONTH, "-opportunity Custom Metrics".) S_INT_0, '-used custom attributes. DATE_40)
Any ideas on how I can get this to work would be greatly appreciated.Hi, try this. It might solve your prioblem TIMESTAMPADD (SQL_TSI_MONTH, CAST (YOUR FIELD AS INTEGER), account. (' "Last modified")
-John CRMIT
Maybe you are looking for
-
My photos been upgraded to the new version for OS X yesterday and when I clicked on "get started", it started to load the albums and have not yet finished, it seems that he would forever, it wouldn't stop and can't leave either, and I can't shut down
-
Satellite A200: Charging problem
I have Toshiba Satellite A200 and recently I got some software with charging problems :( When the battery is on 96-99% it does not start when I plug the charging cable (and says that the battery is at 100%).If it is less than 96%, it starts to load,
-
pop up kept appearing on the lower right of the computer saying I had infections more 5 000. He showed my company logo protection antivirus (AVG) and because the computer was slow and freezing I connected. He registered a phone number to call for h
-
NVIDIA GT 630 m not switching or working in HP dv6 7010tx?
Got the DV6 new 7010tx and it seems switchable Nvidia graphics is not at all even when the laptop is on the mode of high-performance switching and even tried to place profiles for apps, still no.... what to do? ! Help?
-
Costs of reinstallation of windows XP
M50 8189-EIU I bought this machine used with no OS and installed my XP Pro on the computer and the recall, I had to download something from Lenovo for its work. Unfortunately, I forgot what, maybe a modem or a network patch? In any case, it is time f